-
Notifications
You must be signed in to change notification settings - Fork 854
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
Malformed secret key: unknown type "age" #1177
Comments
I have the same issue, setting Example: export SOPS_AGE_KEY=age1XXX
➜ sops --encrypt --age $SOPS_AGE_KEY ./config.yaml > config.enc.yaml
# Trying to decrypt results in an error
➜ sops --decrypt config.enc.yaml
Failed to get the data key required to decrypt the SOPS file.
Group 0: FAILED
age1XXX: FAILED
- | error at line 1: malformed secret key: unknown type "age"
Recovery failed because no master key was able to decrypt the file. In
order for SOPS to recover the file, at least one key has to be successful,
but none were.
# unset SOPS_AGE_KEY
➜ unset SOPS_AGE_KEY
➜ sops --decrypt config.enc.yaml
my-key: my-value Update: ➜ unset SOPS_AGE_KEY_FILE
➜ export SOPS_AGE_KEY=AGE-SECRET-KEY-XXX
➜ sops --decrypt config.enc.yaml
my-key: my-value |
My experience is as follows: The SOPS_AGE_KEY_FILE is only needed for decryption. |
It seems to be caused by password protected key file. Support for that is added by #1400 |
Hi everyone,
I am not being to use sops with age. I can encrypt the files but when I try to decrypt them I bump into this error:
So here is how I am working:
I can encrypt and decript using just age but with Sops.
And here are the versions of both Sops and Age:
Also, my issue seems to be similar to this with the difference is that one is specific to yubikey and mine is just with plain age.
Thanks,
Eduardo
The text was updated successfully, but these errors were encountered: