Repository navigation
rops fails to parse age key files with multiple keys: invalid Bech32 encoding #8262
Unanswered
n8himmel
asked this question in
Troubleshooting and bug reports
Replies: 2 comments
0 replies
|
This has been fixed by #12034, which has now been merged into The built-in rops integration now parses age key files as one identity per non-comment line and passes all identities in the format expected by rops. This supports standard key files containing multiple age identities while preserving the existing single-key and external SOPS CLI behavior. The fix should be available in the next mise release after v2026.8.6. The separate single-key report in the thread may have a different cause; if it still reproduces after the release containing #12034, it would be helpful to investigate it independently. AI-assisted — Tool: Codex; model: OpenAI/GPT-5; version: unavailable. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Description
mise's built-in rops decryptor fails when the age key file contains multiple keys. It throws "invalid Bech32 encoding" even though the keys are valid.
Reproduction
~/.config/sops/age/keys.txt:mise.toml:Expected behavior
rops should parse all keys in the file and try each one for decryption, matching the behavior of the standard
sopsCLI and the age key file format spec.Multiple keys in a single file is the standard age convention (see
age-keygendocs). Tools likesops --decrypthandle this correctly.Workarounds
MISE_SOPS_AGE_KEYenv var with a single key string (works)Verified with
sops.age_key_fileage-keygen -yconfirms both keys in the file are validsops+ageEnvironment
Both versions exhibit the same behavior.
All reactions