Skip to content

Bind named GitHub and GitLab connections to host-scoped credentials #9906

Todo

Description

@ifireball

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

Dependencies

Depends on #9884 for named entity connections. Coordinate with #9903 for fullsend repos provisioning and lifecycle behavior. Jira connection credentials are tracked separately in #9904.

What is missing

Entity-source configuration v1 permits GitHub and GitLab connections with distinct endpoints and requires credentials to be bound to the exact canonical host and tenant. The current issue set covers named Jira credentials, but does not define or track how a named GitHub or GitLab connection obtains a credential for its own endpoint. Reusing a credential merely because the provider kind or connection name matches could send it to the wrong host; refusing all such connections would leave the declared configuration capability incomplete.

What should happen

Named GitHub and GitLab connections should use credentials provisioned for their configured host and tenant. The existing native connection should keep its current authentication behavior. Missing or mismatched host bindings should fail before a provider request, and changing an endpoint should require a binding for the new host. Credential values must remain out of configuration files and logs.

Acceptance criteria

  • Runtime credential selection is bound to the connection's canonical provider, endpoint, and tenant; the connection name alone never selects or reuses a credential.
  • Named GitHub and GitLab connections can be provisioned, validated, rotated, and removed through the supported lifecycle.
  • Missing or mismatched bindings produce an actionable error before a request and cannot appear as an empty source result.
  • Changing an endpoint does not reuse the previous host's credential.
  • Tests cover the native default, two same-provider connections on different hosts, missing bindings, mismatched hosts, and endpoint changes.
  • Existing native GitHub and GitLab authentication remains unchanged; Jira is covered by Provision credentials for named Jira connections #9904.

Activity

  1. fullsend-ai-triage commented on Nov 27, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 9:13 AM UTC · Completed 9:14 AM UTC

    Commit: 547a3c6 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.08

  2. added
    blocked
    on Nov 27, 2026
  3. fullsend-ai-triage commented on Nov 27, 2026

    @fullsend-ai-triage

    This issue is clearly scoped, but it can't be implemented yet. It depends on #9884, which introduces the canonical in-memory model for named entity connections. Until that lands there is no named GitHub/GitLab connection model to bind host-scoped credentials to. #9884 is still open and no PR for it was found.

    Once #9884 is resolved, this issue should be ready for a fresh triage pass.

    Two related items to keep in view:

    Blocked by:

  4. ifireball commented on Nov 30, 2026

    @ifireball
    MemberAuthor

    /fs-triage

  5. self-assigned this
    on Nov 30, 2026
  6. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 2:02 PM UTC · Completed 2:04 PM UTC

    Commit: cca0379 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.19

  7. added
    feature
    triaged
    type/feature
    and removed
    blocked
    on Nov 30, 2026
  8. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    The earlier blocker is resolved: #9884 is closed and PR #9893 has merged, along with the legacy normalization work, so the named-connection model this issue builds on is on main. No open PR addresses this issue, so it is ready for implementation.

    Points to align on during implementation

    Proposed test case

    Given: native default, plus two named GitLab connections on different hosts
      - each connection resolves only the credential bound to its own host
      - removing a connection's binding fails before any provider request (zero requests observed)
      - a binding recorded for host A is rejected for a connection pointing at host B
      - changing base_url requires a new binding; the old credential is not reused
      - the native connection keeps its current secret names and behavior
      - no secret value appears in effective-config output, logs or errors
    

    This is a new capability, so it is categorised as a feature and left for a maintainer to prioritize.


    Labels: The blocked label no longer applies: its dependency #9884 is closed and merged. The issue describes a new capability that does not exist yet, matching type/feature.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  9. ifireball commented on Nov 30, 2026

    @ifireball
    MemberAuthor

    /fs-code

    Implement this issue per its acceptance criteria and the latest triage note. Reuse the connection credential lifecycle from open PR #9939 (#9903), do not add a parallel provisioning surface, and align secret naming with #9904 while keeping providers and hosts isolated.

  10. fullsend-ai-coder commented on Nov 30, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 2:09 PM UTC · Completed 2:11 PM UTC

    Commit: cca0379 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $0.64

  11. fullsend-ai-coder commented on Nov 30, 2026

    @fullsend-ai-coder
    Contributor

    ℹ️ No PR created — agent determined no changes needed

    The code agent ran and evaluated issue #9906, but did not produce changes to submit as a pull request.

    Reason: Agent did not create a feature branch (current: 'main')

    Agent context:
    No PR opened: this issue can't be built on current main without first making design decisions or getting work that hasn't merged yet.

    1. The /fs-code instruction says to reuse the connection credential lifecycle from PR feat(#9903)!: drive repos Jira polling and safety from canonical connections #9939 (Port fullsend repos lifecycle to canonical tracker connections #9903). That PR is still open, and it doesn't add a credential lifecycle for explicit connections. Its description says explicit connections have no credential binding and leaves host-scoped provisioning to Provision credentials for named Jira connections #9904/Bind named GitHub and GitLab connections to host-scoped credentials #9906. Building on main would create the parallel provisioning surface the instruction rules out, or conflict with feat(#9903)!: drive repos Jira polling and safety from canonical connections #9939.
    2. Secret naming is supposed to match Provision credentials for named Jira connections #9904, but Provision credentials for named Jira connections #9904 is open and has no implementation, so there is no naming scheme to match yet.
    3. Nothing on main uses credentials for named GitHub/GitLab connections. The only runtime user of config.ResolveEntityConfig is the Jira poller (internal/cli/poll.go). The runtime consumers belong to Port runtime and CLI tracker consumers to canonical connections #9902, which is still open, so runtime credential selection by provider/host/tenant would have no caller.
    4. The credential format for a non-native host isn't defined. The normative spec (docs/normative/entity-source-configuration/v1/README.md, "Connections") leaves "concrete credential-reference formats" to the provider credential contracts. Native GitHub uses the GitHub App/token [REDACTED] and native GitLab uses registered role credentials. Neither contract says how a second host or tenant (GHES, self-managed GitLab) is provisioned or bound.

    What would unblock this:

    After that, re-run /fs-code.

    Workflow run: https://github.com/fullsend-ai/fullsend/actions/runs/46435415578

    Retry with /fs-code if appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featuretriagedtype/feature

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions