Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated secrets error message if secrets files do not exist #1136

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

aidanharan
Copy link
Contributor

When you initialize a new project a .kamal/secrets file is created. If you create a new destination config config/deploy.other.yml and try to deploy you get the obscure error message ERROR (Kamal::ConfigurationError): Secret 'KAMAL_REGISTRY_PASSWORD' not found in. The error message should have been Secret 'KAMAL_REGISTRY_PASSWORD' not found, no secret files provided but there was a small bug with [] being considered true.

The original error message doesn't mention that you need to create .kamal/secrets-common or .kamal/secrets.other. This PR updates the error message so that you are made aware of the the secrets files that Kamal is looking for.

@aidanharan aidanharan force-pushed the secrets-files-not-found-message branch from 7402e40 to c320343 Compare October 19, 2024 19:02
@djmb djmb merged commit 35075e2 into basecamp:main Oct 23, 2024
8 checks passed
@aidanharan aidanharan deleted the secrets-files-not-found-message branch October 23, 2024 13:37
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.

2 participants