sst / ion

SST v3
https://sst.dev
MIT License
1.91k stars 226 forks source link

set secret command sets secret for incorrect stage #816

Closed bachiitter closed 1 month ago

bachiitter commented 1 month ago

When attempting to set a secret for the 'dev' stage using the SST CLI, the secret is incorrectly being set for the 'bachitter' stage instead. This occurs despite explicitly specifying the 'dev' stage in the command.

sst secret set AuthKey --"$(cat key.txt)" --stage dev

✓ Set "AuthPublicKey" for stage "bachitter". Run "sst deploy" to update.

Expected Behavior: The secret 'AuthKey' should be set for the 'dev' stage.

Actual Behavior: The secret 'AuthKey' is set for the 'bachitter' stage instead of the 'dev' stage.

thdxr commented 1 month ago

if you do the double — it will not forward the args after that

you can actually do sst secret set --stage=dev < key.txt

bachiitter commented 1 month ago

if you do the double — it will not forward the args after that

you can actually do sst secret set --stage=dev < key.txt

got it thanks