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

Can only provide 1 secret to actions #841

Closed
6 tasks done
Tenrys opened this issue Sep 12, 2023 · 3 comments
Closed
6 tasks done

Can only provide 1 secret to actions #841

Tenrys opened this issue Sep 12, 2023 · 3 comments
Labels
bug This points to a verified bug in the code

Comments

@Tenrys
Copy link
Contributor

Tenrys commented Sep 12, 2023

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this project and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

According to the docs for the auth0 actions category, you can supply secrets through multiple -s or --secret flags, but from what I found, only the last secret is taken into account.

image

image

Expectation

I should be able to supply multiple secrets to an action through the CLI.

Reproduction

  1. Run this command
    auth0 actions create -n test-post-login -t post-login -c "test" -s "TEST1=1" -s "TEST2=2"
  2. Have a look on the Auth0 dashboard, in your new Custom Action's secrets tab. You'll see that only TEST2 can be seen.

Auth0 CLI version

auth0 version 1.0.1 15dd3c4559c46c8e3dd5a4d0d9b4a849fea0cb1a

@Tenrys Tenrys added the bug This points to a verified bug in the code label Sep 12, 2023
@Tenrys Tenrys changed the title Can only provide on secret to actions Can only provide 1 secret to actions Sep 12, 2023
@Tenrys
Copy link
Contributor Author

Tenrys commented Sep 13, 2023

I made a PR that would fix this issue here: #843

Tenrys added a commit to Tenrys/auth0-cli that referenced this issue Sep 13, 2023
@willvedd
Copy link
Contributor

@Tenrys Nice find! You're correct about the bug here, you should be able to pass multiple secrets to the CLI. As you've also discovered, this is due to the reassignment of a pointer inside the loop. Apologies about the duplicate PR, I had already begun looking into it. Rest assured that this will be included in an upcoming release very soon! Thanks for your help.

@willvedd
Copy link
Contributor

This has been fixed in v1.1.0. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

2 participants