Skip to content

Add TEEs to the CRE runtime - #298

Merged
russell-stern merged 14 commits into
mainfrom
tee-prehooks-from-main
Aug 6, 2026
Merged

Add TEEs to the CRE runtime#298
russell-stern merged 14 commits into
mainfrom
tee-prehooks-from-main

Conversation

@nolag

@nolag nolag commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@nolag
nolag force-pushed the tee-prehooks-from-main branch 2 times, most recently from e7cbcf4 to 945943d Compare August 5, 2026 15:14
russell-stern
russell-stern previously approved these changes Aug 5, 2026
nolag added 10 commits August 5, 2026 12:59
Pin submodules/chainlink-protos to c1accce ("Merge TEE code to main"),
bump COMMON_VERSION to cre-std-tests@0.10.0, and regenerate protobufs
and capability SDKs against the new protos.

Adjustments required by the new protos:
- Rename AdditionalEnironments -> AdditionalEnvironments and use the
  generated enum member AdditionalEnvironments.TEE.
- Drop the Aptos client/restrictor entries from the SDK index; aptos
  protos are no longer published, so no aptos SDK is generated.
- Implement getSecrets on TeeRuntimeImpl, which the TeeRuntime
  interface now requires.
A TEE-enabled capability previously emitted three public declarations:
TeeRuntime-only, DON/Node-runtime-only, and the union of the two. The
union subsumes the other two, so drop them.

The union is the one that has to stay: it accepts each runtime
individually and also accepts a union-typed variable, which separate
overloads reject because overload resolution does not distribute over a
union argument.

Type safety at the call boundary is unchanged - the declaration keeps
<TInput> and CapabilityInput, so a DON Runtime is still rejected and
excess JSON keys still fail. Relative to main this only widens a
parameter, which is source-compatible for callers.

Also refresh api-baseline.d.ts, which the breaking-changes workflow
compares against. The delta is additive or defaulted generics only:
TeeRuntime, Hooks, handlerInTee, and the TRuntime parameter on
HandlerFn/HandlerEntry.
@nolag
nolag force-pushed the tee-prehooks-from-main branch from 02e6aea to 5c20409 Compare August 5, 2026 17:00
russell-stern
russell-stern previously approved these changes Aug 5, 2026
@russell-stern
russell-stern marked this pull request as ready for review August 5, 2026 20:03
@russell-stern
russell-stern requested review from a team as code owners August 5, 2026 20:03
@russell-stern
russell-stern merged commit fd362b0 into main Aug 6, 2026
15 checks passed
@russell-stern
russell-stern deleted the tee-prehooks-from-main branch August 6, 2026 12:24
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