9
2
Fork
You've already forked platform
2

Publish enclave tool commits via /.well-known endpoint + dashboard footer #324

Manually merged
ryansquared merged 4 commits from feat/publish-build-inputs into main 2026年06月27日 09:26:15 +02:00

Adds a public GET /.well-known/caution/build-inputs returning the enclaveos/bootproof/steve/locksmith commits the platform builds new enclaves with, fed by a single shared resolver that replaces the duplicated commit literals across the API, builder, and CLI defaults. The dashboard footer surfaces these (linked to each repo at that commit) so customers can reproduce deployed PCRs without reverse-engineering

image
image

Adds a public GET /.well-known/caution/build-inputs returning the enclaveos/bootproof/steve/locksmith commits the platform builds new enclaves with, fed by a single shared resolver that replaces the duplicated commit literals across the API, builder, and CLI defaults. The dashboard footer surfaces these (linked to each repo at that commit) so customers can reproduce deployed PCRs without reverse-engineering ![image](/attachments/3ab0da7c-29a1-4c88-9983-f7765a7b553f) ![image](/attachments/6235c2a1-2583-41ab-9246-d3c5c48c6f73)
@ -312,0 +312,4 @@
// Uses the same resolver as the builder so this response can never drift from what is actually deployed.
asyncfn build_inputs()-> implIntoResponse{
letcommits=enclave_builder::build::resolve_tool_commits();
Json(serde_json::json!({

Could we refactor this to be HashMap<String, Tool> where struct Tool { pub commit: String, pub source_url: String }, so it looks like {"bootproof": {"commit": "some sha1", "repo": "some Git URL"}} etc?

Could we refactor this to be HashMap<String, Tool> where `struct Tool { pub commit: String, pub source_url: String }`, so it looks like `{"bootproof": {"commit": "some sha1", "repo": "some Git URL"}}` etc?

I noticed, scrolling down, that there's a ToolCommits thing. Maybe I should instead suggest we refactor that.

I noticed, scrolling down, that there's a ToolCommits thing. Maybe I should instead suggest we refactor that.
Author
Owner
Copy link

@ryansquared I refactored using ToolCommits, output is a bit different now

$ curl -s http://localhost:8000/.well-known/caution/build-inputs | jq .
{
 "enclaveos": {
 "commit": "9582e25239430070667fdd0a6b64d887f1c308df",
 "repo": "https://git.distrust.co/public/enclaveos.git"
 },
 "bootproof": {
 "commit": "78f531a2c245404a9d8879fb71cc397096ae0077",
 "repo": "https://git.distrust.co/public/bootproof.git"
 },
 "steve": {
 "commit": "ed38a190cd5d7a8f452c854e41d00ec748e172bf",
 "repo": "https://git.distrust.co/public/steve.git"
 },
 "locksmith": {
 "commit": "d16b74c6b3fd1d1006a5b00e4d9e21a4613947a9",
 "repo": "https://codeberg.org/caution/locksmith.git"
 }
}
@ryansquared I refactored using ToolCommits, output is a bit different now ```bash $ curl -s http://localhost:8000/.well-known/caution/build-inputs | jq . { "enclaveos": { "commit": "9582e25239430070667fdd0a6b64d887f1c308df", "repo": "https://git.distrust.co/public/enclaveos.git" }, "bootproof": { "commit": "78f531a2c245404a9d8879fb71cc397096ae0077", "repo": "https://git.distrust.co/public/bootproof.git" }, "steve": { "commit": "ed38a190cd5d7a8f452c854e41d00ec748e172bf", "repo": "https://git.distrust.co/public/steve.git" }, "locksmith": { "commit": "d16b74c6b3fd1d1006a5b00e4d9e21a4613947a9", "repo": "https://codeberg.org/caution/locksmith.git" } } ```
ryansquared manually merged commit 1d10fafaf3 into main 2026年06月27日 09:26:15 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
Compat/Breaking
Breaking change that won't be backward compatible
Component/Enclave-Builder
This issue affects Enclave Builder (git-push and CLI)
Component/Infrastructure
This issue affects generic Caution hosted infra components
Deploy/BYOC
Relates to Caution Bring-your-own-compute
Deploy/Full-managed
Relates to Caution fully managed cloud
Deploy/Self-hosted
Relates to Caution deployed on self-hosted infra
Interface/API
This issue affects the API
Interface/CLI
This issue affects the command line interface
Interface/Git
This issue affects the Git `push` interface
Interface/Web
This issue affects the web dashboard
Kind/Bug
Something is not working
Kind/Documentation
Documentation changes
Kind/Enhancement
Improve existing functionality
Kind/Feature
New functionality
Kind/Security
This is security issue
Kind/Testing
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
caution/platform!324
Reference in a new issue
caution/platform
No description provided.
Delete branch "feat/publish-build-inputs"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?