Skip to content

ate-api-server takes several ingress router IDs - #4254

Draft
Yuan Gao (ygao-g) wants to merge 1 commit into
agent-substrate:mainfrom
ygao-g:ateapi-gateway-spiffe-id-lists
Draft

Yuan Gao (ygao-g) wants to merge 1 commit into
agent-substrate:mainfrom
ygao-g:ateapi-gateway-spiffe-id-lists

Conversation

@ygao-g

@ygao-g Yuan Gao (ygao-g) commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Only one SPIFFE ID can hold ate-api-server's ingress_router role, because --ingress-router-spiffe-id takes one value. A second ingress router needs the same role, for example one that runs beside atenet-router during a cutover.

--ingress-router-spiffe-id is now repeatable, as is, and every listed ID holds the role. A listed ID gets the whole ingress_router role: it can resume any actor and list actors across all atespaces. The default is still atenet-router alone, and an empty list still fails startup. Before, a repeated --ingress-router-spiffe-id kept only its last value.

Change flags --ingress-router-spiffe-id and --egress-gateway-spiffe-id to pflag.StringSlice for two purposes:

  • Make --ingress-router-spiffe-id repeatable, and prepare for followup changes to add extra ones;
  • Parse both flag --flag= as an empty list [] instead of one empty ID [""], e.g., when there is no ingress PEP.

Part of #4251

AI use: AI-assisted for the diff and the test runs; I reviewed the diff.

  • Tests pass
  • Docs updated

@ygao-g Yuan Gao (ygao-g) added kind/feature An enhancement / feature request or implementation area/security Security related issue/pr area/network labels Dec 1, 2026
@ygao-g
Yuan Gao (ygao-g) marked this pull request as draft December 2, 2026 06:07
@ygao-g
Yuan Gao (ygao-g) force-pushed the ateapi-gateway-spiffe-id-lists branch 2 times, most recently from e2cf783 to b40446e Compare December 2, 2026 07:24
--ingress-router-spiffe-id took one SPIFFE ID, so one identity held
the ingress_router role. A second ingress router, such as one that
runs beside atenet-router during a cutover, could not resume actors.

--ingress-router-spiffe-id and --egress-gateway-spiffe-id are now
pflag.StringSlice, as --authz-bootstrap-owners is. Repeat either flag
for each ID, and every listed ID holds the role. ate-api-server still
fails to start when either list is empty.

Signed-off-by: Yuan Gao <ypgao@google.com>
@ygao-g
Yuan Gao (ygao-g) force-pushed the ateapi-gateway-spiffe-id-lists branch from b40446e to 84038e2 Compare December 2, 2026 08:05

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/network area/security Security related issue/pr kind/feature An enhancement / feature request or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant