Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Support provider authentication using GetClusterCredentials#3

Merged
winglot merged 1 commit intobrainly:masterfrom
sworisbreathing:get-cluster-credentials
Jul 15, 2021
Merged

Support provider authentication using GetClusterCredentials#3
winglot merged 1 commit intobrainly:masterfrom
sworisbreathing:get-cluster-credentials

Conversation

@sworisbreathing
Copy link
Copy Markdown
Contributor

@sworisbreathing sworisbreathing commented Jul 12, 2021

In our environment, users are always created WITH PASSWORD DISABLE (except for superusers, who have randomly-generated passwords that are never distributed to them or saved anywhere, and thus are only known during the user creation process itself). In order to authenticate to Redshift, all users must call GetClusterCredentials.

This PR adds a new, optional block in the provider configuration: temporary_credentials{}. When password is not specified but temporary_credentials is, then the provider will authenticate using GetClusterCredentials.

Note: I did add an acceptance test case for this configuration but I haven't modified any of the resource tests to use it because it just seemed to blow out the execution time without adding any real value.

@sworisbreathing
Copy link
Copy Markdown
Contributor Author

Note: not all tests will pass with the changes here, until #4 is merged.

@winglot winglot added the enhancement New feature or request label Jul 15, 2021
@winglot winglot merged commit 066df54 into brainly:master Jul 15, 2021
@sworisbreathing sworisbreathing deleted the get-cluster-credentials branch July 16, 2021 00:00
StevenKGER referenced this pull request in dbsystel/terraform-provider-redshift Oct 25, 2024
…go-v2-1.x

Update module github.com/aws/aws-sdk-go-v2 to v1.21.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants