Skip to content

Kbs update - #59

Merged
bpradipt merged 5 commits into
confidential-devhub:mainfrom
bpradipt:kbs-update
Sep 9, 2026
Merged

bpradipt merged 5 commits into
confidential-devhub:mainfrom
bpradipt:kbs-update

Conversation

@bpradipt

@bpradipt bpradipt commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

CoCo v0.22.0 ships Trustee v0.21.0. The previous default image
(built-in-as-v0.17.0) predates the rework of the KBS configuration
schema, so it cannot consume the new config format generated by the
following commits.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the Trustee/KBS integration to align with Trustee v0.21.0 (as shipped with CoCo v0.22.0), including the updated KBS configuration schema and admin authentication model, and adjusts tests/docs accordingly.

Changes:

  • Update Trustee deployment manifests and auth Secret layout for KBS v0.21.0 (new admin JWT + regex ACL config, unified storage backend, new key mount path).
  • Add/adjust tests validating the v0.21.0 ConfigMap/KBS manifest expectations and JWT role claim handling.
  • Refresh evaluation workflow expectations and internal architecture documentation to reflect the new storage location and admin HTTP API flow.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/trustee/trustee.go Updates KBS ConfigMap/Deployment generation for v0.21.0 schema and admin auth key mount expectations.
pkg/trustee/trustee_test.go Expands/updates tests to validate the v0.21.0 config schema and mount paths.
pkg/kbsclient/jwt.go Adds role: "admin" claim required by v0.21.0 authorization.
pkg/kbsclient/client_test.go Extends JWT claims test to assert the new role claim.
pkg/config/config.go Bumps default KBS image tag to v0.21.0 and updates config comments.
eval/tier2_cluster_test.go Updates on-disk verification paths for resources under the unified LocalFs backend.
CLAUDE.md Updates internal documentation to reflect the new KBS deployment/auth/schema and upload flow.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pkg/trustee/trustee.go
Comment thread pkg/trustee/trustee_test.go Outdated
Trustee v0.21.0 reworked its configuration: insecure_key was renamed
to insecure_header_jwk, the per-plugin LocalFs repository was replaced
by a unified [storage_backend] plus a kvstorage resource plugin, the
resource policy is embedded at startup instead of an OPA policy path,
and built-in RVPS reads reference values from the storage backend
rather than a mounted file.

The Intel DCAP verifier no longer reads sgx_default_qcnl.conf, so the
PCCS URL moves into attestation_service.verifier_config.dcap_verifier
and the separate dcap-attestation-conf ConfigMap is dropped.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
CoCo v0.22.0 ships a reworked admin authentication framework in
Trustee, and InsecureAllowAll no longer matches the upstream
default. Mount the admin public key Secret at /kbs so the key lands
at /kbs/kbs.pem where the bearer JWT identity provider reads it, and
add the admin role claim to the admin token that the regex ACL
requires to authorize requests. Unauthenticated requests and tokens
signed with foreign keys are now rejected with 401.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Trustee v0.21.0 persists resources through the unified LocalFs
storage backend instead of the plain repository tree, and escapes
the key's slash separators as \x2F in file names. Point the eval
checks at storage/repository with the new layout so uploaded
resources can be found inside the pod.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Keep the documented deployment internals aligned with the v0.21.0
schema and admin API flow so future work starts from an accurate
picture of how cococtl talks to the KBS.

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
@bpradipt
bpradipt merged commit 7c05ec2 into confidential-devhub:main Sep 9, 2026
3 checks passed
@bpradipt
bpradipt deleted the kbs-update branch September 9, 2026 17:34
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