aws-secretsmanager-get-secrets icon indicating copy to clipboard operation
aws-secretsmanager-get-secrets copied to clipboard

Return secrets as outputs instead of values

Open Olfi01 opened this issue 2 years ago • 8 comments

Issue #14: Environment variables vs outputs

Description of changes: Secrets are now returned as action outputs. This results in the following improvements:

  • User side:
    • Less concern needed over which steps to separate in a different job to avoid access to environment variables
    • Full control over where the returned secrets are used
  • Codebase side:
    • No more need to clean up environment variable secrets, as the GitHub Actions toolkit will handle the outputs.

README.md, action.yml and code comments have been updated accordingly. Tests are passing.

If you prefer reviewing less files and compiling the source code yourselves, I have created a parallel PR(#37) containing only the code changes without the built dist files.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Olfi01 avatar May 12 '23 12:05 Olfi01

@ecraw-amzn Is there something I still need to do before this PR can be reviewed and merged?

Olfi01 avatar Jun 12 '23 09:06 Olfi01

Thanks for the PR, @Olfi01 - we are evaluating this as a part of issue #14

jbct avatar Jul 17 '23 18:07 jbct

@jbct can we merge this. ~Currently, we are facing issues due to the Secrets Cleanup right after the fetch.~ Nevermind, the documentation wasn't clear we shouldn't use vars., but use env. instead to access the variables.

tvb avatar Dec 15 '23 08:12 tvb

Is there anything holding this feature up?

Danny-Smart avatar Feb 19 '24 11:02 Danny-Smart

Bump

We've encountered this issue again. What is the status of the PR?

Danny-Smart avatar May 28 '24 11:05 Danny-Smart

Bump

We've encountered this issue again. What is the status of the PR?

Since it has been left unresolved for over a year now, some conflicts have mounted up. I don't know if I'll get around to fixing it anytime soon, though I imagine the conflict can't be too difficult to manage.

Olfi01 avatar Sep 02 '24 14:09 Olfi01