File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ console.log(`VAPID_PUBLIC_KEY=${vapidKeys.publicKey}`);
2121console . log ( `VAPID_SUBJECT=mailto:your-email@example.com` ) ;
2222
2323if ( showPrivate ) {
24+ console . log ( '' ) ;
25+ console . log ( '# WARNING: The following VAPID_PRIVATE_KEY is sensitive.' ) ;
26+ console . log ( '# It may be captured in shell history, CI logs, or terminal logs.' ) ;
27+ console . log ( '# Prefer copying it directly into your secret store (e.g. .env, Key Vault)' ) ;
28+ console . log ( '# and avoid committing or storing this output in version control.' ) ;
2429 console . log ( `VAPID_PRIVATE_KEY=${ vapidKeys . privateKey } ` ) ;
2530} else {
2631 console . log ( '# VAPID_PRIVATE_KEY was generated but is hidden by default.' ) ;
@@ -35,6 +40,8 @@ console.log(` - VAPID_PUBLIC_KEY=${vapidKeys.publicKey}`);
3540console . log ( ' - VAPID_SUBJECT=mailto:your-email@example.com' ) ;
3641
3742if ( showPrivate ) {
43+ console . log ( ' # WARNING: VAPID_PRIVATE_KEY is sensitive; avoid committing docker-compose.yml with this value.' ) ;
44+ console . log ( ' # Store it in a secure secret manager or environment configuration.' ) ;
3845 console . log ( ` - VAPID_PRIVATE_KEY=${ vapidKeys . privateKey } ` ) ;
3946} else {
4047 console . log ( ' # VAPID_PRIVATE_KEY was generated but is hidden by default.' ) ;
You can’t perform that action at this time.
0 commit comments