FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

cmd/rofl: Support verifying versioned ROFL enclave IDs by matevz · Pull Request #710 · oasisprotocol/cli · GitHub

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

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

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 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 Bot commented Aug 5, 2026
edited
Loading

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 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 force-pushed the matevz/feature/rofl-verify-against-versioned-enclave-id branch from da36be0 to 2c2a372 Compare August 5, 2026 12:35
matevz marked this pull request as draft August 27, 2026 10:27
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL