Skip to content

Remove the secretKeyRef env sources feature - #835

Open
Zoe Zhao (zoez7) wants to merge 1 commit into
agent-substrate:mainfrom
zoez7:remove-secret-env-sources
Open

Remove the secretKeyRef env sources feature#835
Zoe Zhao (zoez7) wants to merge 1 commit into
agent-substrate:mainfrom
zoez7:remove-secret-env-sources

Conversation

@zoez7

@zoez7 Zoe Zhao (zoez7) commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

This reverts the ActorTemplate valueFrom.secretKeyRef support added in #20 (issue #15).

We don't want actors to have any access to secrets, they will be injected on the egress route instead. Removing this now so we don't need to copy secrets into substrate resources.

We don't want actors to have any access to secrets: they will be
injected on the egress route instead. Removing this now so we don't
need to copy secrets into substrate resources.

This reverts the ActorTemplate valueFrom.secretKeyRef support added in
agent-substrate#20 (issue agent-substrate#15), surgically rather than via git revert since the
touched files have since evolved:

- EnvVar reverts to a literal-only {name, value} shape; value is now
  required. EnvVarSource and SecretKeySelector are gone from the CRD.
- ate-api no longer reads Secrets: the env resolver, secret cache, and
  the kubernetes.Interface plumbing through NewService/NewActorWorkflow
  are removed. Literal env mapping is folded into
  workloadSpecFromActorTemplate so it still reaches atelet.
- The env redaction in ateinterceptors is kept: it is shared by
  InternalServerUnaryInterceptor and still keeps literal env values out
  of request logs.
- The claude-code-multiplex demo passes ANTHROPIC_API_KEY as a plain
  env value substituted at apply time; its Secret object is removed.

Note: checkpoint requests (pause/suspend) now carry literal env in the
spec since the single builder always maps env; atelet only consumes env
on Run/Restore, so this is inert.
@EItanya

Copy link
Copy Markdown
Collaborator

Can we hold off on this until egress policy merges? We still need some way to get secrets for testing agents which use LLMs

@zoez7

Copy link
Copy Markdown
Collaborator Author

Eitan Yarmush (@EItanya) Do you have ETA for egress policy merge? Once we cut over to substrate resources instead of CRDs, the workflow that rely on the secretKeyRef will break.

@EItanya

Copy link
Copy Markdown
Collaborator

Eitan Yarmush (Eitan Yarmush (@EItanya)) Do you have ETA for egress policy merge? Once we cut over to substrate resources instead of CRDs, the workflow that rely on the secretKeyRef will break.

Ok that’s fair, we can just remove it for now, I will review tomorrow

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.

2 participants