-
Notifications
You must be signed in to change notification settings - Fork 1k
RANGER-5434:Add test users keytabs to the ranger and dependency service docker containers #787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…ce docker containers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for test user keytabs (testuser1, testuser2, testuser3) to Ranger and dependency service Docker containers for Kerberos-enabled environments. This enables testing with multiple user identities in the Docker-based development environment.
- Added a
create_testusersfunction in the KDC entrypoint script to generate keytabs for three test users across all relevant containers - Updated seven service setup scripts to wait for test user keytabs before proceeding with service initialization
- Ensured test users are created for containers including ranger, ranger-hadoop, ranger-hive, ranger-hbase, ranger-kafka, ranger-knox, ranger-kms, and others
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| dev-support/ranger-docker/scripts/kdc/entrypoint.sh | Adds create_testusers function and calls it to generate test user keytabs for multiple containers |
| dev-support/ranger-docker/scripts/admin/ranger.sh | Adds wait calls for testuser1, testuser2, and testuser3 keytabs when Kerberos is enabled |
| dev-support/ranger-docker/scripts/kms/ranger-kms.sh | Adds wait calls for testuser1, testuser2, and testuser3 keytabs when Kerberos is enabled |
| dev-support/ranger-docker/scripts/knox/ranger-knox-setup.sh | Adds wait calls for testuser1, testuser2, and testuser3 keytabs when Kerberos is enabled |
| dev-support/ranger-docker/scripts/kafka/ranger-kafka-setup.sh | Adds wait calls for testuser1, testuser2, and testuser3 keytabs when Kerberos is enabled |
| dev-support/ranger-docker/scripts/hive/ranger-hive-setup.sh | Adds wait calls for testuser1, testuser2, and testuser3 keytabs when Kerberos is enabled |
| dev-support/ranger-docker/scripts/hbase/ranger-hbase-setup.sh | Adds wait calls for testuser1, testuser2, and testuser3 keytabs when Kerberos is enabled |
| dev-support/ranger-docker/scripts/hadoop/ranger-hadoop-setup.sh | Adds wait calls for testuser1, testuser2, and testuser3 keytabs when Kerberos is enabled |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ce docker containers - copilot review fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 22 out of 23 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What changes were proposed in this pull request?
Add testuser keytabs to the container
How was this patch tested?
verified in docker