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

unexpectedly stopped working with - ERROR (Kamal::ConfigurationError): Secret 'KAMAL_REGISTRY_PASSWORD' not found in .kamal/secrets #1317

Open
santy18 opened this issue Dec 20, 2024 · 2 comments

Comments

@santy18
Copy link

santy18 commented Dec 20, 2024

App no longer builds with this error: ERROR (Kamal::ConfigurationError): Secret 'KAMAL_REGISTRY_PASSWORD' not found in .kamal/secrets

no changes have been made to any of the files. Now, the secrets file

# Grab the registry password from ENV
KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD

# Improve security by using a password manager. Never check config/master.key into git!
RAILS_MASTER_KEY=$(cat config/master.key)

my .env has the env var

and I have tried both
kamal setup and dotenv kamal setup

To add, when I do kamal secrets print

the env var does not show up regarless of what value I put. I can put a string literal and nothing shows there

@casprwang
Copy link

casprwang commented Dec 20, 2024

I have similar issues but my error does show the actual secrets i put in my env(from shell), making it more strange as it should be read in kamal.

  ERROR (Kamal::ConfigurationError): Secret 'xxxxxx' not found in .kamal/secrets

I have kamal v2.4.0.

@casprwang
Copy link

after reading this thread I found dotenv kamal will work for me.

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

No branches or pull requests

2 participants