| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
✅ Deploy Preview for oasisprotocol-cli canceled.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Some nits. Otherwise I tested it and works as expected. The internal Testnet provider offer was successfully updated with the private flag and a list of allowed creators: https://explorer.oasis.io/testnet/sapphire/tx/5ccce8efb883667563892ee2eb445f7d80030b5d2c9ef0aec8e2255e0ec3967b
Sorry, something went wrong.
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.
Moves `ShowOfferSummary` from `cmd/rofl/provider` to `cmd/rofl/common` next to the offer filtering, inlines `PublicOffers` into `FilterOffers` and renames the file to `provider.go`. Offer summaries now also list the accounts allowed to rent a machine from the offer, read from the on-chain metadata via the new `OfferAllowedCreators` helper.
| Back | FazBrowse Home | New Git URL |
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_creators and allowed_artifacts lived in the ROFL node's local config.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.