Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions commands/s3/key/marker.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//go:build !codegen

// Package key defines the `/s3/key/...` commands for tenant access keys.
//
// A principal-bound access key holds exactly one delegation: the marker, issued
// by the tenant to the key with the tenant as subject. It grants nothing,
// appears in no proof chain, and is never invoked. It exists so the key has a
// delegation CID that the gateway holds and Hilt can revoke through
// `/ucan/revoke`.
package key

import (
"github.com/fil-forge/libforge/commands"
"github.com/fil-forge/ucantone/binding"
"github.com/fil-forge/ucantone/ucan/command"
)

// Marker is the `/s3/key/marker` command. Its arguments and result are both
// empty, because nothing ever invokes it.
var Marker = binding.Bind[*commands.Unit, *commands.Unit](command.MustParse("/s3/key/marker"))