rofl: Move offer access policy to on-chain offer metadata - #711
Draft
anzoman wants to merge 3 commits into
Draft
Conversation
Adds the `allowed_creators`, `allowed_artifacts` and `private` offer fields to the provider manifest. They are stored on-chain as the `net.oasis.scheduler.offer.*` metadata keys read by the ROFL Scheduler, so the access policy can now be changed with `rofl provider update-offers` instead of editing the node config and restarting the machine. Account names from the wallet and the address book are resolved to addresses, artifact kinds and hashes are validated up front and list entries are sorted and deduplicated so that reordering them in the manifest does not produce a spurious offer update.
Offers marked as private in their on-chain metadata are now omitted from `rofl provider list --show-offers`, `rofl provider show` and `rofl deploy --show-offers`. The new `--all` (`-a`) flag includes them again and private offers are marked as such when listed. Automatic offer selection in `rofl deploy` skips private offers, but an offer explicitly requested via `--offer` is still resolved so that whitelisted users can rent one.
Documents the `allowed_creators`, `allowed_artifacts` and `private` offer fields, the `--all` flag of the offer listings and extends the example provider manifest with an offer reserved for the provider's own team.
✅ Deploy Preview for oasisprotocol-cli canceled.
|
anzoman
force-pushed
the
anzoman/feature/rofl-offer-access-policy
branch
from
August 5, 2026 14:09
fb07310 to
a2c32dd
Compare
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.
Adds CLI support for the on-chain ROFL offer access policy introduced in oasisprotocol/oasis-sdk#2485. Implements oasisprotocol/oasis-sdk#2475 (CLI part).
Previously
allowed_creatorsandallowed_artifactslived in the ROFL node's localconfig.yml, so changing them meant editing the config and restarting the machine. They are now part of the offer metadata on-chain, and this PR exposes them as first-class fields of the provider manifest:Applying them is a plain
oasis rofl provider update-offers; the scheduler picks the new policy up on the next round.Docs counterpart for the node config side: oasisprotocol/docs#1788.