Skip to content

Make WebAuthn relying-party configurable via environment#511

Open
FinanceAlex wants to merge 1 commit into
mkreyman:masterfrom
FinanceAlex:fix/webauthn-config
Open

Make WebAuthn relying-party configurable via environment#511
FinanceAlex wants to merge 1 commit into
mkreyman:masterfrom
FinanceAlex:fix/webauthn-config

Conversation

@FinanceAlex

Copy link
Copy Markdown

Refs #494 (the WebAuthn hardcode noted in the issue comments).

config.exs hardcodes the WebAuthn relying-party (rp_id/origin) to loopctl.com, so the enrollment ceremony fails on any other origin — localhost or a self-hosted domain.

Change: allow overriding via WEBAUTHN_RP_ID / WEBAUTHN_ORIGIN env vars in runtime.exs. Without the env vars, behaviour is exactly as before (the block is skipped entirely), so cloud deployments are unaffected.

Testing: running in my self-hosted deployment since 2026-07-22 (WEBAUTHN_RP_ID=localhost, enrollment ceremony works). Compile-checked against current master with the Dockerfile's build image.

config.exs hardcodes rp_id/origin to loopctl.com, so the WebAuthn
enrollment ceremony fails on any other origin (localhost, self-hosted
domains). Allow overriding via WEBAUTHN_RP_ID / WEBAUTHN_ORIGIN at
runtime; without the env vars behaviour is unchanged.

Refs mkreyman/loopctl issue 494 (comment about the WebAuthn hardcode).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant