Add attestation proxy routing and no-policy response handling#232
Open
FilipCivljak wants to merge 3 commits into
Open
Add attestation proxy routing and no-policy response handling#232FilipCivljak wants to merge 3 commits into
FilipCivljak wants to merge 3 commits into
Conversation
Implements the Attestation page in the Vite UI, gated by
VITE_ENABLE_ATTESTATION=true at build time. When disabled (default),
no attestation routes, nav items, or API calls are included in the bundle.
- ui/src/lib/features.ts: VITE_ENABLE_ATTESTATION and VITE_CUBE_PROXY_URL flags
- ui/src/lib/attestation.ts: API client for GET /{domainID}/attestation/policy
and POST /attestation/policy (proxy-attestation.yaml contracts)
- ui/src/pages/AttestationPage.tsx: JSON policy editor with Refresh/Save,
status badge, and info panels explaining aTLS platforms
- ui/src/components/Sidebar.tsx: conditional Attestation nav item (shield icon)
- ui/src/App.tsx: conditional /attestation route
- ui/vite.config.ts: CUBE_PROXY_TARGET dev proxy for /attestation
- ui/.env.example: documents all three new env vars
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
This is a feature because it adds the Attestation page to the Cube UI and adds no-policy response handling to the cube-proxy.
What does this do?
VITE_ENABLE_ATTESTATION=truebuild-time flag. When disabled (default), no attestation nav item, route, or API calls are included in the bundle./proxy/*so the existing Vite dev proxy and Traefik setup work without extra configuration.Which issue(s) does this PR fix/relate to?
No issue.
Have you included tests for your changes?
No. The attestation page is UI-only and the proxy change (
sql.ErrNoRows→ empty response) is a one-line guard with no testable business logic beyond the existing DB layer.Did you document any new/modified features?
The
ui/.env.exampledocuments theVITE_ENABLE_ATTESTATIONflag and the existingagent/workflows/attestation-policy.mdcovers the full policy generation workflow.Notes
Policy generation requires real TEE hardware (AMD SEV-SNP, Intel TDX, GCP, or Azure CVM) and
cocos-cli. For local dev, settingVITE_ENABLE_ATTESTATION=trueand uploading{"platform":"no_cc"}via the editor is sufficient to exercise the full Save/Refresh flow.