Skip to content

Conversation

massimiliano96
Copy link
Contributor

Description

This pull request introduces two new parameters:

  • secrets_manager_secret_username
  • secrets_manager_secret_password

These parameters allow users to specify custom keys for retrieving credentials from a secret JSON.

For example, given the following secret:

{
  "custom_username_key": "the database username",
  "custom_password_key": "the database password"
}

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

self._mock_client.get_secret_value.assert_called_once()
self._mock_func.assert_called_once()
assert self._TEST_USERNAME == self._properties.get("user")
assert self._TEST_PASSWORD == self._properties.get("password")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert self._TEST_PASSWORD == self._properties.get("password")
assert self._TEST_PASSWORD == self._properties.get("password")

@karenc-bq
Copy link
Contributor

Thank you for the PR, this is a great suggestion. We will port the changes to other drivers as well.

@massimiliano96
Copy link
Contributor Author

@karenc-bq @sergiyvamz I have updated the PR, fixing the flake8 issues

@massimiliano96
Copy link
Contributor Author

@karenc-bq @sergiyvamz the PR is stuck waiting for approvals.

@massimiliano96
Copy link
Contributor Author

@karenc-bq any updates on this PR?

@karenc-bq karenc-bq merged commit 05d8810 into aws:main Jun 16, 2025
1 of 5 checks passed
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