Skip to content

Allow explicit default Jira connection to use existing polling credentials #9982

Done

Description

@ifireball

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

What happens

The legacy tracker.jira configuration is normalized to the default Jira connection and works with the existing unsuffixed FULLSEND_JIRA_* credentials. An equivalent configuration written explicitly with connections.jira and a Jira entity source is rejected by fullsend poll --input-driver jira-poll. The poller currently accepts only connections translated from tracker.jira, so users cannot switch to the canonical configuration shape and retain Jira event polling.

What should happen

Explicit canonical configuration for the default Jira connection should retain the existing Jira event-polling and dispatch behavior using the existing default credential bundle. The credentials must be verified against that connection’s Jira endpoint and tenant before use.

This issue covers the default Jira connection. Per-connection credential provisioning and selection for named Jira connections remain in #9904.

Context

ADR 0079 and entity-source configuration v1 define the canonical connection and source model. #9904 builds on it for named Jira connections and should depend on this default-connection behavior.

Activity

  1. self-assigned this
    on Dec 1, 2026
  2. fullsend-ai-triage commented on Dec 1, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 1:05 PM UTC · Completed 1:08 PM UTC

    Commit: 66d7918 · View workflow run →

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

  3. added
    ready-to-code
    on Dec 1, 2026
  4. fullsend-ai-triage commented on Dec 1, 2026

    @fullsend-ai-triage

    Triage findings:

    Likely cause: The rejection comes from loadJiraPollSettings in internal/cli/poll.go. After resolving the Jira discovery scope, it errors for any source whose connection is not the one translated from tracker.jira. The guard exists because buildJiraClient reuses the single unsuffixed FULLSEND_JIRA_* credential bundle for whatever endpoint it is given. It is too broad. It treats "explicit" as "non-default", so an explicit connections.jira is rejected along with genuinely named connections.

    Suggested approach:

    • Allow the explicit default Jira connection (kind jira, named jira) through the guard. Keep rejecting named non-default connections with a clear message, since their credential binding belongs to Provision credentials for named Jira connections #9904.
    • Verify the connection's endpoint and tenant against the default credential bundle before using it, and fail closed if they don't match. This is the safeguard that keeps the default token from being sent to another host.
    • Check that CheckUniformSourceBindings and the GitLab poll path in poll_jira_gitlab.go behave the same for an explicit default-connection source.

    Scope note: Named-connection credential provisioning and selection stay in #9904. No open PR currently addresses this issue.

    Proposed test case:

    loadJiraPollSettings:
      - legacy tracker.jira                       -> accepted (unchanged)
      - explicit connections.jira + Jira source   -> accepted, same base URL/projects/query as the legacy equivalent
      - explicit named non-default Jira connection -> rejected with a clear error
      - explicit default connection failing endpoint/tenant verification -> rejected, no credential sent
    Behaviour test: explicit default connection yields the same dispatches as the equivalent legacy config.
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  5. fullsend-ai-coder commented on Dec 1, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 1:12 PM UTC · Completed 1:29 PM UTC

    Commit: 66d7918 · View workflow run →

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

  6. added 2 commits that reference this issue on Dec 1, 2026
  7. added 2 commits that reference 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

bugready-to-code

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions