mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🚀 Feature: Add custom keys and rotate key features to distroless #36
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lordraiden on GitHub.
Feature description
distroless doesn't have shell so this security feature can't be used
https://pocket-id.org/docs/advanced/custom-keys
Pitch
A solution would be to configure this via environmental variables in docker compose, for example
@ItalyPaleAle commented on GitHub:
It should work as long as you use
docker exec- you can see the docs too@lordraiden commented on GitHub:
What about to choose the algorithm configuration per integration? would this be a thing? I have apps that support EdDSA and other only RSA? I guess I will what to stay with RSA.
Would be complex to implement to define several and choose in each integration which one to use?
@lordraiden commented on GitHub:
You are right, it worked but why it invalidate the logins to all the other apps and not to login to pocket id? I thought I would need to setup pocket ID from scratch but I was able to login with the same old passkeys in pocket ID. Why?
@ItalyPaleAle commented on GitHub:
The key-rotate command rotates the key that is used to sign tokens issued by Pocket ID. These are the tokens issued to OAuth clients (apps that use Pocket ID for auth), and the session tokens that keep you signed into Pocket ID.
Passkeys are not encrypted in Pocket ID. Rotating the key has no impact on them, and it shouldn't - invalidating all passkeys would be destructive.
@ItalyPaleAle commented on GitHub:
That isn’t possible today, it was done like this by design. If you have a need for that could you please open a separate issue?