Repository navigation
Feat/git integration - #1097
Feat/git integration#1097ddecrulle wants to merge 52 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (3)
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 15e151bb3e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
2746e3b to
74954ed
Compare
- GitProvider port with GitLab, Forgejo and GitHub adapters (ui: oauth or PAT; service: PAT, scoped-access-token or oauth), GitHub API URL derived from the provider URL - GIT_PROVIDERS env (JSON5), unsupported combinations and duplicate ids refused at startup; empty: integration disabled - OAuthAuthorization port (PKCE in a popup, callback on /git/oauth/callback intercepted in main.tsx before oidc-spa) and GitSessionStore (refresh tokens in localStorage keyed by Keycloak sub, cross tab lock) - gitProvidersManagement usecase: load, OAuth refresh with retry on 401, sign in/out, PATs and favorite in gitConfigStr, one-time migration of the former GitHub PAT - gitAccountUiController usecase for the Account > Git tab (UI not built yet) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A config with initScriptUrl or oauthClientId now says the format changed and points to the .env documentation, instead of dumping the zod issues. Also adds a "web" dev server to .claude/launch.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- One card per configured provider: sign in with a popup (OAuth) or a personal access token checked before being saved, sign out (with a link to the authorized applications when the provider can't revoke), favorite provider, documentation; translated in the 9 languages - When GIT_PROVIDERS is set, the former name / email / GitHub token fields are hidden: each card shows its Git identity, the favorite's is used at launch, the Onyxia (Keycloak) account fills what it doesn't give - Launcher: git context from gitProvidersManagement.getGitContext(), git.token is the favorite's PAT; scoped tokens and service OAuth fall back to the former field until phase 3 - A denied OAuth sign-in shows the provider's error_description - GitProviderCard stories; web-mock launch config Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- gitAccountUiController now has a state per card: action in progress, last error, revocation hint, token replacement mode. Its thunks never reject. - Errors are mapped in the core, including Forgejo's "a grant exists with different scope", which now gets an explicit message and a link to revoke the previous authorization on the provider. - The view computes the status, message, git identity, favorite, link to the authorized applications and which buttons are shown or disabled. - GitProviderCard only displays the view; the token being typed stays in a small form component (a secret never goes through the state). - A denied OAuth sign-in keeps the provider's error_description. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
True once at least one Git provider is connected, always true without GIT_PROVIDERS (former behavior), false when personal infos aren't injected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…forge Each connected Git provider gets its commit identity and the credentials the service can use (personal access token, or OAuth config for git-credential-oauth). The single forge fields at the root (name, email, token, credentials_cache_duration) are kept, deprecated, filled from the favorite provider. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- getGitContext puts markers in git.token and git.providers for what only exists once "Launch" is clicked: the token of a scoped-access-token provider (and its git username), the access and refresh tokens of the favorite's service OAuth authorization. The fallback to the former GitHub PAT is gone. - getServiceGitCredentials, dispatched synchronously from the click: creates the tokens (onyxia-<service name>, lifetimeDays of the config, refreshed and retried once when rejected) and authorizes the service in a popup opened before anything is awaited. No marker left: nothing created, no popup. - The launcher replaces the markers only in the values sent to the API, the form state, saved configurations and shared links never hold a secret. - Nothing is launched when the credentials can't be obtained: a dialog says why (popup blocked, authorization cancelled or denied, session expired, provider error), translated in the 9 languages. - lifetimeDays on the scoped-access-token service of the GitProvider port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Account > Git: "Add a Git provider" (GitLab, GitHub, Forgejo), always with a
personal access token, saved only once the provider accepts it. A url
already configured is refused, the errors (token rejected, provider
unreachable e.g. Forgejo without CORS, invalid url) are shown in the dialog.
- The providers added by the user are in gitConfigStr (userProviders, absent
from what the previous versions saved), listed after the admin's, with a
"Remove" button that also removes their token.
- GIT_PROVIDERS: disallowUserToAddProviders (false by default, as for AI).
An empty GIT_PROVIDERS no longer disables the integration, the former
fields are only shown with { providers: [], disallowUserToAddProviders: true }.
Ids starting with "user:" are reserved.
- The former GitHub token is migrated to a github.com of the user when the
admin doesn't configure github.com.
- The Context gets createGitProvider instead of a fixed list of adapters, the
list is the gitProviders selector of gitProvidersManagement.
- Translated in the 9 languages, stories for the dialog and the card.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- bitbucket type, Bitbucket Cloud (https://bitbucket.org) only, accepted with personal-access-token / personal-access-token, in GIT_PROVIDERS and in the providers added by the user: Bitbucket's OAuth token endpoint requires the client secret, even for the refresh token, and doesn't enforce PKCE. - Adapter: API token as a Bearer, identity from /2.0/user and the primary confirmed email from /2.0/user/emails (same read:user:bitbucket scope), repositories from /2.0/repositories?role=member with a BBQL search, the username Bitbucket puts in the clone url removed. - GitProvider port: an optional gitUsername paired with the PAT, the git username of git.providers credentials (x-bitbucket-api-token-auth). - Add dialog: Bitbucket Cloud option, the scopes to tick on id.atlassian.com, translated in the 9 languages; .env documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A failed OAuth revocation is reported: signOut resolves isGrantRevoked, the card links to the authorized applications whenever the grant wasn't revoked (unsupported or failed), not only when the provider can't revoke. - The OAuth refresh request sends the redirect URI again, as GitLab's PKCE refresh flow documents. - A popup "closed" within 5s of navigating is assumed severed by a Cross-Origin-Opener-Policy header (gitlab.com's Cloudflare challenge): the callback and the timeout are then the only way out, instead of a cancellation. - getLocalStorage reads window.localStorage inside its try: a SecurityError (denied storage) falls back to memory instead of aborting the bootstrap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The port no longer mirrors GitProvidersConfig: id, url, displayName and lifetimeDays are read from the configuration. userConnection (how the user connects), getGitUsername (paired with any of the user's tokens) and serviceCredentials (user-token, scoped-token, oauth) replace ui and service. The username of a scoped token is known when the context is built, the username marker is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Constants (UI_SCOPES, GIT_SCOPES), schemas, the asserts on the configuration, the URLs under the same names (apiUrl is always the base of the API), then userConnection and serviceCredentials, returned in the order of the port. The tests follow the same order. No change in behaviour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Forgejo OAuth is kept: its tokens have every right of the user, as a PAT created with every scope would. The TODO becomes a note, and the .env documentation says it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… branch
- JSON schema: render "gitRepository" on an object { providerId, url,
branch }. In an array, one field per repository, added and removed as any
array item (maxItems). Other properties of the object are kept on update.
- FormField.GitRepository ("git repository"), computed in
computeRootFormFieldGroup and written by mutateHelmValues_update.
- gitProvidersManagement: connectedProviders selector (the favorite first)
and getConnectedProviderIdOfRepositoryUrl for a pasted url.
- Provisional field (until the designed UX): a connected provider, a
repository searched with listRepositories or pasted as a url, its branch
(the default one prefilled), warnings for a provider not connected and no
provider at all; translated in the 9 languages, with stories.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A {{...}} reference to an object of the context (git.providers) dropped
nothing undefined: applyDiffPatch then crawled into undefined and the
launcher crashed. The object is normalized as it would be serialized.
- Bitbucket: GET /2.0/repositories (every workspace) answers 404, the
repositories are listed per workspace (/2.0/user/workspaces, then
/2.0/repositories/{workspace}), most recently updated first. Needs the
read:workspace:bitbucket scope, added to the token hint (9 languages).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GitProvider port: listBranches (at most 100, filtered on the search): GitLab with its search, GitHub and Forgejo filtered in Onyxia, Bitbucket with a BBQL search, most recent commit first. - gitProvidersManagement.listBranches, from the clone url: the repository's path under the provider's url (getRepositoryFullPath), also for a pasted url or a saved configuration. - The branch of the gitRepository field is an autocomplete of these branches, any other name can still be typed. - Forgejo: no default branch for an empty repository, the one it announces doesn't exist and the clone would fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GitRepositoryFormField: "My providers" or "URL". Providers: a provider with its logo, the repositories listed in the page, the picked one with "Change". URL: written once complete, says if the credentials of a connected provider will be used or if the clone is anonymous; a pasted url switches to it. - The branch keeps its autocomplete, with its first branches as suggestions. - The current repository stays shown when its provider isn't connected, with the host of its url instead of another provider. - Search: what is known is filtered at once (decoupledLogic/repositorySearch), the provider is asked in the background and what it answers is added after what is shown. Not asked again for the same search, nor once every repository is known. - GitHub: /user/repos has no search, only the 20 most recent repositories could be found. A search now reads up to 3 pages of 100, the last two in parallel. - Default logos of the Git providers (defaultGitProviderLogoUrlByType). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
74954ed to
b49c09f
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
With a personal access token for Onyxia, the services get that same token: personal-access-token / oauth (GitLab, Forgejo, GitHub's device flow) and personal-access-token / scoped-access-token (GitLab) are refused at startup. The GitHub device flow couldn't clone at startup anyway. Every service OAuth is now authorized at launch, git.providers[].credentials.refreshToken is always set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…IDERS Like AI, the first region's gitProviders is passed as JSON to the web application's GIT_PROVIDERS environment variable. An explicit web.env.GIT_PROVIDERS takes precedence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 6c47f0e9bf
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
… entry A shared link could keep the marker of git.providers[i] and change the url next to it. In an array, the item holding a marker must now be the one Onyxia put as is, otherwise its markers are emptied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 53a01d0b35
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const personalAccessToken = | ||
| protectedSelectors.persistedGitConfig( | ||
| getState() | ||
| ).personalAccessTokenByProviderId[providerId]; |
There was a problem hiding this comment.
Bind saved PATs to the provider configuration again
When an administrator changes a PAT-backed provider's URL or type while retaining its display name, this lookup reuses the token stored under that unchanged ID and the restored connection sends it to the newly configured API endpoint. Fresh evidence since the prior review is that c4fbcdb removed the configuration-key reconciliation, so the previously addressed credential-disclosure path is active again; persist an endpoint/type fingerprint with each PAT and invalidate it before restoring the connection when that fingerprint changes.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this on purpose. Binding saved personal access tokens to the full provider configuration added reconciliation logic that wasn't worth its complexity here, so it was removed in c4fbcdb. PATs stay keyed by provider id, and the GIT_PROVIDERS documentation in web/.env now says to rename a provider whose URL or type changes, which drops the tokens saved for the old one.
🤖 Addressed by Claude Code
| let tokens: GitProvider.ServiceTokens; | ||
|
|
||
| try { | ||
| tokens = await authorizeAtLaunch.authorize(); |
There was a problem hiding this comment.
Revoke completed OAuth grants when a later authorization fails
When a launch uses multiple service-OAuth providers and the user authorizes an earlier provider but denies or closes a later one, this exchange has already created usable access and refresh tokens for the earlier grant; the eventual launch failure then discards them without revocation, leaving an active grant that Onyxia cannot recover. The scoped-token barrier below does not cover these OAuth side effects, so successful grants should be revoked when another provider fails, at least where the provider exposes revocation.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this on purpose, to keep the launch flow simple. No scoped token is created until every OAuth authorization has succeeded, so a failed authorization leaves nothing usable behind for the service. A grant that already completed stays on the user's account, just as it would after any other OAuth sign-in, and the user can revoke it from the forge.
🤖 Addressed by Claude Code
- The user's PAT handed over to the services is a launch marker too: never in saved or shared configurations, and bound to its unchanged provider entry like the other credentials - The repository picker's cache is per account, and the branches are listed again when the connected account changes - The Git URL field follows a url changed elsewhere (yaml editor) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
gitRepositoryFieldUiController holds what the user does in each render: "gitRepository" field and asks the provider for the repositories and branches the field needs. computeField, a pure function, computes everything the field shows. The component is split into display-only parts, and gitProvidersManagement keeps only the repository url rules. The Git profile select is wider, a name like "GitLab SSPCloud" fits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The charts read git.providers: git.name, git.email, git.token and git.credentials_cache_duration are no longer provided, nor the gitName, gitEmail and gitCredentialCacheDuration user configs. Document GIT_PROVIDERS in its type, the .env and the chart values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8cbb275673
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| trustedValue !== null && | ||
| typeof trustedValue === "object" && | ||
| !Array.isArray(trustedValue) | ||
| ? trustedValue[key] | ||
| : undefined |
There was a problem hiding this comment.
Bind trusted markers to their endpoint fields
For a chart that projects git.providers[0].credentials.token and git.providers[0].url into separate properties of a normal object, a crafted shared configuration can change the URL while preserving the trusted token marker: this object branch validates each leaf independently, whereas only the array branch requires the entire item to match. Launch then replaces the surviving marker with the recipient's PAT or service token and installs it alongside the attacker-controlled endpoint. Fresh evidence beyond the prior marker fix is that ordinary objects do not receive the whole-entry equality check added for arrays; bind each marker to the corresponding provider endpoint regardless of the chart's value layout.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this. Onyxia can't know which keys of an arbitrary chart layout form one provider entry. The chart decides that layout, and the provider list is an array, which already gets the whole-entry check. Keeping the fix simple.
🤖 Addressed by Claude Code
|
|
||
| // NOTE: Closed by the user during a previous authorization, or severed by COOP | ||
| // (see COOP_SEVERANCE_DELAY_MS): it can't be navigated anymore. | ||
| if (popup.closed) { |
There was a problem hiding this comment.
Replace a COOP-severed popup before the next authorization
When a launch requires multiple service-OAuth providers and the first provider severs its opener with COOP, its callback can still succeed through BroadcastChannel, but the next queued authorization reuses the same Window handle and immediately fails this popup.closed check. The launch therefore cannot authorize the remaining provider even though the user completed the first flow. Fresh evidence beyond the earlier single-popup report is that queued launch authorizations at shared.prPrevious reuse this permanently severed handle; use a continuation that obtains a usable popup for each remaining authorization.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this. It needs COOP severance and several service-OAuth providers in one launch. A replacement popup can't be opened without a new click anyway: the user gets the popup-closed error and clicks Launch again.
🤖 Addressed by Claude Code
…hing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dff3edb9b9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| globalContext.scopedAccessTokenExpirationTimeByProviderId.get( | ||
| providerId | ||
| ) ?? | ||
| Date.now() + | ||
| config.authentication.service.lifetimeDays * DAY_MS; |
There was a problem hiding this comment.
Compute scoped-token expiry when Launch is clicked
When the launcher remains open across a UTC day boundary, this reuses the expiration calculated when the Git context was first rendered rather than when the scoped token is created. A token configured for 30 days therefore loses one day for every day the form stays open, and after the stored date passes GitLab rejects the launch-time creation request altogether; calculate the creation expiry at launch and keep the expiration metadata sent to the service aligned with it.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this. It only happens if the launcher stays open across a day boundary, and fixing it means keeping the expiration in the helm values in sync at launch. Reloading the launcher computes a fresh date. Keeping it simple.
🤖 Addressed by Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ef54ec2e05
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| git: { | ||
| name: string; | ||
| email: string; | ||
| credentials_cache_duration: number; | ||
| token: string | undefined; | ||
| enabled: boolean; | ||
| providers: { |
There was a problem hiding this comment.
Preserve legacy Git context until catalogs migrate
For deployments using existing catalogs, replacing git.name, git.email, git.credentials_cache_duration, and git.token outright leaves every legacy overwriteDefaultWith reference unresolved; computeHelmValues.ts:193-207 then silently keeps the chart's defaults, so users lose their Git identity and private-repository token after upgrading. This affects the current official Jupyter chart, which still references all four legacy fields and has not adopted git.providers or render: "gitRepository" (official schema); retain compatibility fields until supported catalogs have migrated.
Useful? React with 👍 / 👎.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
- Drop the unused getAccessToken and getConnectedProviderIdOfRepositoryUrl thunks. - Drop the account card view fields the UI no longer reads, hasToken instead. - Share the personal access token check, and the request restart of the repository field. - Share the OAuth service credentials of the GitLab and Forgejo adapters. - The scoped token expiration fallback is the one announced to the service: midnight UTC, within GitLab's 365 days. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8e88e6e8e8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const workspaceSlugs = await (async () => { | ||
| const firstUrl = new URL(`${apiUrl}/user/workspaces`); |
There was a problem hiding this comment.
Cache Bitbucket workspaces across repository searches
When a Bitbucket user belongs to many workspaces, every repository search and pagination request enumerates all /user/workspaces pages again before issuing one repository request per workspace. Because the picker starts a new request for each distinct debounced search, typing several queries multiplies this fan-out by the workspace count, adding substantial latency and quickly consuming the provider's request budget. Cache the workspace slugs for the connected provider identity and invalidate them when that identity changes instead of refetching them on every listRepositories call.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this for now. Caching the workspaces means invalidating them when the account changes, which isn't worth the extra complexity here. Searches are debounced, and the workspace listing is capped at 10 pages.
🤖 Addressed by Claude Code
…only Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5955099eab
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| export function getRepositorySearchCacheKey(params: { | ||
| forgeId: string; | ||
| username: string | undefined; | ||
| }): string { | ||
| return JSON.stringify([params.forgeId, params.username]); |
There was a problem hiding this comment.
Invalidate caches when same-account credentials change
When a user replaces a fine-grained PAT with another token for the same forge username but different repository permissions, this key remains unchanged, so completed repository searches are never requested again and branch requests retain their previous results. Fresh evidence beyond the prior cache fix is that the cache/request identity now includes only the username, not a connection or credential revision; clear these caches on every successful reconnection or include such a revision in their keys.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this. Replacing a token with one for the same account but different permissions is rare, and reloading the page clears the caches. Keeping it simple.
🤖 Addressed by Claude Code
| const { token } = await dispatch( | ||
| privateThunks.callWithAccessToken({ | ||
| forgeId, | ||
| call: accessToken => | ||
| serviceCredentials.createToken({ |
There was a problem hiding this comment.
Roll back scoped tokens when a sibling creation fails
When a launch uses two or more scoped-token forges and one createToken call succeeds while another rejects, the enclosing Promise.all(prResults) returns the failure and discards the successful token, leaving an active PAT with no launched service; retries can accumulate more tokens. Fresh evidence after the prior authorization-barrier fix is that all scoped-token branches still cross that barrier and invoke createToken concurrently, so successful creations need to be revoked when any sibling creation fails.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this. It needs several scoped-token forges in one launch with only some creations failing. The tokens expire (lifetimeDays), and revoking them would add a rollback path we'd rather not maintain.
🤖 Addressed by Claude Code
| listUrl.search = new URLSearchParams({ | ||
| role: "member", | ||
| sort: "-updated_on", | ||
| page: `${page}`, | ||
| pagelen: `${REPOSITORIES_PER_PAGE}`, |
There was a problem hiding this comment.
Preserve global recency across Bitbucket workspaces
When a user belongs to multiple workspaces, requesting the same page number from every workspace and then appending later responses does not produce a globally most-recent-first list. For example, an old repository from workspace B's first page is shown before a repository updated today on workspace A's second page, despite the port's recency contract; merge workspace cursors globally or over-fetch and slice the globally sorted result for each requested page.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this. A strict global order across workspaces would mean over-fetching every workspace on each page. Each page is sorted by recency; the order across pages is approximate on purpose.
🤖 Addressed by Claude Code
…rl, concurrent load failure Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 5955099eab
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
| const helmValues = replaceServiceCredentialsMarkers({ | ||
| value: helmValues_withMarkers, | ||
| valueByMarker: gitCredentials.valueByMarker | ||
| }); |
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Security: Reject patched auto-launches that receive Git credentials
When auto-launch is enabled (the checked-in default), a link sender can leave the trusted Git credential entry untouched but patch an unrelated init-script or environment field. The marker remains valid, so launch retrieves the victim’s PAT or creates a scoped token and these lines substitute it into the same attacker-patched Helm values before installation; service code can then exfiltrate the clone/push credential. Fresh evidence after the prior marker fixes is a reproduction where an unchanged provider item plus a changed init script preserves and replaces the marker. Require confirmation or whole-launch integrity before injecting credentials.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not changing this in the PR for now. This is the existing autoLaunch trust model, not something new to Git: a patched auto-launched init script already runs with the user's S3 and Vault credentials. That risk is documented in .env, and admins can turn it off with DISABLE_AUTO_LAUNCH or restrict values with an x-security pattern. Left open for the maintainers to decide whether Git credentials should also require a manual Launch.
🤖 Addressed by Claude Code
|



Uh oh!
There was an error while loading. Please reload this page.