Skip to content

Versions 0.26+ not working with k8s due to auth pepper api var #1580

Description

@greenship24

First Check

  • This is not a feature request
  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • I can replicate the issue inside the Demo install.

Homebox Version

v0.26.2-rootless

What is the issue you are experiencing?

Error

panic: auth.api_key_pepper must be set to at least 32 bytes; generate with openssl rand -base64 48 and provide via HBOX_AUTH_API_KEY_PEPPER. Rotating it invalidates all issued API keys

Details about environment

Anyone running K8s knows that it base64 encodes all vars. I am running 25.x on my prod and looking to go 0.26.2 on testing to verify it all works, etc.

Process

  • Generate the key with the instructions- openssl rand -base64 48
  • Base64 encode it - echo <that output> | base64
  • Place that output into my actual secret (using sops) - HBOX_AUTH_API_KEY_PEPPER: <the twice base64 encoded output>

Result

Still does not work and fails with the same error. Realistically nothing should be wrong with it now. I can verify the secret itself shows the base64 value it should have. Is there any strictness on what this value can/should be besides 32 bytes? I tried with openssl rand -hex 40 and it failed as well.

How can the maintainer reproduce the issue?

Do as above

Deployment

Docker (Linux)

Database Type

SQLite

OS Architechture

x86_64 (AMD, Intel)

Deployment Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🕷️ bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions