| Files | Last commit | Last update |
|---|---|---|
Assign execution identities in the API server (#3735) Part of #3733. A delayed crash report can outlive an Actor execution while its Actor UID, worker and assignment stay the same. `ate-api-server` assigns a fresh UUID to each Run/Restore call and saves it with the RUNNING write. Atelet forwards the UUID; gVisor and microVM bind it to the runtime they start. Re-entry keeps the existing runtime replacement behavior. This is the preparation minor release agreed in #3733. Workers store the UUID and keep their existing crash-report format. The API accepts the report field without comparing it. Upgrade atelet and workers before the API. Draft #3736 enables reporting and comparison in the following minor. Validation on [Linux GitHub Actions](https://github.com/lilong555/substrate/actions/runs/44865317150) at `24ad2acd`: - `go test -race ./...` passes. - `go test -race -count=3 -shuffle=on ./cmd/ateworker-gvisor` passes, including both shutdown tests updated for the execution identity argument. - `hack/verify-all.sh` passes. Installed-runtime upgrade and rollback still need cluster CI. AI use: Codex assisted with implementation, testing and independent source review. --------- Signed-off-by: liyinlong <173714821+lilong555@users.noreply.github.com> Co-authored-by: liyinlong <173714821+lilong555@users.noreply.github.com> | 4 days ago | |
| 23 days ago | ||
docs: align control-plane docs with the current API and CLI (#3404) Several control-plane docs and the `kubectl-ate` reference still described earlier field names (`durableSnapshot.status`, `source_snapshot_tag`), empty-atespace rules, and older CLI columns and flags. Updates them to match the current implementation: - `docs/reference/glossary.md`: lists `Tag` under control-plane records, and notes that deleting an atespace requires its actors, actor templates, and tags to be gone. - `docs/reference/api-guide.md`: fixes `durableSnapshot.state`, documents deletion checks on `CreateActor` and `UpdateActor`, and adds `GetWorker` and `ListWorkerActorAssignments`. - `docs/api-style-guide.md`: renames `source_snapshot_tag` to `source_tag`. - `docs/guides/authorization.md`: `CreateActor` skips `can_use_tag` when `sourceTag` is omitted. - `docs/reference/kubectl-ate.md`: documents `--preview`, `--sandbox-class`, `top workers`, the current `get worker` and `get actor` columns, template removal before `delete atespace`, and automatic snapshot upload on `create tag`. AI use: AI-assisted to audit control-plane docs against the codebase and draft the documentation updates. I reviewed and verified the changes. - [x] Tests pass - [x] Docs updated Signed-off-by: Haiyan Meng <haiyanmeng@google.com> | 28 days ago | |
Verify actor JWTs in the credential exchange through OIDC discovery (#3447) Part of #3095. The objectstore-plugin exchange read actor JWT keys from a file, a stopgap from before ate-idp-server. #3358 needs an issuer instead, so its `pkg/` API takes no key file ([thread](https://github.com/agent-substrate/substrate/pull/3358#discussion_r4395525741)). - The exchange fetches keys through `<issuer>/.well-known/openid-configuration`. `--actor-jwt-jwks-file`, `oidcjwt.FileKeySource` and the `actor-id-jwt-jwks` volume are removed. - The sidecar verifies the issuer's certificate against the system roots plus `--actor-jwt-issuer-ca-file`, which is new and defaults to the service DNS trust bundle. The default ate-idp-server issuer verifies with or without an explicit `:443`, and a custom issuer can use a public certificate. ate-setup writes no CA setting for it. The sidecar re-reads the bundle when it changes and keeps the last good pool if a re-read fails. ate-api-server's `JWTProvider` CA files use the same reloading client and still replace the system roots there. - Nothing reads the pool Secret's `jwks` key now, so its writers are removed: the `admin` commands of kubectl-ate, ate-setup, `PublicJWKS` and `ConcretePool.JWKS`. Existing Secrets keep the stale key. - The sidecar fetches keys once at start. It exits on a certificate error and only warns on other errors, so an unreachable issuer fails exchanges with `UNAVAILABLE` until a fetch succeeds. Cached keys refresh after 5m, a failed refresh retries after 1m, and a token with an unknown key ID triggers at most one fetch per 1m. Until a fetch completes, including one the caller canceled, such a token gets `UNAVAILABLE`, so a newly rotated key ID is retried. Upgrade: drop `--actor-jwt-jwks-file` from custom sidecar configs. Set `--actor-jwt-issuer-ca-file` only if the issuer uses a private CA other than the service DNS one. Tests pass for `oidcjwt`, `credbundle`, `objectstoreplugin`, `cmd/objectstore-plugin`, `cmd/ate-setup` and `apiauthn`. The snapshotcredentials e2e needed no change. It compiles with `-tags=e2e` but has not run, as it needs GCS. - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com> | 25 days ago | |
Add Hugo Docsite (#1974) Fixes #1863 > It's a good idea to open an issue first for discussion. - [x] Tests pass - [x] Appropriate changes to documentation are included in the PR Github Pages URL from the fork: https://moficodes.github.io/substrate/ Signed-off-by: Mofi Rahman <mofi@google.com> | 30 days ago | |
| 24 days ago | ||
| 29 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 days ago | ||
| 23 days ago | ||
| 28 days ago | ||
| 25 days ago | ||
| 30 days ago | ||
| 24 days ago | ||
| 29 days ago |