Skip to content

rvps: add DeleteReferenceValue RPC and rvps-tool delete command - #1600

Open
AnkushUjawane wants to merge 1 commit into
confidential-containers:mainfrom
AnkushUjawane:rvps-delete
Open

rvps: add DeleteReferenceValue RPC and rvps-tool delete command#1600
AnkushUjawane wants to merge 1 commit into
confidential-containers:mainfrom
AnkushUjawane:rvps-delete

Conversation

@AnkushUjawane

Copy link
Copy Markdown
Contributor

RVPS supported registering and querying reference values, and (as of a previous PR) listing them, but had no way to remove one. A stale or mistakenly registered reference value could only be overwritten via register, never actually deleted.

Adds a DeleteReferenceValue gRPC RPC, backed by the existing KeyValueStorage::delete() the storage backend already provides (same mechanism KBS's resource plugin already uses for delete), and wires it through to a new 'rvps-tool delete' subcommand. Returns whether something was actually deleted, distinguishing 'deleted' from 'nothing to delete' rather than treating both as success uniformly.

attestation-service also implements ReferenceValueProviderService for its built-in and remote-gRPC RVPS modes; updated RvpsApi and both implementors (builtin, grpc) so this doesn't break AS's build, having learned that lesson from the ListReferenceValues PR.

Manually verified end-to-end: registered a reference value, listed it, deleted it, confirmed it no longer appears in the list, and confirmed deleting a nonexistent key reports 'not found' rather than erroring.

RVPS supported registering and querying reference values, and (as of a previous PR) listing them, but had no way to remove one. A stale or mistakenly registered reference value could only be overwritten via register, never actually deleted.

Adds a DeleteReferenceValue gRPC RPC, backed by the existing KeyValueStorage::delete() the storage backend already provides (same mechanism KBS's resource plugin already uses for delete), and wires it through to a new 'rvps-tool delete' subcommand. Returns whether something was actually deleted, distinguishing 'deleted' from 'nothing to delete' rather than treating both as success uniformly.

attestation-service also implements ReferenceValueProviderService for its built-in and remote-gRPC RVPS modes; updated RvpsApi and both implementors (builtin, grpc) so this doesn't break AS's build, having learned that lesson from the ListReferenceValues PR.

Manually verified end-to-end: registered a reference value, listed it, deleted it, confirmed it no longer appears in the list, and confirmed deleting a nonexistent key reports 'not found' rather than erroring.

Signed-off-by: AnkushUjawane <multiverse1808@gmail.com>
@AnkushUjawane
AnkushUjawane requested a review from a team as a code owner August 28, 2026 10:25

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

LGTM

I do have some ideas for a more sophisticated flow for revoking RVs where we actually keep the RV storage but mark it as revoked (so we have a better record of what happened), but this seems fine for now.

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