Repository navigation
Add --output flag to 01-generate-keypairs.js to write secrets to file with secure permissions (0600) - #112
Merged
Conversation
- SynapsVault#30: Add --output flag to 01-generate-keypairs.js to write secrets to file with secure permissions (0600) * Prevents secret keys from being printed to stdout/CI logs * File is created with mode 0600 (owner read/write only) * Keep stdout option for manual testing with warning message - SynapsVault#29: Fix rollback-contracts.cjs parseEnvFile to handle 'export KEY=value' syntax * Many bash env files use 'export' prefix for sourcing compatibility * Parser now strips 'export ' prefix before parsing key=value pairs * Supports both plain and export-prefixed env file formats Changes: - scripts/01-generate-keypairs.js: Added --output option, secure file writing with mode 0600, warning for stdout output - scripts/rollback-contracts.cjs: Updated parseEnvFile to strip 'export ' prefix from env file lines
|
@ZeeTech374 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
01-generate-keypairs.js prints secret keys to stdout (and CI logs) #30: Add --output flag to 01-generate-keypairs.js to write secrets to file with secure permissions (0600)
rollback-contracts.cjs: parseEnvFile does not handle
export KEY=valuelines #29: Fix rollback-contracts.cjs parseEnvFile to handle 'export KEY=value' syntaxCloses #29
Closes #30
Changes: