Skip to content
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

db: allow plugin alias for db connection resourse #2363

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fairclothjm
Copy link
Contributor

This PR allows setting a custom plugin_name for the vault_database_secret_backend_connection resource.

The default name for the Oracle Database Plugin: vault-plugin-database-oracle, throws an error when set as the plugin_name in the Terraform Vault Provider's vault_database_secret_backend_connection.

The error complains that the plugin oracle-database-plugin does not exist, which is not the correct plugin name.

@fairclothjm fairclothjm requested a review from a team as a code owner November 12, 2024 23:28
Copy link
Contributor

@kpcraig kpcraig left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@kpcraig kpcraig left a comment

Choose a reason for hiding this comment

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

Is this failure relevant?

resource_database_secret_backend_connection_test.go:497: Step 2/4 error: Check failed: Check 3/14 error: vault_database_secret_backend_connection.test: Attribute 'plugin_name' expected "mysql-rds-database-plugin", got "mysql-database-plugin"

@kpcraig kpcraig requested review from kpcraig and removed request for kpcraig December 11, 2024 20:30
@fairclothjm
Copy link
Contributor Author

Thanks for the review @kpcraig ! This PR needs more work unfortunately. This fix is a bit more complex than I initially thought.

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.

2 participants