Skip to content

Provision credentials for named Jira connections #9904

Todo

Description

@ifireball

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

Dependency

Depends on #9884 for the canonical named-connection model.

What is missing

Jira credentials are currently provisioned as one repo-wide bundle. That works for the default connections.jira connection but cannot distinguish credentials for multiple Jira sites configured under named connections. Reusing the default token for another endpoint would violate the host-scoped credential contract.

What should happen

  • Keep the existing unsuffixed repo secrets for the default Jira connection: FULLSEND_JIRA_TOKEN, FULLSEND_JIRA_EMAIL, FULLSEND_JIRA_CLIENT_ID, and FULLSEND_JIRA_CLIENT_SECRET. Existing fullsend repos --jira-* inputs continue to target that default connection.
  • For a named non-default Jira connection, use connection-scoped secret names of the form FULLSEND_JIRA_<CONNECTION>_TOKEN, FULLSEND_JIRA_<CONNECTION>_EMAIL, FULLSEND_JIRA_<CONNECTION>_CLIENT_ID, and FULLSEND_JIRA_<CONNECTION>_CLIENT_SECRET, with the connection-name segment uppercased and normalized consistently. Reject names that normalize to the same secret namespace.
  • Extend fullsend repos to accept per-connection Jira credential inputs and to probe, validate, preserve, rotate/replace, and remove the corresponding secret set. Secret values remain command inputs/repo secrets and are never written to the manifest or logs.
  • Resolve credentials by the connection's canonical endpoint and tenant. Never choose or reuse a credential solely from a connection name or provider kind, and never send a credential to a different host.
  • Multiple entity sources on the same connection share that connection's credential binding. The runtime continues to expose its existing Jira provider variables for the selected run connection without exposing other connections' credentials.
  • Preserve the current mutually exclusive token/email and OAuth credential modes independently for each connection.

