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

fix secrets stored in json format #466

Merged
merged 11 commits into from
Jun 21, 2023
Merged

fix secrets stored in json format #466

merged 11 commits into from
Jun 21, 2023

Conversation

fairclothjm
Copy link
Contributor

@fairclothjm fairclothjm commented Jun 9, 2023

We broke support for secrets in JSON format in #173. This adds that support back and also adds a few tests to ensure we can catch any regressions moving forward.

Additionally, we add some improvements to the local-test job that we run with the act CLI. Namely, it is no longer required to push up a branch with the local changes but instead act will use build and run the local src files as-is.

Closes #194

@fairclothjm fairclothjm force-pushed the VAULT-1818/jsonformat branch 3 times, most recently from a850752 to ff534fd Compare June 17, 2023 01:17
@fairclothjm fairclothjm force-pushed the VAULT-1818/jsonformat branch from ff534fd to 10ed439 Compare June 17, 2023 01:18
@fairclothjm fairclothjm requested a review from a team June 17, 2023 01:21
@fairclothjm fairclothjm changed the title add tests for json format fix secrets stored in json format Jun 20, 2023
src/secrets.js Outdated Show resolved Hide resolved
Comment on lines +101 to +102
// This is required to support secrets in JSON format.
// See https://github.com/hashicorp/vault-action/issues/194 and https://github.com/hashicorp/vault-action/pull/173
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding these comments!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem! Hopefully it will save someone all the time it took me to understand what is happening in this code :)

@fairclothjm fairclothjm merged commit b9f4d16 into main Jun 21, 2023
@fairclothjm fairclothjm deleted the VAULT-1818/jsonformat branch June 21, 2023 16:55
fairclothjm added a commit that referenced this pull request Jul 3, 2023
fairclothjm added a commit that referenced this pull request Jul 3, 2023
fairclothjm added a commit that referenced this pull request Jul 3, 2023
* Revert "fix secrets stored in json format (#466)"

This reverts commit b9f4d16.

* fix build: use new Verified Publisher image hashicorp/vault
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.

[BUG] v2.1.2 breaks secrets in JSON format
3 participants