-
Notifications
You must be signed in to change notification settings - Fork 500
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
Kamal unable to decrypt "secrets" file #1340
Comments
Do you only have one
|
Hey @raff-s ! Thanks for the reply! I will validate this once I get on my home machine tonight. I'll get back to you soon. |
@raff-s I have one called Is this the problem? I also have the key in my deploy.yml. Let me know if something is wrong in this setup. |
It depends on how you set up those encrypted files. |
@raff-s When I edit the credential files for production, I have my secret in it, like this:
I will try to re-deploy tomorrow with what you are suggesting. I had stopped my droplet for the moment because it was not working. |
I have a mostly vanilla Rails 8 application in terms of configuration. Default dockerfile, etc.. I have been able to deploy a couple of time without problem. But since I added the smtp configuration for the mailer that use the
credentials.dig
, it is not able to be healthy after deployment, so it keeps the previous version and fail the deployment.I added configuration for the mailer in
production.rb
file:My
secrets
file is the following:I run:
kamal setup
orkamal deploy
and I always receive this error:Followed by this:
I've read the documentation and I think I have everything that is needed. I guess the
secrets
file should be generated by kamal and used to create the environment variable needed to decrypt the "credential"... But I might be wrong. If it's not the case, then maybe it's a problem with the documentation?I even tried to remove the "secrets" file from Git and put the master key directly in it, and it didn't work...
I tried to be helped by 3 AI and multiple google search, without finding a solution... I'm new to Rails and Kamal, so I might be missing very basic stuff here, so sorry if this end up being a code 18. Other than that, killer project, I LOVE kamal and coming from 15+ years of development in other framework/language and working with k8s, this is very refreshing!
Thanks
The text was updated successfully, but these errors were encountered: