Skip to content

Add --output flag to 01-generate-keypairs.js to write secrets to file with secure permissions (0600) - #112

Merged
Busiii-adetiba merged 1 commit into
SynapsVault:mainfrom
ZeeTech374:batch-120-features
Oct 18, 2026
Merged

Busiii-adetiba merged 1 commit into
SynapsVault:mainfrom
ZeeTech374:batch-120-features

Conversation

@ZeeTech374

Copy link
Copy Markdown
Contributor

Closes #29
Closes #30

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

- 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
@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@Busiii-adetiba
Busiii-adetiba merged commit 5c2d8b4 into SynapsVault:main Oct 18, 2026
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.

01-generate-keypairs.js prints secret keys to stdout (and CI logs) rollback-contracts.cjs: parseEnvFile does not handle export KEY=value lines

2 participants