Activity

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

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 8:58 AM UTC · Completed 9:00 AM UTC

    Commit: ce0d95c · View workflow run →

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

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

    @fullsend-ai-triage

    This issue is blocked on #9884, which introduces the canonical named-connection / entity-source configuration model. Credential names, endpoint/tenant-based resolution, and name-collision checks for non-default Jira connections all depend on that model, so work should not start until #9884 is resolved. #9884 is still open and no pull request for it was found.

    The requirements here are otherwise clear. Once #9884 lands, this issue should be re-triaged and can proceed without further clarification.

    Related: #9903 (porting the fullsend repos lifecycle to canonical connections) is also open and touches the same command and the default Jira secret handling. It isn't declared as a blocker, but the two will likely need to be sequenced or coordinated to avoid conflicting changes.

    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:05 PM UTC

    Commit: cca0379 · View workflow run →

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

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

    @fullsend-ai-triage

    The blocker identified in the earlier triage is resolved: #9884 is closed (its implementation PR merged) and its follow-up #9907 is also closed and on main. The requirements here are specific enough to implement without further clarification.

    Where the work lands (confirmed to exist in this repo): the Jira credential flags and secret handling in internal/cli/repos.go and internal/forge/forge.go, the per-forge Jira provisioning in internal/repos (github_jira_poll.go, gitlab_jira_poll.go), the runtime credential lookup in internal/forge/jira/scoped.go and internal/cli/run_workitem.go, and the canonical connection model in internal/config/entity_sources.go.

    Coordination: #9903 (porting the fullsend repos lifecycle to canonical connections) is still open and edits the same command and default Jira secret handling. It is not a declared blocker and no open PR for it was found, but whichever change lands second will need to rebase onto the other. Related work for GitHub/GitLab connections is tracked in #9906.

    Open points for maintainers (not blockers): the exact rule for normalizing connection names into the secret-name segment (for example how hyphens or dots are treated) and the definition of canonical endpoint/tenant used for host-scoped resolution should follow the #9884 model; document whichever choice is made.

    Proposed test case:

    - Names that normalize to the same secret segment are rejected at validation.
    - `fullsend repos` provisions/preserves/rotates/removes each named connection's FULLSEND_JIRA_<CONNECTION>_* set independently of the default set.
    - Token/email and OAuth inputs are mutually exclusive per connection, but can differ across connections.
    - A run on named connection B exposes only B's credentials via the existing Jira provider variables, and no credential is sent to a host other than its connection's endpoint.
    - Secret values never appear in manifests or logs.
    

    This is categorized as a feature, so it is not auto-promoted to implementation; a maintainer can apply the ready-to-code flow once the sequencing with #9903 is settled.


    Labels: This is an enhancement to the fullsend repos CLI provisioning, and the blocked label no longer applies now that #9884 is closed.


    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. Coordinate with open PR #9939 (#9903): keep named Jira credential work scoped here, avoid duplicating the repos lifecycle changes, and rebase against that PR if needed.

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

    @fullsend-ai-coder
    Contributor

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

    Commit: cca0379 · View workflow run →

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

  11. ifireball commented on Dec 1, 2026

    @ifireball
    MemberAuthor

    /fs-triage what is left to do here?

  12. fullsend-ai-triage commented on Dec 1, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 12:24 PM UTC · Completed 12:26 PM UTC

    Commit: 66d7918 · View workflow run →

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

  13. added
    feature
    triaged
    and removed
    feature
    triaged
    on Dec 1, 2026
  14. fullsend-ai-triage commented on Dec 1, 2026

    @fullsend-ai-triage

    What is left (as of current main):

    Already done via merged PR #9945 (a deliberately partial implementation) and #9939: the connection-scoped secret-name rule (default connection keeps the unsuffixed names; named connections use FULLSEND_JIRA_<CONNECTION>_* with the name uppercased and non-alphanumerics replaced by _), rejection of colliding connection names at validation, a per-connection credential reader in internal/forge/jira/scoped.go (not yet used outside tests), and the fullsend repos Jira lifecycle port to canonical connections. The earlier sequencing concern with #9903 is cleared.

    Still to do:

    1. fullsend repos inputs for named connections: per-connection inputs that probe, validate, preserve, rotate/replace and remove each named secret set independently of the default set (today only the four default --jira-* flags exist), for GitHub and GitLab, with values redacted and never written to the manifest.
    2. Endpoint/tenant binding: decide and implement how the provisioned endpoint/tenant is recorded and verified, so a credential is never chosen from a name or provider kind alone or sent to another host. Per the feat(#9904)!: define connection-scoped Jira credential secret names #9945 description this is still an open design point; it should follow the canonical connection model from Implement entity-source configuration v1 as the canonical config model #9884.
    3. Runtime selection: use the connection's credential set for a run, map it onto the existing Jira provider variables without exposing other connections' secrets, and lift the jira-poll driver's current refusal of explicit Jira connections once binding is enforced.
    4. Workflow secret forwarding and docs: forward named secrets in workflows (see warning) and drop the 'not provisioned yet' note in docs/reference/config-reference.md.

    No open PR currently covers these items. #9906 (GitHub/GitLab host-scoped credentials) is related, and #9980 (Vault-sourced Jira credentials) builds on this issue's contract, so it should follow this work.

    Warning: item 4 may require editing files under .github/workflows/ or enrolled-repo shim workflows. The code agent cannot modify workflow files under current permissions, so that part needs a human PR or maintainer action. Items 1–3 can proceed via /fs-code, ideally one item per PR.

    Proposed test case:

    - repos provisions/preserves/rotates/removes each named FULLSEND_JIRA_<CONNECTION>_* set independently of the default set
    - token/email and OAuth inputs are mutually exclusive per connection but can differ across connections
    - a run on connection B exposes only B's credentials via the existing Jira provider variables
    - a credential whose recorded endpoint/tenant differs from the connection's endpoint is rejected
    - secret values never appear in repos.yaml or logs
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  15. added 2 commits that reference this issue on Dec 1, 2026
  16. added a commit that references this issue on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component/installfeaturetriagedtype/enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions