feat(backend): support npub and nsec formats in ADMINS env for admin auth #4
Reference in New Issue
Block a user
Delete Branch "userAdityaa/caravel:admin-npub-support"
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?
Summary
This PR enhances admin authentication by allowing the ADMINS environment variable to accept both hex and npub (bech32) public key formats, as well as nsec (private key, deriving the pubkey). Previously, only hex keys were supported, which could lead to silent admin access failures if an npub was used.
Changes
.env.templateand backend documentation to clarify accepted formats.Closes #3
Let's not do this, postell's law doesn't apply here. If someone is going to run caravel, they are competent to use hex pubkeys.
Pull request closed