Clearer error messages for non-generated secrets #665
Notifications
Total Time Spent: 1 hour 39 minutes
Due Date
decentral1se
1 hour 39 minutes
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/abra#665
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello, I'm working on the renovate recipe here: coop-cloud/renovate#4
Renovate has no generated secrets, but the recipe user does need to set a token for accessing their git forge. I've set these in .env.sample and added the
# generated=falsecomment as mentioned here: https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-skip-secret-generation-for-a-specific-secretabra app new renovate, it will print the message "renovate requires secret generation before deploying", even though those secrets havegenerate=falsecomments in .env.sample.abra app secret insert ...". It should print both messages if there's a mixture of generated and non-generated secrets.abra app configand runningabra app deploy, it will print the message "secret not generated: github_token".abra app secretcommand to run to fix it.Excellent report, thanks! Yes, I believe we have a boolean on the secret struct to indicate if it's a "no generate" or not and can adjust the messages accordingly. Thanks for testing this new feature out so fast 🔆
In this same vein, found a similar issue while testing coop-cloud/rauthy#7
abra app new --secretswill not respect thegenerated=falsesetting and will generate all secrets. If you leave out the--secretsflag, you'll get the message:WARN rauthy requires secret generation before deploying, run "abra app secret <app> --all". But if you run that, it will also ignore thegenerated=falsesetting and will generate all secrets.Oh, i see something: it should be
generate=false- is that not working for you? You seem to be mixinggenerate/generated?That's what we're currently testing against:
https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-skip-secret-generation-for-a-specific-secret
Hmm just changed it and same issue:
I sometimes do lose track of which of my attempts work and which fail though 😅