Documentation
¶
Index ¶
Constants ¶
View Source
const ( Audience = "attestations.chainloop" // Previous audience, deprecated, we keep it to not to break compatibility DeprecatedAudience = "client.chainloop" )
This type of JWT is meant to be used by the attestations service
Variables ¶
View Source
var SigningMethod = jwt.SigningMethodHS256
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
NewBuilder creates a new robot account builder meant to be associated with a workflowRun It does not expire but its revocation status is checked on every request Currently we use a simple hmac encryption method meant to be continuously rotated TODO: additional/alternative encryption method, i.e DSE asymmetric, see CAS robot account for reference
type CustomClaims ¶
type CustomClaims struct {
OrgID string `json:"org_id"`
WorkflowID string `json:"workflow_id"`
jwt.RegisteredClaims
}
Click to show internal directories.
Click to hide internal directories.