Skip to content

Embedded runner: an option to set NonFatalSecondaryLegs #7370

In review

Description

@ChrisJBurns

Problem

authserver.Config.NonFatalSecondaryLegs (#7311) makes a failed or cancelled non-first upstream leg skip that provider instead of failing the whole sign-in. Only authserver.Config has the setting. An embedder that builds the server with runner.NewEmbeddedAuthServerWithStorage (or NewEmbeddedAuthServer) can't turn it on: the runner builds the authserver.Config from the RunConfig and the EmbeddedAuthServerOptions, and neither carries it. The only other way is to build the server with authserver.New, repeating the runner's RunConfig resolution.

Expected

An EmbeddedAuthServerOption, for example runner.WithNonFatalSecondaryLegs(), sets NonFatalSecondaryLegs on the server the runner builds. Like the field, it stays Go-only, with no RunConfig or CRD field. Without the option, nothing changes.

Done when

  • An embedded server built through the runner with the option completes a multi-upstream sign-in when a non-first leg fails or the user cancels it, and records that provider as skipped.
  • Without the option, the sign-in fails as before.

Context

Mecatl builds its embedded gateway's authorization server through the runner. With this option, a user who cancels one provider's consent during their first sign-in at the gateway still gets an account, and that provider stays unconnected (stacklok/mecatl#2973).

Activity

  1. added
    needs-triage
    on Nov 28, 2026
  2. ChrisJBurns commented on Nov 28, 2026

    @ChrisJBurns
    CollaboratorAuthor

    Mecatl now builds its embedded gateway's authorization server through the runner with the company IdP as the first upstream (stacklok/mecatl#3018). Until this option exists, a user who cancels one provider's consent at their first gateway sign-in fails the whole sign-in. It's on Mecatl's phase 2 path (stacklok/mecatl#2973). Is anyone able to pick it up? It should be a small runner option.

  3. jhrozek commented on Nov 28, 2026

    @jhrozek
    Contributor

    I'll work on this.

  4. removed
    needs-triage
    on Nov 28, 2026
  5. self-assigned this
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions