Repository navigation
docs(easycla-ss): P10 — confirm EasyCLA has no NATS transit pre-M6 - #5130
mlehotskylf wants to merge 13 commits into
Conversation
Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
…-api Add MyCLAs/DownloadCLAPDF API(s) in EasyCLA
…MyCLAs' APIs group Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
…t-utils Add '/v4/my-clas/identities' API and util script to test the entire 'MyCLAs' APIs group
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
M1 "read-only My CLAs" spec-kit set and the migration architecture-review package that grounds it: - specs/001-easycla-ss-integration-fable/m1-my-cla/ — plan, spec, research, data-model, contracts, quickstart, tasks (31), and UI mockups. - docs/easycla-ss-migration/ — milestone architecture proposal, EasyCLA↔SS role-mapping feasibility memo, and the spike runbook M1 references. Docs only. M1 implementation: linuxfoundation/lfx-self-serve#1203. Co-Authored-By: Claude Fable 5 <[email protected]> Signed-off-by: Michal Lehotsky <[email protected]>
Add P10 documenting the architecture-approved decision to trust an SS-supplied identity list (azp allow-list + in-handler JWKS verify, read-only, transitional to M6) rather than re-verify per request, plus the corresponding trust-boundary risk row and a P3 pointer. Co-Authored-By: Claude Opus 4.8 <[email protected]> Signed-off-by: Michal Lehotsky <[email protected]>
Eric Searcy confirmed (2026-07-30) that EasyCLA has no NATS transit pre-M6. It is not merely IP reachability: the auth-service identity RPC is a request/reply (inbox) subject, so EasyCLA would have to be a cluster consumer for the reply, over a cross-region us-east-1 ↔ us-west-2 WAN link — and a federated NATS super-cluster is overkill. This settles the P10 open dependency in favor of the SS payload bridge + azp mechanism pre-M6, with EasyCLA calling the RPC directly deferred to M6. Replaces the stale "pending confirmation from Eric" parenthetical. Signed-off-by: Michal Lehotsky <[email protected]>
04df213 to
29e15da
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 31 out of 31 changed files in this pull request and generated 4 comments.
Comments suppressed due to low confidence (6)
cla-backend-go/v2/my_clas/service.go:687
- This makes every approved ECLA valid whenever its CCLA contains any GitLab-group criterion, even if the user has left that group and matches no other criterion.
signature_approvedis not updated merely because membership changes, so the API can report a stale ECLA as currently valid, contrary to FR-002 and the endpoint description. Perform a live GitLab-group check or conservatively mark this case invalid/unknown.
if !covered && approvedErr == nil && len(ccla.GitlabOrgApprovalList) > 0 {
covered = true
specs/001-easycla-ss-integration-fable/m1-my-cla/quickstart.md:19
- The implemented placement was corrected to the Profile tab at
/profile/clas(tasks T020 and research R5), so this route sends validators to a nonexistent/stale location.
2. Open **Me lens → My CLAs** (`/me/clas`).
specs/001-easycla-ss-integration-fable/m1-my-cla/quickstart.md:6
- This prerequisite is stale: the implemented service derives the CLA URL from
API_GW_AUDIENCE, and research R5/tasks T011 explicitly droppedCLA_SERVICE_BASE_URL. Following this quickstart leaves the required audience token setup undocumented. Replace this with the actualAPI_GW_AUDIENCErequirement and derived/cla-serviceURL.
This issue also appears on line 19 of the same file.
- Network access to EasyCLA **dev**: lfx-gateway dev URL for `/cla-service/v3|v4` (set `CLA_SERVICE_BASE_URL`), plus whichever token config the R3 spike selected (user bearer passthrough, or exchange/M2M client credentials).
specs/001-easycla-ss-integration-fable/m1-my-cla/spec.md:36
- The implemented UI is a Profile child route at
/profile/clas, not a Me-lens module at/me/clas(tasks T020/research R5). Keeping the old route in the normative scope makes the spec contradict the implementation and quickstart.
In: Me-lens module `/me/clas`, SS server routes, identity resolution + telemetry, PDF presigned-URL hand-off, empty state, feature flag.
specs/001-easycla-ss-integration-fable/m1-my-cla/plan.md:64
- This source layout is obsolete after the documented T020 placement correction: the implementation lives under the Profile
claschild route rather than a newmodules/my-clasmodule or Me-lens sidebar route. Update the plan structure so future tasks do not recreate the abandoned architecture.
├── app/modules/my-clas/ # NEW Angular lens module (Me lens)
│ ├── my-clas.routes.ts # exported MY_CLAS_ROUTES, lazy-loaded at /me/clas
│ ├── my-clas.component.ts|html # list view: ICLA + ECLA sections, empty state
│ └── components/
│ └── agreement-card/… # per-agreement row (type, project, company, date, status, PDF action)
specs/001-easycla-ss-integration-fable/m1-my-cla/contracts/ss-me-clas-api.md:53
- This contract contradicts the implemented gating model recorded in research R5/tasks T018: the Express routes are registered unconditionally and only the Angular Profile route/tab is feature-gated. Consumers and route tests following this contract will incorrectly expect a 404 from the server when the flag is off.
Both routes and the Angular module are gated by LaunchDarkly flag `my-clas-enabled` (name TBD per repo convention). Flag off ⇒ routes 404, sidebar item hidden, route guard redirects to Me dashboard.
| gitlabOrganizationsService := gitlab_organizations.NewService(gitlabOrganizationRepo, v2RepositoriesService, v1ProjectClaGroupRepo, storeRepository, usersService, signaturesRepo, v1CompanyRepo) | ||
| v1SignaturesService := signatures.NewService(signaturesRepo, v1CompanyService, usersService, eventsService, githubOrgValidation, v1RepositoriesService, githubOrganizationsService, v1ProjectService, gitlabApp, configFile.ClaV1ApiURL, configFile.CLALandingPage, configFile.CLALogoURL) | ||
| v2SignatureService := v2Signatures.NewService(awsSession, configFile.SignatureFilesBucket, v1ProjectService, v1CompanyService, v1SignaturesService, v1ProjectClaGroupRepo, signaturesRepo, usersService, approvalsRepo) | ||
| v2MyClasService := v2MyClas.NewService(v2MyClas.NewRepository(awsSession, stage), user_service.GetClient(), v1SignaturesService, v1CompanyRepo, v1ProjectClaGroupRepo) |
| } | ||
| appendAllowedStrings(requested.Emails, "email", normalizeEmail, emailAllowed, &allowed.Emails, &skipped) | ||
| appendAllowedStrings(requested.SecondaryEmails, "secondaryEmail", normalizeEmail, emailAllowed, &allowed.SecondaryEmails, &skipped) | ||
| appendAllowedIDs(requested.GithubIDs, "githubId", idAllowed(selfGithubIDs), &allowed.GithubIDs, &skipped) |
| if email.IsDeleted != nil && *email.IsDeleted { | ||
| continue | ||
| } | ||
| set.emails[normalizeEmail(*email.EmailAddress)] = true |
|
|
||
| var dbUsers []users.DBUser | ||
| for { | ||
| scanResults, scanErr := repo.dynamoDBClient.ScanWithContext(ctx, scanInput) |
|
Closing in favor of a new PR based on |
Updates P10 in
docs/easycla-ss-migration/architecture-proposal.mdto record Eric Searcy's confirmation (2026-07-30) that EasyCLA has no NATS transit pre-M6, replacing the stale "pending confirmation from Eric" parenthetical.Why
P10 (trust-SS "My CLAs" identity read +
azpallow-list) hinged on one open dependency: whether EasyCLA could reach NATS pre-M6. If it could, "same data, less machinery" would argue for EasyCLA callinglfx.auth-service.user_identity.listdirectly and skipping both the SS payload bridge and theazpmechanism.Eric confirmed it cannot, and not merely for IP-reachability reasons:
So the SS payload bridge +
azpmechanism is the right pre-M6 design; EasyCLA calling the RPC directly is deferred to M6.Scope
One-line change to the P10 rationale cell. No behavioral/code change.
Decision: linuxfoundation/lfx-self-serve#1216 · Follow-ups: linuxfoundation/lfx-self-serve#1224 (EasyCLA) / linuxfoundation/lfx-self-serve#1225 (SS)
🤖 Generated with Claude Code