Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

feat(auth): trusted SSO login with hardened mint policy - #357

Merged
edospadoni merged 1 commit into
ns8from
ns8-sso
Oct 6, 2026
Merged

edospadoni merged 1 commit into
ns8from
ns8-sso

Conversation

@edospadoni

@edospadoni edospadoni commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Part of NethServer/dev#8142 — pluggable authentication methods with SAML2 Single Sign-On.

Adds an optional trusted-SSO login path: when sso_trusted_secret is configured, a trusted front-end (the NS8 middleware behind Traefik forwardAuth) can authenticate a user by forwarding the username with the shared secret, skipping PAM.

  • separate sso_token_key (HMAC token derivation) from the mint-authorization secret, with backward-compatible fallback
  • constant-time secret verification
  • SSO user policy: privileged/local accounts (admin, administrator, root) always denied; optional sso_user_allowlist

Off by default: without sso_trusted_secret nothing changes.

edospadoni added a commit to nethesis/ns8-nethvoice that referenced this pull request Sep 2, 2026
Wire the module build to the SSO feature work (NethServer/dev#8142):
- nethcti-server: checkout commit fa98e63d (branch ns8-sso,
  nethesis/nethcti-server#357)
- nethcti-middleware: image tag sso (nethesis/nethcti-middleware#79)
- nethvoice-cti: image tag sso (nethesis/nethvoice-cti#558)

To be repointed to release tags before merge.
Add an optional trusted-SSO login path for reverse-proxy SSO (SAML2/OIDC):
when sso_trusted_secret is configured, a trusted front-end can authenticate
a user by forwarding X-SSO-User with the shared secret, skipping PAM. The
whole check lives in a single ssoLogin(username, secret) entry point:
constant-time secret verification, separate sso_token_key for the token
derivation, privileged/local accounts (admin, administrator, root) always
denied, optional sso_user_allowlist.

Disabled by default: without sso_trusted_secret nothing changes.
@edospadoni edospadoni self-assigned this Sep 29, 2026
@edospadoni
edospadoni marked this pull request as ready for review October 6, 2026 07:35
@edospadoni
edospadoni merged commit 9cd75c2 into ns8 Oct 6, 2026
@edospadoni
edospadoni deleted the ns8-sso branch October 6, 2026 07:44
edospadoni added a commit to nethesis/ns8-nethvoice that referenced this pull request Oct 6, 2026
The SSO work was merged by nethesis/nethcti-server#357 and its branch
deleted, so 53112bd1 is no longer reachable by a clone and the
cti-server image fails to build (reference is not a tree).
edospadoni added a commit to nethesis/ns8-nethvoice that referenced this pull request Oct 6, 2026
The SSO work was merged by nethesis/nethcti-server#357 and its branch
deleted, so 53112bd1 is no longer reachable by a clone and the
cti-server image fails to build (reference is not a tree).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant