storj/satellite/revocation/revocation.go
Isaac Hess 2d727bb14e satellite: Check macaroon revocation
When a request comes in on the satellite api and we validate the
macaroon, we now also check if any of the macaroon's tails have been
revoked.

Change-Id: I80ce4312602baf431cfa1b1285f79bed88bb4497
2020-06-22 13:50:07 -06:00

15 lines
432 B
Go

// Copyright (C) 2020 Storj Labs, Inc.
// See LICENSE for copying information.
package revocation
import "context"
// DB is the interface for a revocation DB
type DB interface {
// Revoke is the method to revoke the supplied tail
Revoke(ctx context.Context, tail []byte, apiKeyID []byte) error
// Check will check whether any of the supplied tails have been revoked
Check(ctx context.Context, tails [][]byte) (bool, error)
}