Skip to content

feat(oci): add native foundation - #7444

Open
BillLeoutsakosvl346 wants to merge 3 commits into
stagingfrom
feat/oci-foundation
Open

feat(oci): add native foundation#7444
BillLeoutsakosvl346 wants to merge 3 commits into
stagingfrom
feat/oci-foundation

Conversation

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor

Summary

  • Add a server-only OCI API-key credential foundation with strict validation, in-memory request signing, safe endpoint resolution, bounded transport, and sanitized errors.
  • Snapshot the OCI region/realm registry while deferring Queue, public credential plumbing, UI, catalog, icons, docs, and generated API changes.
  • Pin oci-common 2.140.0, the newest release allowed by the repository dependency-age gate; its region/realm registry is byte-identical to 2.140.1.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other

Testing

  • Node 22 focused Vitest suite: 65 tests passed
  • Bun 1.3.14 focused Vitest suite: 65 tests passed
  • Workspace type-check and production Sim build
  • Lint, block-registry checks, all 45 repository audits, and docs-manifest check

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Screenshots/Videos

Not applicable; this change is server-only.

@BillLeoutsakosvl346
BillLeoutsakosvl346 requested a review from a team as a code owner September 3, 2026 20:25
@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Building Building Preview Sep 3, 2026 9:10pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR establishes a server-only OCI API-key credential foundation.

  • Adds strict credential parsing, key and fingerprint validation, remote verification, encryption, and provider-bound loading.
  • Adds OCI region and realm resolution, service-owned endpoint validation, native request signing, bounded redirect-free transport, and sanitized provider errors.
  • Pins oci-common 2.140.0 and adds focused tests for credentials, endpoints, signing, and transport.

Confidence Score: 5/5

The PR appears safe to merge because no blocking failure remains in the eligible follow-up review scope.

No blocking failure remains.

Important Files Changed

Filename Overview
apps/sim/lib/credentials/oci-api-key-service-account.server.ts Adds strict OCI credential validation, verification, encryption, serialization, and provider-bound loading; no eligible follow-up finding was established.
apps/sim/lib/internal/oci/client.server.ts Adds bounded, redirect-free OCI request transport using the repository’s guarded fetch boundary.
apps/sim/lib/internal/oci/endpoints.ts Adds a snapshotted OCI region and realm registry with exact service-owned endpoint validation.
apps/sim/lib/internal/oci/signing.server.ts Adds in-memory OCI HTTP request signing while reserving signer-controlled headers.
apps/sim/lib/internal/oci/errors.ts Adds bounded OCI error parsing and redaction of request and credential material.
apps/sim/lib/oauth/types.ts Adds OCI API-key service-account provider and secret type identifiers.
apps/sim/package.json Adds the pinned OCI common dependency used by the native signer.
bun.lock Records the pinned OCI dependency resolution.

Sequence Diagram

sequenceDiagram
  participant Caller
  participant Credential as OCI Credential Service
  participant Signer as OCI Request Signer
  participant Transport as Guarded Transport
  participant OCI as OCI Object Storage
  Caller->>Credential: Submit API-key fields
  Credential->>Credential: Validate OCIDs, region, RSA key, fingerprint
  Credential->>Signer: Sign GetNamespace request in memory
  Signer->>Transport: Signed URL, headers, and bounds
  Transport->>OCI: HTTPS request without redirects
  OCI-->>Transport: Bounded response
  Transport-->>Credential: Namespace or sanitized error
  Credential->>Credential: Encrypt validated secret
  Credential-->>Caller: Encrypted credential and namespace
Loading

Reviews (2): Last reviewed commit: "fix(oci): harden endpoint and error vali..." | Re-trigger Greptile

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 12 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/lib/internal/oci/endpoints.ts Outdated
Comment thread apps/sim/lib/internal/oci/errors.ts Outdated
Comment thread apps/sim/lib/internal/oci/endpoints.ts Outdated
@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile review this PR

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 12 files

Fix all with cubic | Re-trigger cubic

Comment thread apps/sim/lib/internal/oci/errors.ts Outdated
Comment thread apps/sim/lib/internal/oci/errors.ts Outdated
Comment thread apps/sim/lib/internal/oci/errors.ts Outdated
Comment thread apps/sim/lib/internal/oci/errors.ts Outdated
@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile review this PR

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

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.

1 participant