-
Notifications
You must be signed in to change notification settings - Fork 328
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lockbox::Error (Master key must be 32 bytes (64 hex digits)) #1822
Comments
Hello @TheGroundZero, thanks for contributing to the Password Pusher community! We will respond as soon as possible. |
At first glance I have no idea. All looks good. Even running locally with that secret value works:
Let me give it some thought. |
Could there be an extra newline in the secret? Could you try assuring that there is no new line in |
Aha, that may be it! The file was made by just opening it in nano and copy/pasting from the browser. $ cat pwpush
2460873c513c44d596b07d0c190c760d9e4c1e4777125d1728c5282c87d2d6ad
$ hexdump pwpush
0000000 3432 3036 3738 6333 3135 6333 3434 3564
0000010 3639 3062 6437 6330 3931 6330 3637 6430
0000020 6539 6334 6531 3734 3737 3231 6435 3731
0000030 3832 3563 3832 6332 3738 3264 3664 6461
0000040 000a
0000041
$ wc -c pwpush
65 pwpush To fix it: $ echo -n "2460873c513c44d596b07d0c190c760d9e4c1e4777125d1728c5282c87d2d6ad" > pwpush
$ wc -c pwpush
64 pwpush Maybe it's not a bad idea to do a |
Excellent - that is great to hear.
I agree but this environment variable is actually processed by a 3rd party gem. I'll think about filing a fix request there. I'll close this issue out but if anything remains - let me know. |
馃悰 Bug Report
The tool does not seem to accept my master key.
Even though the value was taken from the tool's encryption key generator
/pages/generate_key
and does indeed count 64 characters.馃敩 How To Reproduce
Steps to reproduce the behavior:
PWPUSH_MASTER_KEY
Code sample
I'm using Podman to run the container.
The Master key is set via the
PWPUSH_MASTER_KEY
env variable using podman secret.Secrets file
Podman service file
Environment
Where are you running/using Password Pusher?
If applicable, what version of Password Pusher?
release
(Jan 10, 2024).Screenshots
馃搱 Expected behavior
馃搸 Additional context
The text was updated successfully, but these errors were encountered: