*More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.*
This change adds some basic system tests for delegation token based 
authentication:
- basic delegation token creation
- producing with a delegation token
- consuming with a delegation token
- expiring a delegation token 
- producing with an expired delegation token

New files:
- delegation_tokens.py: a wrapper around kafka-delegation-tokens.sh  - executed 
in container where a secure Broker is running (taking advantage of automatic 
cleanup)
- delegation_tokens_test.py: basic test to validate the lifecycle of a 
delegation token

Changes were made in the following file to extend their functionality:
- config_property was updated to be able to configure Kafka brokers with 
delegation token related settings
- jaas.conf template because a broker needs to support multiple login modules 
when delegation tokens are used
- consule-consumer and verifiable_producer to override KAFKA_OPTS (to specify 
custom jaas.conf) and the client properties (to authenticate with delegation 
token).
 

*Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.*

### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation 
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)


[ Full content available at: https://github.com/apache/kafka/pull/5660 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to