Skip to content

docs(easycla-ss): P10 — confirm EasyCLA has no NATS transit pre-M6 - #5130

Closed
mlehotskylf wants to merge 13 commits into
spec/easycla-ss-m1from
docs/p10-nats-transit-confirmed
Closed

mlehotskylf wants to merge 13 commits into
spec/easycla-ss-m1from
docs/p10-nats-transit-confirmed

Conversation

@mlehotskylf

Copy link
Copy Markdown
Collaborator

Updates P10 in docs/easycla-ss-migration/architecture-proposal.md to 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 + azp allow-list) hinged on one open dependency: whether EasyCLA could reach NATS pre-M6. If it could, "same data, less machinery" would argue for EasyCLA calling lfx.auth-service.user_identity.list directly and skipping both the SS payload bridge and the azp mechanism.

Eric confirmed it cannot, and not merely for IP-reachability reasons:

  • the RPC is a request/reply (inbox) subject, so EasyCLA would have to be a cluster consumer for the reply;
  • EasyCLA (us-east-1) ↔ v2 k8s cluster (us-west-2) is a cross-region WAN link — you don't run inbox consumers over WAN;
  • a federated NATS super-cluster with gateways is overkill.

So the SS payload bridge + azp mechanism 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

…-api

Add MyCLAs/DownloadCLAPDF API(s) in EasyCLA
…t-utils

Add '/v4/my-clas/identities' API and util script to test the entire 'MyCLAs' APIs group
Copilot AI review requested due to automatic review settings July 30, 2026 07:32
@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c70e8701-a12c-40a5-89f1-a783b90e2eea

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the confirmed absence of pre-M6 NATS transit, resolving P10’s pending dependency.

Changes:

  • Records Eric Searcy’s confirmation and technical rationale.
  • Retains the SS payload bridge and azp mechanism until M6.

mlehotskylf and others added 3 commits July 30, 2026 16:09
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]>
@mlehotskylf
mlehotskylf force-pushed the docs/p10-nats-transit-confirmed branch from 04df213 to 29e15da Compare July 30, 2026 14:09
Copilot AI review requested due to automatic review settings July 30, 2026 14:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_approved is 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 dropped CLA_SERVICE_BASE_URL. Following this quickstart leaves the required audience token setup undocumented. Replace this with the actual API_GW_AUDIENCE requirement and derived /cla-service URL.

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 clas child route rather than a new modules/my-clas module 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)
Comment on lines +537 to +540
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)
@mlehotskylf

Copy link
Copy Markdown
Collaborator Author

Closing in favor of a new PR based on dev instead of the stale spec/easycla-ss-m1 base, which was pulling in unrelated commits.

This branch was previously deployed

1 inactive deployment
dev — 29e15da9 Deployed Jul 30, 2026 by mlehotskylf via build-test-lint #1759
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.

3 participants