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

Stop using deprecated get_secret_by_name & support secret path #15

Open
alexsegura opened this issue Nov 22, 2023 · 0 comments
Open

Stop using deprecated get_secret_by_name & support secret path #15

alexsegura opened this issue Nov 22, 2023 · 0 comments
Assignees

Comments

@alexsegura
Copy link

This method/API endpoint is deprecated.

GetSecretByName usage is now deprecated.
Scaleway recommends that you use the ListSecrets request with the name filter.

I guess it would mean changing:

secret = api.get_secret_by_name(secret_name=name, region=region)

To:

secret = api.list_secrets(name=name, region=region)

Also, the scaleway_secret_version module should support the path argument, so that we can retrieve a secret with the same name, and a different path.

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

No branches or pull requests

2 participants