Skip to content

server, cli: add Gateway CRUD and ax commands - #569

Merged
yongruilin merged 2 commits into
google:mainfrom
yongruilin:gateway-crud
Nov 12, 2026
Merged

yongruilin merged 2 commits into
google:mainfrom
yongruilin:gateway-crud

Conversation

@yongruilin

Copy link
Copy Markdown
Collaborator

Store, serve and manage Gateways (part of #549). Their rules are not applied to tasks yet.

  • Gateway persistence (memory and Postgres) and the five RPCs; Create fails if the gateway exists, Update if it does not.
  • CreateTask rejects a task whose spec.gateway does not exist.
  • ax apply, get, describe, and delete for gateways.

Follow-up: enforcement through the actor's Substrate EgressPolicy.

@mayawang mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good overall! One thing: #567 rejected spec.gateway on purpose, since tasks are immutable and get the rules copied at creation. Removing that check before enforcement means a task created in between binds a gateway but never gets its rules, even after enforcement lands. Could the check stay until the enforcement PR?

Add the Gateway store methods and RPCs. Tasks still cannot bind a
gateway, because its rules are not applied yet.

Part of google#549.
@yongruilin

Copy link
Copy Markdown
Collaborator Author

Looks good overall! One thing: #567 rejected spec.gateway on purpose, since tasks are immutable and get the rules copied at creation. Removing that check before enforcement means a task created in between binds a gateway but never gets its rules, even after enforcement lands. Could the check stay until the enforcement PR?

@mayawang SGTM, I restored the check, so binding stays rejected until the follow-up PR.

@mayawang mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks! LGTM

@yongruilin
yongruilin merged commit ba7a919 into google:main Nov 12, 2026
10 checks passed
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