Kubernetes "trick": Calculate client secret digest "on the fly" (e.g. PBKDF2) #10389
Replies: 1 comment 8 replies
-
I understand what you're trying to do, but this is only marginally better I believe, any party that gains access to the namespace authelia is in, or authelia itself, will have a significant chance to also have access to the plaintext secrets. The secrets should be hashed prior to providing them to Authelia, and only be accessible to the client itself which should exist within a separate security context to authelia, and separate to other clients. The reason hashing is used and we suggest 80-100 character secrets is that the entropy of a hashed secret of that length is very unlikely to to be breakable by technology in the near future. This will always be the strict stance we take in regards to how passwords are provided to Authelia. This action should be done once if you're following best practice, it's how you store it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
(second attempt, sind a reload killed the first ... 🙄)
Situation
Solution
It took me a while to come up with it, but it's fairly obvious in hindsight: InitContainers and Authelia command line functions.
Code example
A working example is in my playground repo, and the relevant snippets are shown below:
(I think of creating a PR with this next week, because I really think this should "just work").
Also ping @james-d-elliott @Crowley723 That should also solve any requirements of the running server having access to plaintext secrets, right? :)
Beta Was this translation helpful? Give feedback.
All reactions