Documentation
¶
Overview ¶
Package models provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- type ArtifactIdentity
- type ArtifactIdentitySource
- type ArtifactPolicies
- type ArtifactSummaryView
- type ArtifactSummaryViewOverallStatus
- type AttestationStatus
- type AttestationStatusAttestation
- type AttestationStatusChain
- type AttestationStatusRekor
- type AttestationView
- type CertificateInfo
- type CertificateInfoList
- type CertificateRole
- type CertificateStatus
- type Checkpoint
- type ChiServerOptions
- type Error
- type GetApiV1ArtifactsImageParams
- type GetApiV1SystemHealthParams
- type GetApiV1TrustConfigParams
- type GetApiV1TrustMetadataInfoParams
- type GetApiV1TrustTargetParams
- type GetApiV1TrustTargetsCertificatesParams
- type GetApiV1TrustTargetsParams
- type ImageMetadataResponse
- type InclusionPromise
- type InclusionProof
- type InvalidParamFormatError
- type KindVersion
- type LogId
- type Metadata
- type MetadataInfo
- type MetadataInfoResponse
- type MiddlewareFunc
- type ParsedCertificate
- type PostApiV1ArtifactsVerifyJSONRequestBody
- type ProbeSample
- type ProbeSampleSource
- type ProbeSampleStatus
- type RecentErrorRate
- type RekorPublicKey
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustMetadataInfo(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealthz(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostApiV1SystemHealthProbe(w http.ResponseWriter, r *http.Request)
- type ServiceErrorRate
- type ServiceErrorRateName
- type ServiceHealth
- type ServiceHealthName
- type ServiceHealthStatus
- type SignatureStatus
- type SignatureStatusChain
- type SignatureStatusRekor
- type SignatureStatusSignature
- type SignatureView
- type SigningActivity
- type SigningErrorRates
- type SystemHealthMetrics
- type SystemHealthMetricsStatus
- type SystemHealthResponse
- type SystemHealthResponseCtlogStatus
- type SystemHealthResponseFulcioStatus
- type SystemHealthResponseRekorStatus
- type SystemHealthResponseSecuresignStatus
- type SystemHealthResponseTrillianStatus
- type SystemHealthResponseTsaStatus
- type SystemHealthResponseTufStatus
- type TargetContent
- type TargetInfo
- type TargetsList
- type TimeCoherenceSummary
- type TimeCoherenceSummaryStatus
- type TooManyValuesForParamError
- type TransparencyLogEntry
- type TrustConfig
- type TrustCoverageResponse
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request, artifact string)
- func (_ Unimplemented) GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request, params GetApiV1ArtifactsImageParams)
- func (_ Unimplemented) GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request, uuid string)
- func (_ Unimplemented) GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request, params GetApiV1SystemHealthParams)
- func (_ Unimplemented) GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request, params GetApiV1TrustConfigParams)
- func (_ Unimplemented) GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetApiV1TrustMetadataInfo(w http.ResponseWriter, r *http.Request, params GetApiV1TrustMetadataInfoParams)
- func (_ Unimplemented) GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetParams)
- func (_ Unimplemented) GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsParams)
- func (_ Unimplemented) GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request, ...)
- func (_ Unimplemented) GetHealthz(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PostApiV1SystemHealthProbe(w http.ResponseWriter, r *http.Request)
- type UnmarshalingParamError
- type VerifyArtifactRequest
- type VerifyArtifactResponse
Constants ¶
const ( BasicAuthScopes = "basicAuth.Scopes" KubernetesBearerScopes = "kubernetesBearer.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type ArtifactIdentity ¶
type ArtifactIdentity struct {
// Id Unique identifier for the signature view
Id int `json:"id"`
Issuer *string `json:"issuer,omitempty"`
Source ArtifactIdentitySource `json:"source"`
Type string `json:"type"`
Value string `json:"value"`
}
ArtifactIdentity defines model for ArtifactIdentity.
type ArtifactIdentitySource ¶
type ArtifactIdentitySource string
ArtifactIdentitySource defines model for ArtifactIdentitySource.
const ( Issuer ArtifactIdentitySource = "issuer" Other ArtifactIdentitySource = "other" San ArtifactIdentitySource = "san" )
Defines values for ArtifactIdentitySource.
type ArtifactPolicies ¶
type ArtifactPolicies struct {
// Artifact The artifact URI
Artifact string `json:"artifact"`
Attestations []struct {
// IssuedAt Issuance timestamp
IssuedAt *time.Time `json:"issuedAt,omitempty"`
// Issuer Issuer of the attestation
Issuer *string `json:"issuer,omitempty"`
// Subject Subject of the attestation
Subject *string `json:"subject,omitempty"`
// Type Attestation type
Type *string `json:"type,omitempty"`
} `json:"attestations"`
Policies []struct {
// LastChecked Last time the policy was checked
LastChecked *time.Time `json:"lastChecked,omitempty"`
// Name Policy name
Name *string `json:"name,omitempty"`
// Status Policy status
Status *string `json:"status,omitempty"`
} `json:"policies"`
}
ArtifactPolicies defines model for ArtifactPolicies.
type ArtifactSummaryView ¶
type ArtifactSummaryView struct {
// AttestationCount Total number of attestations
AttestationCount int `json:"attestationCount"`
Identities []ArtifactIdentity `json:"identities"`
OverallStatus ArtifactSummaryViewOverallStatus `json:"overallStatus"`
// RekorEntryCount Total number of Rekor entries
RekorEntryCount int `json:"rekorEntryCount"`
// SignatureCount Total number of signatures
SignatureCount int `json:"signatureCount"`
TimeCoherence *TimeCoherenceSummary `json:"timeCoherence,omitempty"`
}
ArtifactSummaryView defines model for ArtifactSummaryView.
type ArtifactSummaryViewOverallStatus ¶
type ArtifactSummaryViewOverallStatus string
ArtifactSummaryViewOverallStatus defines model for ArtifactSummaryView.OverallStatus.
const ( ArtifactSummaryViewOverallStatusFailed ArtifactSummaryViewOverallStatus = "failed" ArtifactSummaryViewOverallStatusUnsigned ArtifactSummaryViewOverallStatus = "unsigned" ArtifactSummaryViewOverallStatusVerified ArtifactSummaryViewOverallStatus = "verified" )
Defines values for ArtifactSummaryViewOverallStatus.
type AttestationStatus ¶
type AttestationStatus struct {
Attestation AttestationStatusAttestation `json:"attestation"`
Chain AttestationStatusChain `json:"chain"`
Rekor AttestationStatusRekor `json:"rekor"`
}
AttestationStatus defines model for attestationStatus.
type AttestationStatusAttestation ¶
type AttestationStatusAttestation string
AttestationStatusAttestation defines model for AttestationStatus.Attestation.
const ( AttestationStatusAttestationFailed AttestationStatusAttestation = "failed" AttestationStatusAttestationVerified AttestationStatusAttestation = "verified" )
Defines values for AttestationStatusAttestation.
type AttestationStatusChain ¶
type AttestationStatusChain string
AttestationStatusChain defines model for AttestationStatus.Chain.
const ( AttestationStatusChainFailed AttestationStatusChain = "failed" AttestationStatusChainVerified AttestationStatusChain = "verified" )
Defines values for AttestationStatusChain.
type AttestationStatusRekor ¶
type AttestationStatusRekor string
AttestationStatusRekor defines model for AttestationStatus.Rekor.
const ( AttestationStatusRekorFailed AttestationStatusRekor = "failed" AttestationStatusRekorVerified AttestationStatusRekor = "verified" )
Defines values for AttestationStatusRekor.
type AttestationView ¶
type AttestationView struct {
AttestationStatus AttestationStatus `json:"attestationStatus"`
CertificateChain *[]ParsedCertificate `json:"certificateChain,omitempty"`
Digest string `json:"digest"`
// Id Unique identifier for the signature view
Id int `json:"id"`
PayloadType *string `json:"payloadType,omitempty"`
PredicateType string `json:"predicateType"`
RawBundleJson string `json:"rawBundleJson"`
RawStatementJson string `json:"rawStatementJson"`
RekorEntry *TransparencyLogEntry `json:"rekorEntry,omitempty"`
SigningCertificate *ParsedCertificate `json:"signingCertificate,omitempty"`
// Timestamp ISO-8601 timestamp
Timestamp *time.Time `json:"timestamp,omitempty"`
Type string `json:"type"`
}
AttestationView defines model for AttestationView.
type CertificateInfo ¶
type CertificateInfo struct {
// CertExpiration Expiration date and time of the certificate (notAfter).
CertExpiration string `json:"certExpiration"`
// ChainIndex Position of the certificate inside its TUF target file (0 = first).
ChainIndex int `json:"chainIndex"`
// IsCA Basic Constraints CA flag.
IsCA bool `json:"isCA"`
// Issuer Certificate issuer
Issuer string `json:"issuer"`
// Pem Certificate in PEM-encoded format.
Pem string `json:"pem"`
Role CertificateRole `json:"role"`
// SerialNumber Certificate serial number, uppercase hexadecimal.
SerialNumber string `json:"serialNumber"`
// Status Status of the certificate, derived from trusted_root.json validFor window and X.509 validity. pending — not yet in service, the validFor start date is in the future. active — in service, cert is valid. expiring — in service, cert expires within 30 days. expired — the X.509 cert has actually expired. revoked — cert still valid but taken out of service.
Status CertificateStatus `json:"status"`
// Subject Certificate subject
Subject string `json:"subject"`
// Target The TUF target to which the certificate is associated.
Target string `json:"target"`
// Type Target type
Type string `json:"type"`
// ValidForEnd End of the service window from trusted_root.json validFor (ISO 8601). Absent if still active.
ValidForEnd *string `json:"validForEnd,omitempty"`
// ValidForStart Start of the service window from trusted_root.json validFor (ISO 8601).
ValidForStart *string `json:"validForStart,omitempty"`
}
CertificateInfo defines model for CertificateInfo.
type CertificateInfoList ¶
type CertificateInfoList struct {
Data []CertificateInfo `json:"data"`
}
CertificateInfoList defines model for CertificateInfoList.
type CertificateRole ¶
type CertificateRole string
CertificateRole defines model for CertificateRole.
const ( CertificateRoleIntermediate CertificateRole = "intermediate" CertificateRoleLeaf CertificateRole = "leaf" CertificateRoleRoot CertificateRole = "root" CertificateRoleUnknown CertificateRole = "unknown" )
Defines values for CertificateRole.
type CertificateStatus ¶
type CertificateStatus string
CertificateStatus Status of the certificate, derived from trusted_root.json validFor window and X.509 validity. pending — not yet in service, the validFor start date is in the future. active — in service, cert is valid. expiring — in service, cert expires within 30 days. expired — the X.509 cert has actually expired. revoked — cert still valid but taken out of service.
const ( Active CertificateStatus = "active" Expired CertificateStatus = "expired" Expiring CertificateStatus = "expiring" Pending CertificateStatus = "pending" Revoked CertificateStatus = "revoked" )
Defines values for CertificateStatus.
type Checkpoint ¶
type Checkpoint struct {
Envelope string `json:"envelope"`
}
Checkpoint defines model for Checkpoint.
type ChiServerOptions ¶
type ChiServerOptions struct {
BaseURL string
BaseRouter chi.Router
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type Error ¶
type Error struct {
// Error Error message
Error string `json:"error"`
}
Error defines model for Error.
type GetApiV1ArtifactsImageParams ¶
type GetApiV1ArtifactsImageParams struct {
Uri string `form:"uri" json:"uri"`
}
GetApiV1ArtifactsImageParams defines parameters for GetApiV1ArtifactsImage.
type GetApiV1SystemHealthParams ¶
type GetApiV1SystemHealthParams struct {
// History Include the retained probe samples (`probeHistory`) for each service.
History *bool `form:"history,omitempty" json:"history,omitempty"`
}
GetApiV1SystemHealthParams defines parameters for GetApiV1SystemHealth.
type GetApiV1TrustConfigParams ¶
type GetApiV1TrustConfigParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
}
GetApiV1TrustConfigParams defines parameters for GetApiV1TrustConfig.
type GetApiV1TrustMetadataInfoParams ¶
type GetApiV1TrustMetadataInfoParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
}
GetApiV1TrustMetadataInfoParams defines parameters for GetApiV1TrustMetadataInfo.
type GetApiV1TrustTargetParams ¶
type GetApiV1TrustTargetParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
Target string `form:"target" json:"target"`
}
GetApiV1TrustTargetParams defines parameters for GetApiV1TrustTarget.
type GetApiV1TrustTargetsCertificatesParams ¶
type GetApiV1TrustTargetsCertificatesParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
}
GetApiV1TrustTargetsCertificatesParams defines parameters for GetApiV1TrustTargetsCertificates.
type GetApiV1TrustTargetsParams ¶
type GetApiV1TrustTargetsParams struct {
TufRepositoryUrl *string `form:"tufRepositoryUrl,omitempty" json:"tufRepositoryUrl,omitempty"`
}
GetApiV1TrustTargetsParams defines parameters for GetApiV1TrustTargets.
type ImageMetadataResponse ¶
type ImageMetadataResponse struct {
// Digest The container image's digest (e.g., SHA256 hash)
Digest string `json:"digest"`
// Image The container image URI
Image *string `json:"image,omitempty"`
// Metadata Metadata for a container image
Metadata Metadata `json:"metadata"`
// Registry The registry URI of the container image
Registry string `json:"registry"`
}
ImageMetadataResponse defines model for ImageMetadataResponse.
type InclusionPromise ¶
type InclusionPromise struct {
SignedEntryTimestamp []byte `json:"signedEntryTimestamp"`
}
InclusionPromise defines model for InclusionPromise.
type InclusionProof ¶
type InclusionProof struct {
Checkpoint *Checkpoint `json:"checkpoint,omitempty"`
// Hashes Array of Merkle tree hashes for the inclusion proof
Hashes [][]byte `json:"hashes"`
// LogIndex Log index of the entry in the Merkle tree
LogIndex int64 `json:"logIndex"`
// RootHash Root hash of the Merkle tree at the time of inclusion
RootHash []byte `json:"rootHash"`
// TreeSize Size of the Merkle tree at the time of inclusion
TreeSize int64 `json:"treeSize"`
}
InclusionProof Merkle tree inclusion proof for a Rekor entry
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type KindVersion ¶
KindVersion defines model for KindVersion.
type Metadata ¶
type Metadata struct {
// Created Creation timestamp of the container image (if available)
Created *time.Time `json:"created"`
// Labels Key-value labels or annotations associated with the container image
Labels *map[string]string `json:"labels"`
// MediaType Media type of the container image (e.g., OCI manifest type)
MediaType string `json:"mediaType"`
// Size Size of the container image in bytes
Size int64 `json:"size"`
}
Metadata Metadata for a container image
type MetadataInfo ¶
type MetadataInfo struct {
// Expires Expiry date of the TUF metadata
Expires string `json:"expires"`
// Status Status of the TUF metadata (valid, expiring, expired)
Status string `json:"status"`
// Version Version of the TUF metadata
Version string `json:"version"`
}
MetadataInfo defines model for MetadataInfo.
type MetadataInfoResponse ¶
type MetadataInfoResponse struct {
// Data Metadata info grouped by TUF role (root, targets, snapshot, timestamp)
Data map[string][]MetadataInfo `json:"data"`
// RepoUrl URL of the TUF repository
RepoUrl *string `json:"repo-url,omitempty"`
}
MetadataInfoResponse defines model for MetadataInfoResponse.
type ParsedCertificate ¶
type ParsedCertificate struct {
IsCa bool `json:"isCa"`
Issuer string `json:"issuer"`
// NotAfter ISO date string
NotAfter time.Time `json:"notAfter"`
// NotBefore ISO date string
NotBefore time.Time `json:"notBefore"`
Pem string `json:"pem"`
Role CertificateRole `json:"role"`
Sans []string `json:"sans"`
SerialNumber *string `json:"serialNumber"`
Subject string `json:"subject"`
}
ParsedCertificate defines model for ParsedCertificate.
type PostApiV1ArtifactsVerifyJSONRequestBody ¶
type PostApiV1ArtifactsVerifyJSONRequestBody = VerifyArtifactRequest
PostApiV1ArtifactsVerifyJSONRequestBody defines body for PostApiV1ArtifactsVerify for application/json ContentType.
type ProbeSample ¶
type ProbeSample struct {
// Error Short reason when the check failed or its outcome is unknown (e.g. "request timed out", "connection refused", "unexpected status code 503"), otherwise null. It never contains the probed URL; full transport errors are written to the console logs.
Error *string `json:"error"`
// HttpStatusCode HTTP status code returned by the probe, or null when not an HTTP probe or no response was received.
HttpStatusCode *int `json:"httpStatusCode"`
// LatencyMs Probe latency in milliseconds, or null for condition-derived samples or when no response was received.
LatencyMs *float32 `json:"latencyMs"`
// Source Origin of the sample - an active HTTP probe or a Securesign CR condition observation.
Source ProbeSampleSource `json:"source"`
// Status Outcome of this observation. unknown means it could not be determined (e.g.
// the Securesign CR was unreadable or the condition was not reported) and is not
// counted as a failure.
Status ProbeSampleStatus `json:"status"`
// Success Shorthand for status == healthy.
Success bool `json:"success"`
// Timestamp When the probe was taken.
Timestamp time.Time `json:"timestamp"`
}
ProbeSample A single probe observation.
type ProbeSampleSource ¶
type ProbeSampleSource string
ProbeSampleSource Origin of the sample - an active HTTP probe or a Securesign CR condition observation.
const ( Condition ProbeSampleSource = "condition" Http ProbeSampleSource = "http" )
Defines values for ProbeSampleSource.
type ProbeSampleStatus ¶
type ProbeSampleStatus string
ProbeSampleStatus Outcome of this observation. unknown means it could not be determined (e.g. the Securesign CR was unreadable or the condition was not reported) and is not counted as a failure.
const ( ProbeSampleStatusHealthy ProbeSampleStatus = "healthy" ProbeSampleStatusUnhealthy ProbeSampleStatus = "unhealthy" ProbeSampleStatusUnknown ProbeSampleStatus = "unknown" )
Defines values for ProbeSampleStatus.
type RecentErrorRate ¶
type RecentErrorRate struct {
// ErrorRate errors / requests (0..1). Null when there were no recent requests.
ErrorRate *float32 `json:"errorRate"`
Errors int64 `json:"errors"`
Requests int64 `json:"requests"`
}
RecentErrorRate defines model for RecentErrorRate.
type RekorPublicKey ¶
type RekorPublicKey struct {
// PublicKey Rekor public key in PEM format
PublicKey string `json:"publicKey"`
}
RekorPublicKey defines model for RekorPublicKey.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServerInterface ¶
type ServerInterface interface {
// Retrieve metadata and digest from an OCI-compliant registry
// (GET /api/v1/artifacts/image)
GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request, params GetApiV1ArtifactsImageParams)
// Verify an artifact
// (POST /api/v1/artifacts/verify)
PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
// Get policies and attestations for an artifact
// (GET /api/v1/artifacts/{artifact}/policies)
GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request, artifact string)
// Retrieve Rekor log entry by UUID
// (GET /api/v1/rekor/entries/{uuid})
GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request, uuid string)
// Get Rekor public key
// (GET /api/v1/rekor/public-key)
GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
// Get System Health Status
// (GET /api/v1/system/health)
GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request, params GetApiV1SystemHealthParams)
// Request a System Health probe round
// (POST /api/v1/system/health/probe)
PostApiV1SystemHealthProbe(w http.ResponseWriter, r *http.Request)
// Get Fulcio and Rekor metadata from TUF targets
// (GET /api/v1/trust/config)
GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request, params GetApiV1TrustConfigParams)
// Get Trust Coverage
// (GET /api/v1/trust/coverage)
GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
// Get TUF Metadata Info
// (GET /api/v1/trust/metadata-info)
GetApiV1TrustMetadataInfo(w http.ResponseWriter, r *http.Request, params GetApiV1TrustMetadataInfoParams)
// Get TUF Target File Content
// (GET /api/v1/trust/target)
GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetParams)
// Get TUF Targets List
// (GET /api/v1/trust/targets)
GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsParams)
// Get Certificates Information
// (GET /api/v1/trust/targets/certificates)
GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsCertificatesParams)
// (GET /healthz)
GetHealthz(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) GetApiV1ArtifactsArtifactPolicies ¶
func (siw *ServerInterfaceWrapper) GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request)
GetApiV1ArtifactsArtifactPolicies operation middleware
func (*ServerInterfaceWrapper) GetApiV1ArtifactsImage ¶
func (siw *ServerInterfaceWrapper) GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request)
GetApiV1ArtifactsImage operation middleware
func (*ServerInterfaceWrapper) GetApiV1RekorEntriesUuid ¶
func (siw *ServerInterfaceWrapper) GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request)
GetApiV1RekorEntriesUuid operation middleware
func (*ServerInterfaceWrapper) GetApiV1RekorPublicKey ¶
func (siw *ServerInterfaceWrapper) GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
GetApiV1RekorPublicKey operation middleware
func (*ServerInterfaceWrapper) GetApiV1SystemHealth ¶
func (siw *ServerInterfaceWrapper) GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request)
GetApiV1SystemHealth operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustConfig ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request)
GetApiV1TrustConfig operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustCoverage ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
GetApiV1TrustCoverage operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustMetadataInfo ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustMetadataInfo(w http.ResponseWriter, r *http.Request)
GetApiV1TrustMetadataInfo operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustTarget ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request)
GetApiV1TrustTarget operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustTargets ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request)
GetApiV1TrustTargets operation middleware
func (*ServerInterfaceWrapper) GetApiV1TrustTargetsCertificates ¶
func (siw *ServerInterfaceWrapper) GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request)
GetApiV1TrustTargetsCertificates operation middleware
func (*ServerInterfaceWrapper) GetHealthz ¶
func (siw *ServerInterfaceWrapper) GetHealthz(w http.ResponseWriter, r *http.Request)
GetHealthz operation middleware
func (*ServerInterfaceWrapper) PostApiV1ArtifactsVerify ¶
func (siw *ServerInterfaceWrapper) PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
PostApiV1ArtifactsVerify operation middleware
func (*ServerInterfaceWrapper) PostApiV1SystemHealthProbe ¶
func (siw *ServerInterfaceWrapper) PostApiV1SystemHealthProbe(w http.ResponseWriter, r *http.Request)
PostApiV1SystemHealthProbe operation middleware
type ServiceErrorRate ¶
type ServiceErrorRate struct {
// ErrorRate errors / requests (0..1). Null when not monitored or there were no requests.
ErrorRate *float32 `json:"errorRate"`
Errors *int64 `json:"errors"`
// Monitored Whether Prometheus has metrics for this service. When false, the counts are null.
Monitored bool `json:"monitored"`
Name ServiceErrorRateName `json:"name"`
// Recent The same counts over the last `recentWindowSeconds` only. Lets clients tell whether
// failures are still happening (failing now), have stopped (recovered: errors in the
// window but recent requests succeed), or whether there was no recent activity.
// Null when not monitored.
Recent *RecentErrorRate `json:"recent"`
Requests *int64 `json:"requests"`
}
ServiceErrorRate defines model for ServiceErrorRate.
type ServiceErrorRateName ¶
type ServiceErrorRateName string
ServiceErrorRateName defines model for ServiceErrorRate.Name.
const ( ServiceErrorRateNameFulcio ServiceErrorRateName = "fulcio" ServiceErrorRateNameRekor ServiceErrorRateName = "rekor" ServiceErrorRateNameTsa ServiceErrorRateName = "tsa" )
Defines values for ServiceErrorRateName.
type ServiceHealth ¶
type ServiceHealth struct {
// ConsecutiveFailures Number of consecutive failing probes ending at the most recent sample. Unknown observations reset the count.
ConsecutiveFailures int `json:"consecutiveFailures"`
// EndpointUrl Public endpoint published in the Securesign CR status, or null when not probed or not known. A PROBE_URL_* override (e.g. an in-cluster Service URL) is only used as the probe target and is never returned.
EndpointUrl *string `json:"endpointUrl"`
// ErrorRate Fraction of failed probes (0..1) over the retained samples with a known outcome. Null when there is no such sample yet.
ErrorRate *float32 `json:"errorRate"`
// LastProbe Timestamp of the most recent probe, or null if none yet.
LastProbe *time.Time `json:"lastProbe"`
// LastStateChange Timestamp at which the status last changed, or null if unknown.
LastStateChange *time.Time `json:"lastStateChange"`
// LastSuccessfulProbe Timestamp of the most recent successful probe, or null if none yet.
LastSuccessfulProbe *time.Time `json:"lastSuccessfulProbe"`
// LatencyP50Ms Median (p50) probe latency, in milliseconds, over the retained window. Null when not HTTP-probed or no samples exist.
LatencyP50Ms *float32 `json:"latencyP50Ms"`
// LatencyP95Ms 95th percentile probe latency, in milliseconds, over the retained window. Null when not HTTP-probed or no samples exist.
LatencyP95Ms *float32 `json:"latencyP95Ms"`
// MeanLatencyMs Mean probe latency, in milliseconds, over the retained window. Null when not HTTP-probed or no samples exist.
MeanLatencyMs *float32 `json:"meanLatencyMs"`
// Name Component service identifier.
Name ServiceHealthName `json:"name"`
// OperatorConditionLastTransitionTime Timestamp of the last Securesign component condition transition, or null when unavailable.
OperatorConditionLastTransitionTime *time.Time `json:"operatorConditionLastTransitionTime"`
// OperatorConditionReason Securesign component condition reason code, or null when unavailable.
OperatorConditionReason *string `json:"operatorConditionReason"`
// ProbeCount Number of probe samples retained in the window.
ProbeCount int `json:"probeCount"`
// ProbeHistory Retained probe samples, oldest first. Only present when the request sets `history=true`.
ProbeHistory *[]ProbeSample `json:"probeHistory,omitempty"`
// Probed Whether this service is actively HTTP-probed. When false, status and
// history are derived from Securesign CR conditions and latency metrics
// are not available. A probed service falls back to condition samples
// while its endpoint URL is not published (or the CR is unreadable); each
// sample's `source` tells which applies.
Probed bool `json:"probed"`
// Status Current health status. An explicit False condition on the Securesign CR
// (the operator reports the component unavailable) makes the service
// unhealthy immediately, even if its endpoint still responds. HTTP probe
// failures only mark the service unhealthy after a configurable number of
// consecutive failures (PROBE_FAILURE_THRESHOLD, default 2). unknown when
// the outcome cannot be determined, e.g. the Securesign CR is unreadable or
// the condition is not reported.
Status ServiceHealthStatus `json:"status"`
// UptimePercentage Percentage of successful probes (0..100) over the retained samples with a known outcome. Null when there is no such sample yet.
UptimePercentage *float32 `json:"uptimePercentage"`
}
ServiceHealth Detailed health and probe metrics for a single component service.
type ServiceHealthName ¶
type ServiceHealthName string
ServiceHealthName Component service identifier.
const ( ServiceHealthNameCtlog ServiceHealthName = "ctlog" ServiceHealthNameFulcio ServiceHealthName = "fulcio" ServiceHealthNameRekor ServiceHealthName = "rekor" ServiceHealthNameTrillian ServiceHealthName = "trillian" ServiceHealthNameTsa ServiceHealthName = "tsa" ServiceHealthNameTuf ServiceHealthName = "tuf" )
Defines values for ServiceHealthName.
type ServiceHealthStatus ¶
type ServiceHealthStatus string
ServiceHealthStatus Current health status. An explicit False condition on the Securesign CR (the operator reports the component unavailable) makes the service unhealthy immediately, even if its endpoint still responds. HTTP probe failures only mark the service unhealthy after a configurable number of consecutive failures (PROBE_FAILURE_THRESHOLD, default 2). unknown when the outcome cannot be determined, e.g. the Securesign CR is unreadable or the condition is not reported.
const ( ServiceHealthStatusHealthy ServiceHealthStatus = "healthy" ServiceHealthStatusUnhealthy ServiceHealthStatus = "unhealthy" ServiceHealthStatusUnknown ServiceHealthStatus = "unknown" )
Defines values for ServiceHealthStatus.
type SignatureStatus ¶
type SignatureStatus struct {
Chain SignatureStatusChain `json:"chain"`
Rekor SignatureStatusRekor `json:"rekor"`
Signature SignatureStatusSignature `json:"signature"`
}
SignatureStatus defines model for signatureStatus.
type SignatureStatusChain ¶
type SignatureStatusChain string
SignatureStatusChain defines model for SignatureStatus.Chain.
const ( SignatureStatusChainFailed SignatureStatusChain = "failed" SignatureStatusChainVerified SignatureStatusChain = "verified" )
Defines values for SignatureStatusChain.
type SignatureStatusRekor ¶
type SignatureStatusRekor string
SignatureStatusRekor defines model for SignatureStatus.Rekor.
const ( SignatureStatusRekorFailed SignatureStatusRekor = "failed" SignatureStatusRekorVerified SignatureStatusRekor = "verified" )
Defines values for SignatureStatusRekor.
type SignatureStatusSignature ¶
type SignatureStatusSignature string
SignatureStatusSignature defines model for SignatureStatus.Signature.
const ( Failed SignatureStatusSignature = "failed" Verified SignatureStatusSignature = "verified" )
Defines values for SignatureStatusSignature.
type SignatureView ¶
type SignatureView struct {
CertificateChain []ParsedCertificate `json:"certificateChain"`
Digest string `json:"digest"`
// Id Unique identifier for the signature view
Id int `json:"id"`
RawBundleJson string `json:"rawBundleJson"`
RekorEntry *TransparencyLogEntry `json:"rekorEntry,omitempty"`
SignatureStatus SignatureStatus `json:"signatureStatus"`
SigningCertificate ParsedCertificate `json:"signingCertificate"`
// Timestamp ISO-8601 timestamp
Timestamp *time.Time `json:"timestamp,omitempty"`
}
SignatureView defines model for SignatureView.
type SigningActivity ¶
type SigningActivity struct {
// CertificatesIssued Certificates issued by Fulcio.
CertificatesIssued *int64 `json:"certificatesIssued"`
// LogEntriesAdded Entries added to the Rekor log.
LogEntriesAdded *int64 `json:"logEntriesAdded"`
// TimestampsIssued Successful TSA timestamp requests.
TimestampsIssued *int64 `json:"timestampsIssued"`
}
SigningActivity Successful signing operations over the window. Each count is null when the service is not monitored.
type SigningErrorRates ¶
type SigningErrorRates struct {
ByService []ServiceErrorRate `json:"byService"`
ClientErrors int64 `json:"clientErrors"`
// ErrorRate totalErrors / totalRequests (0..1). Null when there were no requests.
ErrorRate *float32 `json:"errorRate"`
// RecentWindowSeconds Time window, in seconds, covered by each service's `recent` counts.
RecentWindowSeconds int `json:"recentWindowSeconds"`
ServerErrors int64 `json:"serverErrors"`
Timeouts int64 `json:"timeouts"`
// TotalErrors Sum of serverErrors, clientErrors and timeouts.
TotalErrors int64 `json:"totalErrors"`
// TotalRequests Signing requests handled by the monitored services.
TotalRequests int64 `json:"totalRequests"`
}
SigningErrorRates Signing request outcomes over the window. Server errors are HTTP 5xx (except 504) and gRPC Internal, Unavailable, Unknown, DataLoss, Aborted, Unimplemented; client errors are HTTP 4xx (except 408) and gRPC InvalidArgument, NotFound, AlreadyExists, PermissionDenied, Unauthenticated, FailedPrecondition, OutOfRange, ResourceExhausted, Canceled; timeouts are HTTP 504/408 and gRPC DeadlineExceeded.
type SystemHealthMetrics ¶
type SystemHealthMetrics struct {
// ErrorRates Null unless status is available.
ErrorRates *SigningErrorRates `json:"errorRates"`
// Reason Short reason when status is unavailable (never contains URLs), otherwise null.
Reason *string `json:"reason"`
// SigningActivity Null unless status is available.
SigningActivity *SigningActivity `json:"signingActivity"`
// Status disabled: no Prometheus endpoint is configured (PROMETHEUS_URL unset).
// available: errorRates and signingActivity hold data from the last successful query round.
// unavailable: Prometheus could not be queried, or no RHTAS component metrics were found;
// see reason.
Status SystemHealthMetricsStatus `json:"status"`
// UpdatedAt When the data was last successfully queried. Null when no query has succeeded.
UpdatedAt *time.Time `json:"updatedAt"`
// WindowSeconds Time window, in seconds, covered by the counts.
WindowSeconds int `json:"windowSeconds"`
}
SystemHealthMetrics Signing error rates and activity computed from Prometheus metrics of the RHTAS components (requires component monitoring and a configured Prometheus endpoint). Counts cover the last `windowSeconds` and only signing operations (Fulcio CreateSigningCertificate, Rekor POST /api/v1/log/entries, TSA POST /api/v1/timestamp), so probe and health-check traffic is excluded.
type SystemHealthMetricsStatus ¶
type SystemHealthMetricsStatus string
SystemHealthMetricsStatus disabled: no Prometheus endpoint is configured (PROMETHEUS_URL unset). available: errorRates and signingActivity hold data from the last successful query round. unavailable: Prometheus could not be queried, or no RHTAS component metrics were found; see reason.
const ( Available SystemHealthMetricsStatus = "available" Disabled SystemHealthMetricsStatus = "disabled" )
Defines values for SystemHealthMetricsStatus.
type SystemHealthResponse ¶
type SystemHealthResponse struct {
// CtlogStatus CT log status. Deprecated, kept for compatibility; use the `ctlog` entry in `services`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
CtlogStatus SystemHealthResponseCtlogStatus `json:"ctlogStatus"`
// FulcioStatus Fulcio status. Deprecated, kept for compatibility; use the `fulcio` entry in `services`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
FulcioStatus SystemHealthResponseFulcioStatus `json:"fulcioStatus"`
// Metrics Signing error rates and activity computed from Prometheus metrics of the RHTAS
// components (requires component monitoring and a configured Prometheus endpoint).
// Counts cover the last `windowSeconds` and only signing operations (Fulcio
// CreateSigningCertificate, Rekor POST /api/v1/log/entries, TSA POST /api/v1/timestamp),
// so probe and health-check traffic is excluded.
Metrics SystemHealthMetrics `json:"metrics"`
// ProbeIntervalSeconds Interval, in seconds, between consecutive probes.
ProbeIntervalSeconds int `json:"probeIntervalSeconds"`
// RekorStatus Rekor status. Deprecated, kept for compatibility; use the `rekor` entry in `services`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RekorStatus SystemHealthResponseRekorStatus `json:"rekorStatus"`
// RunbookUrl Configured runbook URL, or null when unavailable.
RunbookUrl *string `json:"runbookUrl"`
// SecuresignStatus Overall deployment status taken from the Securesign CR `Ready` condition,
// which the operator derives from the component conditions: True -> healthy,
// False -> unhealthy, anything else (including an unreadable CR or no
// observation yet) -> unknown. It is not computed from `services`, so it can
// differ from the HTTP probe results.
SecuresignStatus SystemHealthResponseSecuresignStatus `json:"securesignStatus"`
// SecuresignStatusReason Why securesignStatus is not healthy: a short description of why the
// Securesign CR could not be read (e.g. permission denied, not found, timeout),
// a missing Ready condition, or the Ready condition's status and reason. Raw
// Kubernetes errors are not exposed; they are written to the console logs.
// Null when healthy.
SecuresignStatusReason *string `json:"securesignStatusReason"`
// Services Per-service health detail.
Services []ServiceHealth `json:"services"`
// TrillianStatus Trillian status. Deprecated, kept for compatibility; use the `trillian` entry in `services`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TrillianStatus SystemHealthResponseTrillianStatus `json:"trillianStatus"`
// TsaStatus TSA status. Deprecated, kept for compatibility; use the `tsa` entry in `services`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TsaStatus SystemHealthResponseTsaStatus `json:"tsaStatus"`
// TufStatus TUF status. Deprecated, kept for compatibility; use the `tuf` entry in `services`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TufStatus SystemHealthResponseTufStatus `json:"tufStatus"`
// UpdatedAt When the most recent probe round completed, i.e. how fresh the data is (not
// the time of this request). Null until the first round completes.
UpdatedAt *time.Time `json:"updatedAt"`
// WindowSeconds Approximate time window, in seconds, covered by the retained probe history.
WindowSeconds int `json:"windowSeconds"`
}
SystemHealthResponse Health of the RHTAS deployment and its component services. `securesignStatus` is the operator's own verdict for the whole deployment. Each entry in `services` carries detailed, per-service probe metrics derived from an in-process prober. Services with a reachable endpoint (rekor, fulcio, tsa, tuf) are actively HTTP-probed; the remaining components (ctlog, trillian) have no externally reachable endpoint and their availability is observed from the Securesign Custom Resource status conditions instead.
type SystemHealthResponseCtlogStatus ¶
type SystemHealthResponseCtlogStatus string
SystemHealthResponseCtlogStatus CT log status. Deprecated, kept for compatibility; use the `ctlog` entry in `services`.
const ( SystemHealthResponseCtlogStatusHealthy SystemHealthResponseCtlogStatus = "healthy" SystemHealthResponseCtlogStatusUnhealthy SystemHealthResponseCtlogStatus = "unhealthy" SystemHealthResponseCtlogStatusUnknown SystemHealthResponseCtlogStatus = "unknown" )
Defines values for SystemHealthResponseCtlogStatus.
type SystemHealthResponseFulcioStatus ¶
type SystemHealthResponseFulcioStatus string
SystemHealthResponseFulcioStatus Fulcio status. Deprecated, kept for compatibility; use the `fulcio` entry in `services`.
const ( SystemHealthResponseFulcioStatusHealthy SystemHealthResponseFulcioStatus = "healthy" SystemHealthResponseFulcioStatusUnhealthy SystemHealthResponseFulcioStatus = "unhealthy" SystemHealthResponseFulcioStatusUnknown SystemHealthResponseFulcioStatus = "unknown" )
Defines values for SystemHealthResponseFulcioStatus.
type SystemHealthResponseRekorStatus ¶
type SystemHealthResponseRekorStatus string
SystemHealthResponseRekorStatus Rekor status. Deprecated, kept for compatibility; use the `rekor` entry in `services`.
const ( SystemHealthResponseRekorStatusHealthy SystemHealthResponseRekorStatus = "healthy" SystemHealthResponseRekorStatusUnhealthy SystemHealthResponseRekorStatus = "unhealthy" SystemHealthResponseRekorStatusUnknown SystemHealthResponseRekorStatus = "unknown" )
Defines values for SystemHealthResponseRekorStatus.
type SystemHealthResponseSecuresignStatus ¶
type SystemHealthResponseSecuresignStatus string
SystemHealthResponseSecuresignStatus Overall deployment status taken from the Securesign CR `Ready` condition, which the operator derives from the component conditions: True -> healthy, False -> unhealthy, anything else (including an unreadable CR or no observation yet) -> unknown. It is not computed from `services`, so it can differ from the HTTP probe results.
const ( SystemHealthResponseSecuresignStatusHealthy SystemHealthResponseSecuresignStatus = "healthy" SystemHealthResponseSecuresignStatusUnhealthy SystemHealthResponseSecuresignStatus = "unhealthy" SystemHealthResponseSecuresignStatusUnknown SystemHealthResponseSecuresignStatus = "unknown" )
Defines values for SystemHealthResponseSecuresignStatus.
type SystemHealthResponseTrillianStatus ¶
type SystemHealthResponseTrillianStatus string
SystemHealthResponseTrillianStatus Trillian status. Deprecated, kept for compatibility; use the `trillian` entry in `services`.
const ( SystemHealthResponseTrillianStatusHealthy SystemHealthResponseTrillianStatus = "healthy" SystemHealthResponseTrillianStatusUnhealthy SystemHealthResponseTrillianStatus = "unhealthy" SystemHealthResponseTrillianStatusUnknown SystemHealthResponseTrillianStatus = "unknown" )
Defines values for SystemHealthResponseTrillianStatus.
type SystemHealthResponseTsaStatus ¶
type SystemHealthResponseTsaStatus string
SystemHealthResponseTsaStatus TSA status. Deprecated, kept for compatibility; use the `tsa` entry in `services`.
const ( SystemHealthResponseTsaStatusHealthy SystemHealthResponseTsaStatus = "healthy" SystemHealthResponseTsaStatusUnhealthy SystemHealthResponseTsaStatus = "unhealthy" SystemHealthResponseTsaStatusUnknown SystemHealthResponseTsaStatus = "unknown" )
Defines values for SystemHealthResponseTsaStatus.
type SystemHealthResponseTufStatus ¶
type SystemHealthResponseTufStatus string
SystemHealthResponseTufStatus TUF status. Deprecated, kept for compatibility; use the `tuf` entry in `services`.
const ( SystemHealthResponseTufStatusHealthy SystemHealthResponseTufStatus = "healthy" SystemHealthResponseTufStatusUnhealthy SystemHealthResponseTufStatus = "unhealthy" SystemHealthResponseTufStatusUnknown SystemHealthResponseTufStatus = "unknown" )
Defines values for SystemHealthResponseTufStatus.
type TargetContent ¶
type TargetContent struct {
Content string `json:"content"`
}
TargetContent defines model for TargetContent.
type TargetInfo ¶
type TargetInfo struct {
// Content Content of the target.
Content string `json:"content"`
// Name Target name
Name string `json:"name"`
// Status Status of the target.
Status string `json:"status"`
// Type Target type
Type string `json:"type"`
}
TargetInfo defines model for TargetInfo.
type TargetsList ¶
type TargetsList struct {
Data []TargetInfo `json:"data"`
}
TargetsList defines model for TargetsList.
type TimeCoherenceSummary ¶
type TimeCoherenceSummary struct {
MaxIntegratedTime *time.Time `json:"maxIntegratedTime"`
MinIntegratedTime *time.Time `json:"minIntegratedTime"`
Status TimeCoherenceSummaryStatus `json:"status"`
}
TimeCoherenceSummary defines model for TimeCoherenceSummary.
type TimeCoherenceSummaryStatus ¶
type TimeCoherenceSummaryStatus string
TimeCoherenceSummaryStatus defines model for TimeCoherenceSummary.Status.
const ( TimeCoherenceSummaryStatusError TimeCoherenceSummaryStatus = "error" TimeCoherenceSummaryStatusOk TimeCoherenceSummaryStatus = "ok" TimeCoherenceSummaryStatusUnknown TimeCoherenceSummaryStatus = "unknown" TimeCoherenceSummaryStatusWarning TimeCoherenceSummaryStatus = "warning" )
Defines values for TimeCoherenceSummaryStatus.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type TransparencyLogEntry ¶
type TransparencyLogEntry struct {
CanonicalizedBody []byte `json:"canonicalizedBody"`
InclusionPromise *InclusionPromise `json:"inclusionPromise,omitempty"`
// InclusionProof Merkle tree inclusion proof for a Rekor entry
InclusionProof *InclusionProof `json:"inclusionProof"`
IntegratedTime int64 `json:"integratedTime"`
KindVersion *KindVersion `json:"kindVersion,omitempty"`
LogId *LogId `json:"logId,omitempty"`
LogIndex int64 `json:"logIndex"`
}
TransparencyLogEntry defines model for TransparencyLogEntry.
type TrustConfig ¶
type TrustConfig struct {
FulcioCertAuthorities []struct {
// Pem Certificate in PEM format
Pem string `json:"pem"`
// Subject Certificate authority subject
Subject string `json:"subject"`
} `json:"fulcioCertAuthorities"`
}
TrustConfig defines model for TrustConfig.
type TrustCoverageResponse ¶
type TrustCoverageResponse struct {
// AttestedCount Number of attested artifacts
AttestedCount int `json:"attestedCount"`
// AttestedPercentage Percentage of artifacts that are attested
AttestedPercentage float32 `json:"attestedPercentage"`
// TotalArtifacts Total number of artifacts processed by TAS
TotalArtifacts int `json:"totalArtifacts"`
// UpdatedAt Timestamp when the coverage data was last updated
UpdatedAt time.Time `json:"updatedAt"`
// VerifiedPercentage Percentage of artifacts that are verified
VerifiedPercentage float32 `json:"verifiedPercentage"`
}
TrustCoverageResponse defines model for TrustCoverageResponse.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) GetApiV1ArtifactsArtifactPolicies ¶
func (_ Unimplemented) GetApiV1ArtifactsArtifactPolicies(w http.ResponseWriter, r *http.Request, artifact string)
Get policies and attestations for an artifact (GET /api/v1/artifacts/{artifact}/policies)
func (Unimplemented) GetApiV1ArtifactsImage ¶
func (_ Unimplemented) GetApiV1ArtifactsImage(w http.ResponseWriter, r *http.Request, params GetApiV1ArtifactsImageParams)
Retrieve metadata and digest from an OCI-compliant registry (GET /api/v1/artifacts/image)
func (Unimplemented) GetApiV1RekorEntriesUuid ¶
func (_ Unimplemented) GetApiV1RekorEntriesUuid(w http.ResponseWriter, r *http.Request, uuid string)
Retrieve Rekor log entry by UUID (GET /api/v1/rekor/entries/{uuid})
func (Unimplemented) GetApiV1RekorPublicKey ¶
func (_ Unimplemented) GetApiV1RekorPublicKey(w http.ResponseWriter, r *http.Request)
Get Rekor public key (GET /api/v1/rekor/public-key)
func (Unimplemented) GetApiV1SystemHealth ¶
func (_ Unimplemented) GetApiV1SystemHealth(w http.ResponseWriter, r *http.Request, params GetApiV1SystemHealthParams)
Get System Health Status (GET /api/v1/system/health)
func (Unimplemented) GetApiV1TrustConfig ¶
func (_ Unimplemented) GetApiV1TrustConfig(w http.ResponseWriter, r *http.Request, params GetApiV1TrustConfigParams)
Get Fulcio and Rekor metadata from TUF targets (GET /api/v1/trust/config)
func (Unimplemented) GetApiV1TrustCoverage ¶
func (_ Unimplemented) GetApiV1TrustCoverage(w http.ResponseWriter, r *http.Request)
Get Trust Coverage (GET /api/v1/trust/coverage)
func (Unimplemented) GetApiV1TrustMetadataInfo ¶
func (_ Unimplemented) GetApiV1TrustMetadataInfo(w http.ResponseWriter, r *http.Request, params GetApiV1TrustMetadataInfoParams)
Get TUF Metadata Info (GET /api/v1/trust/metadata-info)
func (Unimplemented) GetApiV1TrustTarget ¶
func (_ Unimplemented) GetApiV1TrustTarget(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetParams)
Get TUF Target File Content (GET /api/v1/trust/target)
func (Unimplemented) GetApiV1TrustTargets ¶
func (_ Unimplemented) GetApiV1TrustTargets(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsParams)
Get TUF Targets List (GET /api/v1/trust/targets)
func (Unimplemented) GetApiV1TrustTargetsCertificates ¶
func (_ Unimplemented) GetApiV1TrustTargetsCertificates(w http.ResponseWriter, r *http.Request, params GetApiV1TrustTargetsCertificatesParams)
Get Certificates Information (GET /api/v1/trust/targets/certificates)
func (Unimplemented) GetHealthz ¶
func (_ Unimplemented) GetHealthz(w http.ResponseWriter, r *http.Request)
(GET /healthz)
func (Unimplemented) PostApiV1ArtifactsVerify ¶
func (_ Unimplemented) PostApiV1ArtifactsVerify(w http.ResponseWriter, r *http.Request)
Verify an artifact (POST /api/v1/artifacts/verify)
func (Unimplemented) PostApiV1SystemHealthProbe ¶
func (_ Unimplemented) PostApiV1SystemHealthProbe(w http.ResponseWriter, r *http.Request)
Request a System Health probe round (POST /api/v1/system/health/probe)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type VerifyArtifactRequest ¶
type VerifyArtifactRequest struct {
// ArtifactDigest Hex-encoded digest of the artifact to verify. Used when the artifact reference does not directly include a digest (e.g., separate file verification). Mandatory when using the bundle.
ArtifactDigest *string `json:"artifactDigest,omitempty"`
// ArtifactDigestAlgorithm Digest algorithm used to compute the artifact's digest. Common values: sha256, sha512.
ArtifactDigestAlgorithm *string `json:"artifactDigestAlgorithm,omitempty"`
// Bundle Optional full Sigstore verification bundle (json). If provided, the verifier will validate this bundle directly instead of fetching an OCI image.
Bundle *map[string]interface{} `json:"bundle"`
// ExpectedOIDIssuer Expected OIDC issuer for the signing certificate (Fulcio-based verification).
ExpectedOIDIssuer *string `json:"expectedOIDIssuer"`
// ExpectedOIDIssuerRegex Regular expression that the OIDC issuer must match, if exact match is not desired.
ExpectedOIDIssuerRegex *string `json:"expectedOIDIssuerRegex"`
// ExpectedSAN Expected identity in the signing certificate's Subject Alternative Name (SAN) extension.
ExpectedSAN *string `json:"expectedSAN"`
// ExpectedSANRegex Regular expression that the SAN value must match, allowing pattern-based verification.
ExpectedSANRegex *string `json:"expectedSANRegex"`
// MinBundleVersion Minimum acceptable bundle version (e.g., '0.1') for verified signatures.
MinBundleVersion *string `json:"minBundleVersion"`
// OciImage The OCI image reference to verify.
OciImage string `json:"ociImage"`
// PredicateType The type of the predicate for the attestation.
PredicateType *string `json:"predicateType,omitempty"`
// RequireCTLog Require that a Certificate Transparency (CT) log entry exists for the signing certificate.
RequireCTLog *bool `json:"requireCTLog,omitempty"`
// RequireTLog Require that an Artifact Transparency (Rekor) log entry exists for the verified artifact.
RequireTLog *bool `json:"requireTLog,omitempty"`
// RequireTimestamp Require that either an RFC3161 signed timestamp or a log entry integrated timestamp is present in the signature.
RequireTimestamp *bool `json:"requireTimestamp,omitempty"`
// TufRepoUrl URL of a TUF repository containing the trusted root JSON file.
TufRepoUrl *string `json:"tufRepoUrl,omitempty"`
}
VerifyArtifactRequest Parameters for verifying a signed artifact or container image using Sigstore and related trust sources. Fields correspond to common verification inputs such as issuer expectations, trusted roots, and TUF configuration.
type VerifyArtifactResponse ¶
type VerifyArtifactResponse struct {
Artifact ImageMetadataResponse `json:"artifact"`
// Attestations List of attestations for the artifact
Attestations []AttestationView `json:"attestations"`
// Signatures List of signature verification results
Signatures []SignatureView `json:"signatures"`
Summary ArtifactSummaryView `json:"summary"`
}
VerifyArtifactResponse defines model for VerifyArtifactResponse.