MikeThomsen commented on code in PR #11595:
URL: https://github.com/apache/nifi/pull/11595#discussion_r3874797651


##########
nifi-extension-bundles/nifi-cql-bundle/nifi-cassandra-session-provider-service/src/test/resources/cassandra-auth-config-3.11/cassandra.yaml:
##########
@@ -0,0 +1,242 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+cluster_name: 'Test Cluster'
+
+num_tokens: 256
+
+hinted_handoff_enabled: true
+
+max_hint_window_in_ms: 10800000
+
+hinted_handoff_throttle_in_kb: 1024
+
+max_hints_delivery_threads: 2
+
+hints_flush_period_in_ms: 10000
+
+max_hints_file_size_in_mb: 128
+
+batchlog_replay_throttle_in_kb: 1024
+
+# Only diff from the stock cassandra.yaml: PasswordAuthenticator replaces 
AllowAllAuthenticator so
+# testConnectsWithRealUsernameAndPassword authenticates against a real 
Cassandra role.
+authenticator: PasswordAuthenticator
+
+authorizer: AllowAllAuthorizer
+
+role_manager: CassandraRoleManager
+
+roles_validity_in_ms: 2000
+
+permissions_validity_in_ms: 2000
+
+credentials_validity_in_ms: 2000
+
+partitioner: org.apache.cassandra.dht.Murmur3Partitioner
+
+cdc_enabled: false
+
+disk_failure_policy: stop
+
+commit_failure_policy: stop
+
+prepared_statements_cache_size_mb:
+
+thrift_prepared_statements_cache_size_mb:
+
+key_cache_size_in_mb:
+
+key_cache_save_period: 14400
+
+row_cache_size_in_mb: 0
+
+row_cache_save_period: 0
+
+counter_cache_size_in_mb:
+
+counter_cache_save_period: 7200
+
+commitlog_sync: periodic
+commitlog_sync_period_in_ms: 10000
+
+commitlog_segment_size_in_mb: 32
+
+seed_provider:
+
+    - class_name: org.apache.cassandra.locator.SimpleSeedProvider
+      parameters:
+
+          - seeds: "127.0.0.1"
+
+concurrent_reads: 32
+concurrent_writes: 32
+concurrent_counter_writes: 32
+
+concurrent_materialized_view_writes: 32
+
+memtable_allocation_type: heap_buffers
+
+index_summary_capacity_in_mb:
+
+index_summary_resize_interval_in_minutes: 60
+
+trickle_fsync: false
+trickle_fsync_interval_in_kb: 10240
+
+storage_port: 7000
+
+ssl_storage_port: 7001
+
+listen_address: localhost
+
+# Must stay present (commented is fine): the official cassandra image's 
docker-entrypoint.sh templates
+# these via sed on startup so Testcontainers can inject the container's 
reachable address. Deleting them
+# breaks that substitution and Cassandra refuses to start with rpc_address 
bound to a wildcard.
+# broadcast_address: 1.2.3.4
+# broadcast_rpc_address: 1.2.3.4
+
+start_native_transport: true
+
+native_transport_port: 9042
+
+start_rpc: false
+
+rpc_address: localhost
+
+rpc_port: 9160
+
+rpc_keepalive: true
+
+rpc_server_type: sync
+
+thrift_framed_transport_size_in_mb: 15
+
+incremental_backups: false
+
+snapshot_before_compaction: false
+
+auto_snapshot: true
+
+column_index_size_in_kb: 64
+
+column_index_cache_size_in_kb: 2
+
+compaction_throughput_mb_per_sec: 16
+
+sstable_preemptive_open_interval_in_mb: 50
+
+read_request_timeout_in_ms: 5000
+
+range_request_timeout_in_ms: 10000
+
+write_request_timeout_in_ms: 2000
+
+counter_write_request_timeout_in_ms: 5000
+
+cas_contention_timeout_in_ms: 1000
+
+truncate_request_timeout_in_ms: 60000
+
+request_timeout_in_ms: 10000
+
+slow_query_log_timeout_in_ms: 500
+
+cross_node_timeout: false
+
+endpoint_snitch: SimpleSnitch
+
+dynamic_snitch_update_interval_in_ms: 100
+
+dynamic_snitch_reset_interval_in_ms: 600000
+
+dynamic_snitch_badness_threshold: 0.1
+
+request_scheduler: org.apache.cassandra.scheduler.NoScheduler
+
+server_encryption_options:
+    internode_encryption: none
+    keystore: conf/.keystore
+    keystore_password: cassandra

Review Comment:
   That cannot be avoided with the authentication tests, but I'll remove the 
passwords for the keystores in the test.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to