Skip to content

[Do-not-review][ANSIENG-4255] | Adding first class support for file based mds user store #1958

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

Open
wants to merge 9 commits into
base: 7.9.x
Choose a base branch
from

Conversation

rrbadiani
Copy link
Member

@rrbadiani rrbadiani commented Apr 8, 2025

Description

To use file based mds user store earlier kafka broker custom properties needed to be used and the credentials file needed to be present on all brokers where mds was running.
Adding this first class support allows user to define these variables confluent_metadata_server_user_store_file_src, confluent_metadata_server_user_store_file_dest_path, confluent_metadata_server_user_store_file_remote_src and it would either send the credentials from ansible control node to broker or from one path to another in broker based on confluent_metadata_server_user_store_file_remote_src's value.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

semaphore

Checklist:

  • Any variable/code changes have been validated to be backwards compatible (doesn't break upgrade)
  • I have added tests that prove my fix is effective or that my feature works
  • If required, I have ensured the changes can be discovered by cp-ansible discovery codebase
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@Copilot Copilot AI review requested due to automatic review settings April 8, 2025 06:34
@rrbadiani rrbadiani requested a review from a team as a code owner April 8, 2025 06:34
@rrbadiani rrbadiani changed the base branch from master to 7.9.x April 8, 2025 06:34
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

@@ -1559,7 +1559,16 @@ sso_cli: false
### Device Authorization endpoint of Idp, Required to enable SSO in cli.
sso_device_authorization_uri: none

### Authorization mode on all cp components. Possible values are ldap, oauth, ldap_with_oauth and none. Set this to oauth for OAuth cluster and ldap_with_oauth for cluster with both ldap and oauth support. When set to oauth or ldap_with_oauth, you must set oauth_jwks_uri, oauth_token_uri, oauth_issuer_url, oauth_superuser_client_id, oauth_superuser_client_password.
### Path to the file containing the user store for MDS. This must be definde when auth_mode is set to file.
Copy link
Preview

Copilot AI Apr 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo found: 'definde' should be 'defined'.

Suggested change
### Path to the file containing the user store for MDS. This must be definde when auth_mode is set to file.
### Path to the file containing the user store for MDS. This must be defined when auth_mode is set to file.

Copilot uses AI. Check for mistakes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's correct the typo here

confluent.metadata.server.user.store.file.path: /tmp/credentials
confluent_metadata_server_user_store_file_src: /tmp/credentials
confluent_metadata_server_user_store_file_dest_path: /etc/kafka
confluent_metadata_server_user_store_file_remote_src: true # credentials file already on target node
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To test when credentials file is already on mds server

confluent.metadata.server.user.store.file.path: /tmp/credentials
confluent_metadata_server_user_store_file_src: "{{ lookup('env', 'MOLECULE_SCENARIO_DIRECTORY') }}/credentials"
confluent_metadata_server_user_store_file_dest_path: /etc/kafka
confluent_metadata_server_user_store_file_remote_src: false # credentials file on ansible control node
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to test when credentials file is on ansible control node

@rrbadiani rrbadiani changed the title [ANSIENG-4255] | Adding first class support for file based mds user store [WIP-donot-review][ANSIENG-4255] | Adding first class support for file based mds user store Apr 8, 2025
@rrbadiani rrbadiani changed the title [WIP-donot-review][ANSIENG-4255] | Adding first class support for file based mds user store [ANSIENG-4255] | Adding first class support for file based mds user store Apr 10, 2025
@rrbadiani rrbadiani changed the title [ANSIENG-4255] | Adding first class support for file based mds user store [Do-not-review][ANSIENG-4255] | Adding first class support for file based mds user store May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants