Skip to content

cmd/rofl: Support verifying versioned ROFL enclave IDs - #710

Open
matevz wants to merge 1 commit into
masterfrom
matevz/feature/rofl-verify-against-versioned-enclave-id
Open

cmd/rofl: Support verifying versioned ROFL enclave IDs#710
matevz wants to merge 1 commit into
masterfrom
matevz/feature/rofl-verify-against-versioned-enclave-id

Conversation

@matevz

@matevz matevz commented Aug 5, 2026

Copy link
Copy Markdown
Member

I'm not sure if this behavior of oasis rofl build --verify is intentional, but the --verify flag only works, if the matched enclave ID does not have a version set.

Some projects may prefer to version all enclave IDs and not only the historical ones.

@netlify

netlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploy Preview for oasisprotocol-cli canceled.

Name Link
🔨 Latest commit 2c2a372
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-cli/deploys/6a732e0e2168200008309a1f

@kostko kostko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't it compare the version with the latest configured version under the top-level version field instead of just using the highest version?

@matevz
matevz force-pushed the matevz/feature/rofl-verify-against-versioned-enclave-id branch from 325d516 to da36be0 Compare August 5, 2026 12:11
Comment thread cmd/rofl/build/build.go Outdated
Comment on lines +267 to +268
// Any enclave identity present in the manifest (latest or versioned) is an
// acceptable match for the build.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems strange that one would verify against any version? Usually one would have the manifest be one for the version indicated in the version field and historic versions would be available from source control.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I enabled verification for both now - either the untagged one or the one defined in the ROFL version. The flow is not that clean anymore though. Maybe the previous behavior was better assuming that the untagged version is simply the one defined in the global version.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it makes sense that both mean the same? And maybe also versions higher than the version in the manifest should trigger some sort of warning?

This comes in handy, if you want to pin the latest enclave ID too in
your manifest and allow oasis rofl build --verify to work.
@matevz
matevz force-pushed the matevz/feature/rofl-verify-against-versioned-enclave-id branch from da36be0 to 2c2a372 Compare August 5, 2026 12:35
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