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
Publish enclave tool commits via /.well-known endpoint + dashboard footer #324
Manually merged
ryansquared
merged 4 commits from 2026年06月27日 09:26:15 +02:00
feat/publish-build-inputs into main
vkobel
commented 2026年06月25日 16:24:41 +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


vkobel
added 1 commit 2026年06月25日 16:24:42 +02:00
ryansquared
reviewed 2026年06月26日 12:22:45 +02:00
@ -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!({
ryansquared
commented 2026年06月26日 12:22:45 +02:00
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?
ryansquared
commented 2026年06月26日 12:23:31 +02:00
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.
vkobel
added 1 commit 2026年06月26日 13:15:33 +02:00
vkobel
commented 2026年06月26日 13:17:21 +02:00
@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"
}
}
```
vkobel
added 1 commit 2026年06月26日 15:09:50 +02:00
vkobel
added 1 commit 2026年06月26日 15:19:40 +02:00
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
No labels
Compat/Breaking
Component/Enclave-Builder
Component/Infrastructure
Deploy/BYOC
Deploy/Full-managed
Deploy/Self-hosted
Interface/API
Interface/CLI
Interface/Git
Interface/Web
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
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
Loading...
Add table
Add a link
Reference in a new issue
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?