Add ShareConfig Functionality for Secure Configuration Sharing to Bitwarden Self-Hosted (Bash) #228
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Introduces the
shareconfig
functionality to the Bitwarden self-hosted setup script, enabling administrators to securely share their Bitwarden configuration files. Theshareconfig
command sanitizes sensitive information by redacting values associated with passwords and secrets before compressing the configuration files into atar.gz
archive. This ensures that critical information remains secure when configuration files need to be shared for troubleshooting or auditing purposes.Features
.conf
,.env
,.xml
, and.yml
files within the Bitwarden configuration directory.tar.gz
archive of the sanitized configuration files, ready for secure sharing with support teams or for audit purposes.Usage examples
To use this functionality, run the following command from the Bitwarden self-hosted script directory:
This will generate a file named
bitwarden-configs-redacted-<timestamp>.tar.gz
in the current directory.Testing
Please review this PR for inclusion in the next release of Bitwarden self-hosted. Your feedback and suggestions are welcome!