Skip to content

Request Bitwarden Secrets Manager secrets as JSON#1570

Merged
djmb merged 1 commit intobasecamp:mainfrom
nickcoyne:bws-secrets
Jun 16, 2025
Merged

Request Bitwarden Secrets Manager secrets as JSON#1570
djmb merged 1 commit intobasecamp:mainfrom
nickcoyne:bws-secrets

Conversation

@nickcoyne
Copy link
Contributor

Currently the Bitwarden Secrets Manager adapter requests secrets using the -o env output option, and then splits the results on /n to build an array of secrets. This breaks if the secret key value includes the string "/n" (in my case, it was a SSH key value).

This PR updates the secrets commands to use the default Bitwarden Secrets Manager CLI JSON output format, which should not be affected by any weird key values.

@djmb djmb merged commit 52e06c1 into basecamp:main Jun 16, 2025
7 checks passed
@nickcoyne nickcoyne deleted the bws-secrets branch June 21, 2025 00:22
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.

2 participants