Skip to content

Midstream merge - #22

Merged
kpiwko merged 28 commits into
mainfrom
midstream-merge
Sep 30, 2026
Merged

kpiwko merged 28 commits into
mainfrom
midstream-merge

Conversation

@kpiwko

@kpiwko kpiwko commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Rebase on top of konflux-ci/devlake

mfrancisc and others added 28 commits September 7, 2026 16:32
Service-account 2LO can mint 60-minute Bearer tokens and call the
Atlassian API gateway, so Jira Cloud connections no longer require a
user API token.

Upstream-Status: Pending

Co-authored-by: Cursor <cursoragent@cursor.com>
…lector logs

Co-authored-by: Cursor <cursoragent@cursor.com>
Credential 401s were forwarded as HTTP 401, so Config UI treated them as
session expiry. Map them to 400, skip the login interceptor for plugin
tests, and include Jira's response body (e.g. scope does not match).

Upstream-Status: Pending

Co-Authored-By: Cursor Grok 4.6 <noreply@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Clear authFunc when the refresh round tripper is installed so collection
workers do not race on oauthToken. Validate CloudId, restore request
bodies on 401 retry, and stop echoing raw token-endpoint bodies.

Upstream-Status: Pending

Co-Authored-By: Cursor Grok 4.6 <noreply@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Snapshot the original body when GetBody is missing so a reminted token
retry does not send an empty POST. Also drop the redundant gateway and
endpoint checks from Test Connection validation.

Upstream-Status: Pending

Co-Authored-By: Cursor Grok 4.6 <noreply@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
A 4KiB cap truncated Atlassian token JSON when many scopes were granted,
so Test Connection failed with unexpected end of JSON input. Keep a
64KiB DoS guard and fail clearly on empty or oversized bodies.

Upstream-Status: Pending

Co-Authored-By: Cursor Grok 4.6 <noreply@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Rename AtlassianOAuthTokenURL so gosec does not treat the public
auth.atlassian.com endpoint as a hardcoded credential.

Upstream-Status: Pending

Co-Authored-By: Cursor Grok 4.6 <noreply@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Collection token state now lives under TokenProvider's mutex, and 401
retries snapshot the body onto clones so RoundTrip does not mutate the
original request.

Upstream-Status: Pending

Co-Authored-By: Cursor <cursoragent@cursor.com>
apt-get install gpg inside mericodev/lake-builder fails because Debian 11
bullseye-security InRelease expired after LTS EOL. Keep tests in the
builder image and hand coverage to a follow-on ubuntu-latest job that
already has gpg.

Upstream-Status: N/A

Co-Authored-By: Cursor Grok 4.6 <noreply@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Collection builds the HTTP client without FromConnection so the round
tripper is the only minter and Authorization setter.

Upstream-Status: Pending

Co-Authored-By: Cursor <cursoragent@cursor.com>
Keep the lake-builder test job at contents: read instead of inheriting
default write scopes. Download artifacts into backend/ so Codecov finds
files after upload-artifact v4 strips the shared parent directory.

Upstream-Status: N/A

Co-Authored-By: Cursor Grok 4.6 <noreply@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Adds a full lifecycle e2e spec and wires it into test-e2e-coverage
so the codecov plugin is exercised under the e2e-go coverport flag.

COVERPORT-364

Co-authored-by: Cursor <cursoragent@cursor.com>
…only blocks the codecov part, and removing the timout flag from CI
Test Connection never sent `service`, so the backend fell back to `github` and
non-GitHub Codecov connections (e.g. GitLab Enterprise) were tested against the
wrong API path, failing with a misleading "organization not found". Save
Connection was unaffected — it sends the full form values.

Adds `service` to both test payload builders in `connection-form/index.tsx`, the
`test` / `testOld` payload types, and `IConnectionAPI`. Backend needed no change.
Entry added to `docs/upstream-diffs.md` since all three files are upstream.

Signed-off-by: Ladislav Lipka <llipka@redhat.com>
Signed-off-by: konflux-internal-p02[bot] <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
@kpiwko
kpiwko merged commit 6bdca30 into main Sep 30, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants