-
Notifications
You must be signed in to change notification settings - Fork 92
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
RS256 support breaks config checking #184
Comments
Oh I assumed RS256 was now supported in addition to HS256. It seems like this is not the case, so feel free to close the issue if this is expected behavior. |
In this case however I would be interested what the migration path for old setups using environment variables for secret configuration is. It does not seem to be outlined in #177 . |
HS256 is still supported, and it's not expected behavior.
Make sure you are actually using the newer version of Attic with the new module. This error message was removed in #177. Edit: Ah I missed
This doesn't work because the nixpkgs version hasn't been bumped to support RS256. In general, we don't want to support mixing the versions like this, but I opened #185 for this specific case since setting a hardcoded HS256 secret for the config check seems nicer than generating an RS256 keypair every time. |
Yeah this is what I thought and I am completely fine with that. I understand supporting multiple versions in the module can be a PITA and just pinning the module in cases like this works for me. Thanks for looking into it anyway! |
I’ve started NixOS/nixpkgs#347749 to provide a module in nixpkgs. I plan to finish the hardening this weekend but open to feedback. |
I am using the provided NixOS module together with the package from nixpkgs. Sadly #177 seems to have broken config checking for me. I checked 61ebdef and everything still works fine, so this seems to be some regression caused by the new RS256 code.
Error log:
I am a little confused, as the module itself did not change and I am using the package from
nixpkgs/nixos-24.05
. The issue might stem fromATTIC_SERVER_TOKEN_RS256_SECRET_BASE64
being exported whileATTIC_SERVER_TOKEN_HS256_SECRET_BASE64
is expected:attic/nixos/atticd.nix
Line 19 in 1b29816
The text was updated successfully, but these errors were encountered: