-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #138 Signed-off-by: Yogesh Deshpande <[email protected]>
- Loading branch information
1 parent
8e55820
commit 6b18d7b
Showing
75 changed files
with
1,154 additions
and
497 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
This package defines [`IEvidenceHandler`](ievidencehandler.go) and | ||
[`IEndorsementHandler`](iendorsementhandler.go) [pluggable](../plugin/README.md) | ||
This package defines [`IEvidenceHandler`](ievidencehandler.go), | ||
[`IEndorsementHandler`](iendorsementhandler.go) and [`IStoreHandler`](istorehandler.go) [pluggable](../plugin/README.md) | ||
interfaces and associated RPC channels. These are used to add new attestation | ||
scheme to Veraison services. Additionally, the package defines a [couple | ||
of wrappers](plugin.go) around `plugin.RegisterImplementation` for registering | ||
implementations of these two interfaces. | ||
implementations of these three interfaces. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2024 Contributors to the Veraison project. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package handler | ||
|
||
import ( | ||
"github.com/veraison/services/plugin" | ||
"github.com/veraison/services/proto" | ||
) | ||
|
||
// IStoreHandler defines the interface to functionality for working with | ||
// attestation scheme specific store interfaces. This includes extracting | ||
// Trust Anchor IDs from attestation token, and synthesizing, | ||
// Reference Value and TrustAnchor Keys from supplied endorsements | ||
type IStoreHandler interface { | ||
plugin.IPluggable | ||
|
||
// GetTrustAnchorIDs returns an array of trust anchor identifiers used | ||
// to retrieve the trust anchors associated with this token. The trust anchors may be necessary to validate the | ||
// entire token and/or extract its claims (if it is encrypted). | ||
GetTrustAnchorIDs(token *proto.AttestationToken) ([]string, error) | ||
|
||
// SynthKeysFromRefValue synthesizes lookup key(s) for the | ||
// provided reference value endorsement. | ||
SynthKeysFromRefValue(tenantID string, refVal *Endorsement) ([]string, error) | ||
|
||
// SynthKeysFromTrustAnchor synthesizes lookup key(s) for the provided | ||
// trust anchor. | ||
SynthKeysFromTrustAnchor(tenantID string, ta *Endorsement) ([]string, error) | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.