accesscontrolv1

package
v0.3.1-do.not.use Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Requester_Darwin_case case_Requester_SigningInfo = 5
View Source
const Requester_Linux_case case_Requester_SigningInfo = 7
View Source
const Requester_SigningInfo_not_set_case case_Requester_SigningInfo = 0
View Source
const Requester_Windows_case case_Requester_SigningInfo = 6

Variables

View Source
var (
	Decision_name = map[int32]string{
		0: "DECISION_DENY",
		1: "DECISION_ALLOW",
	}
	Decision_value = map[string]int32{
		"DECISION_DENY":  0,
		"DECISION_ALLOW": 1,
	}
)

Enum value maps for Decision.

View Source
var (
	DarwinSigningInfo_Anchor_name = map[int32]string{
		0: "ANCHOR_NONE",
		1: "ANCHOR_AD_HOC",
		2: "ANCHOR_OTHER",
		3: "ANCHOR_APPLE_GENERIC",
		4: "ANCHOR_APPLE_PLATFORM",
	}
	DarwinSigningInfo_Anchor_value = map[string]int32{
		"ANCHOR_NONE":           0,
		"ANCHOR_AD_HOC":         1,
		"ANCHOR_OTHER":          2,
		"ANCHOR_APPLE_GENERIC":  3,
		"ANCHOR_APPLE_PLATFORM": 4,
	}
)

Enum value maps for DarwinSigningInfo_Anchor.

View Source
var (
	WindowsSigningInfo_IntegrityLevel_name = map[int32]string{
		0:     "INTEGRITY_LEVEL_UNSPECIFIED",
		4096:  "INTEGRITY_LEVEL_LOW",
		8192:  "INTEGRITY_LEVEL_MEDIUM",
		12288: "INTEGRITY_LEVEL_HIGH",
		16384: "INTEGRITY_LEVEL_SYSTEM",
	}
	WindowsSigningInfo_IntegrityLevel_value = map[string]int32{
		"INTEGRITY_LEVEL_UNSPECIFIED": 0,
		"INTEGRITY_LEVEL_LOW":         4096,
		"INTEGRITY_LEVEL_MEDIUM":      8192,
		"INTEGRITY_LEVEL_HIGH":        12288,
		"INTEGRITY_LEVEL_SYSTEM":      16384,
	}
)

Enum value maps for WindowsSigningInfo_IntegrityLevel.

View Source
var File_accesscontrol_v1_api_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CheckAccessRequest

type CheckAccessRequest struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*CheckAccessRequest) ClearPattern

func (x *CheckAccessRequest) ClearPattern()

func (*CheckAccessRequest) ClearRequester

func (x *CheckAccessRequest) ClearRequester()

func (*CheckAccessRequest) GetPattern

func (x *CheckAccessRequest) GetPattern() string

func (*CheckAccessRequest) GetRequester

func (x *CheckAccessRequest) GetRequester() *Requester

func (*CheckAccessRequest) HasPattern

func (x *CheckAccessRequest) HasPattern() bool

func (*CheckAccessRequest) HasRequester

func (x *CheckAccessRequest) HasRequester() bool

func (*CheckAccessRequest) ProtoMessage

func (*CheckAccessRequest) ProtoMessage()

func (*CheckAccessRequest) ProtoReflect

func (x *CheckAccessRequest) ProtoReflect() protoreflect.Message

func (*CheckAccessRequest) Reset

func (x *CheckAccessRequest) Reset()

func (*CheckAccessRequest) SetPattern

func (x *CheckAccessRequest) SetPattern(v string)

func (*CheckAccessRequest) SetRequester

func (x *CheckAccessRequest) SetRequester(v *Requester)

func (*CheckAccessRequest) String

func (x *CheckAccessRequest) String() string

type CheckAccessRequest_builder

type CheckAccessRequest_builder struct {

	// What the caller is trying to resolve — mirrors the resolver pattern.
	Pattern *string
	// Identity/context of the process making the request.
	Requester *Requester
	// contains filtered or unexported fields
}

func (CheckAccessRequest_builder) Build

type CheckAccessResponse

type CheckAccessResponse struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*CheckAccessResponse) ClearDecision

func (x *CheckAccessResponse) ClearDecision()

func (*CheckAccessResponse) GetDecision

func (x *CheckAccessResponse) GetDecision() Decision

func (*CheckAccessResponse) HasDecision

func (x *CheckAccessResponse) HasDecision() bool

func (*CheckAccessResponse) ProtoMessage

func (*CheckAccessResponse) ProtoMessage()

func (*CheckAccessResponse) ProtoReflect

func (x *CheckAccessResponse) ProtoReflect() protoreflect.Message

func (*CheckAccessResponse) Reset

func (x *CheckAccessResponse) Reset()

func (*CheckAccessResponse) SetDecision

func (x *CheckAccessResponse) SetDecision(v Decision)

func (*CheckAccessResponse) String

func (x *CheckAccessResponse) String() string

type CheckAccessResponse_builder

type CheckAccessResponse_builder struct {
	Decision *Decision
	// contains filtered or unexported fields
}

func (CheckAccessResponse_builder) Build

type DarwinSigningInfo

type DarwinSigningInfo struct {
	// contains filtered or unexported fields
}

DarwinSigningInfo carries macOS code-signing context (Security.framework SecCode* APIs) for the requesting process and its process ancestry.

func (*DarwinSigningInfo) ClearLeaf

func (x *DarwinSigningInfo) ClearLeaf()

func (*DarwinSigningInfo) ClearRoot

func (x *DarwinSigningInfo) ClearRoot()

func (*DarwinSigningInfo) GetChain

func (*DarwinSigningInfo) GetLeaf

func (*DarwinSigningInfo) GetRoot

func (*DarwinSigningInfo) HasLeaf

func (x *DarwinSigningInfo) HasLeaf() bool

func (*DarwinSigningInfo) HasRoot

func (x *DarwinSigningInfo) HasRoot() bool

func (*DarwinSigningInfo) ProtoMessage

func (*DarwinSigningInfo) ProtoMessage()

func (*DarwinSigningInfo) ProtoReflect

func (x *DarwinSigningInfo) ProtoReflect() protoreflect.Message

func (*DarwinSigningInfo) Reset

func (x *DarwinSigningInfo) Reset()

func (*DarwinSigningInfo) SetChain

func (*DarwinSigningInfo) SetLeaf

func (*DarwinSigningInfo) SetRoot

func (*DarwinSigningInfo) String

func (x *DarwinSigningInfo) String() string

type DarwinSigningInfo_Anchor

type DarwinSigningInfo_Anchor int32

Anchor classifies the root a process's code-signing certificate chain reaches. Values are ordered by increasing trust, so consumers may gate on a minimum (e.g. anchor >= ANCHOR_APPLE_GENERIC).

const (
	// Unsigned.
	// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
	DarwinSigningInfo_ANCHOR_NONE DarwinSigningInfo_Anchor = 0
	// Ad-hoc: a cdhash but no certificate (Homebrew formula, dev build).
	DarwinSigningInfo_ANCHOR_AD_HOC DarwinSigningInfo_Anchor = 1
	// Signed with a chain that does not reach an Apple root.
	DarwinSigningInfo_ANCHOR_OTHER DarwinSigningInfo_Anchor = 2
	// Developer ID or Mac App Store.
	DarwinSigningInfo_ANCHOR_APPLE_GENERIC DarwinSigningInfo_Anchor = 3
	// Apple's own platform binaries.
	DarwinSigningInfo_ANCHOR_APPLE_PLATFORM DarwinSigningInfo_Anchor = 4
)

func (DarwinSigningInfo_Anchor) Descriptor

func (DarwinSigningInfo_Anchor) Enum

func (DarwinSigningInfo_Anchor) Number

func (DarwinSigningInfo_Anchor) String

func (x DarwinSigningInfo_Anchor) String() string

func (DarwinSigningInfo_Anchor) Type

type DarwinSigningInfo_ProcessNode

type DarwinSigningInfo_ProcessNode struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

ProcessNode is one process in the ancestry chain.

func (*DarwinSigningInfo_ProcessNode) ClearComm

func (x *DarwinSigningInfo_ProcessNode) ClearComm()

func (*DarwinSigningInfo_ProcessNode) ClearExe

func (x *DarwinSigningInfo_ProcessNode) ClearExe()

func (*DarwinSigningInfo_ProcessNode) ClearMtime

func (x *DarwinSigningInfo_ProcessNode) ClearMtime()

func (*DarwinSigningInfo_ProcessNode) ClearPid

func (x *DarwinSigningInfo_ProcessNode) ClearPid()

func (*DarwinSigningInfo_ProcessNode) ClearRealExe

func (x *DarwinSigningInfo_ProcessNode) ClearRealExe()

func (*DarwinSigningInfo_ProcessNode) ClearStart

func (x *DarwinSigningInfo_ProcessNode) ClearStart()

func (*DarwinSigningInfo_ProcessNode) ClearUid

func (x *DarwinSigningInfo_ProcessNode) ClearUid()

func (*DarwinSigningInfo_ProcessNode) GetArgs

func (x *DarwinSigningInfo_ProcessNode) GetArgs() []string

func (*DarwinSigningInfo_ProcessNode) GetComm

func (*DarwinSigningInfo_ProcessNode) GetExe

func (*DarwinSigningInfo_ProcessNode) GetMtime

func (*DarwinSigningInfo_ProcessNode) GetPid

func (*DarwinSigningInfo_ProcessNode) GetRealExe

func (x *DarwinSigningInfo_ProcessNode) GetRealExe() string

func (*DarwinSigningInfo_ProcessNode) GetStart

func (x *DarwinSigningInfo_ProcessNode) GetStart() int64

func (*DarwinSigningInfo_ProcessNode) GetUid

func (*DarwinSigningInfo_ProcessNode) HasComm

func (x *DarwinSigningInfo_ProcessNode) HasComm() bool

func (*DarwinSigningInfo_ProcessNode) HasExe

func (x *DarwinSigningInfo_ProcessNode) HasExe() bool

func (*DarwinSigningInfo_ProcessNode) HasMtime

func (x *DarwinSigningInfo_ProcessNode) HasMtime() bool

func (*DarwinSigningInfo_ProcessNode) HasPid

func (x *DarwinSigningInfo_ProcessNode) HasPid() bool

func (*DarwinSigningInfo_ProcessNode) HasRealExe

func (x *DarwinSigningInfo_ProcessNode) HasRealExe() bool

func (*DarwinSigningInfo_ProcessNode) HasStart

func (x *DarwinSigningInfo_ProcessNode) HasStart() bool

func (*DarwinSigningInfo_ProcessNode) HasUid

func (x *DarwinSigningInfo_ProcessNode) HasUid() bool

func (*DarwinSigningInfo_ProcessNode) ProtoMessage

func (*DarwinSigningInfo_ProcessNode) ProtoMessage()

func (*DarwinSigningInfo_ProcessNode) ProtoReflect

func (*DarwinSigningInfo_ProcessNode) Reset

func (x *DarwinSigningInfo_ProcessNode) Reset()

func (*DarwinSigningInfo_ProcessNode) SetArgs

func (x *DarwinSigningInfo_ProcessNode) SetArgs(v []string)

func (*DarwinSigningInfo_ProcessNode) SetComm

func (x *DarwinSigningInfo_ProcessNode) SetComm(v string)

func (*DarwinSigningInfo_ProcessNode) SetExe

func (*DarwinSigningInfo_ProcessNode) SetMtime

func (*DarwinSigningInfo_ProcessNode) SetPid

func (x *DarwinSigningInfo_ProcessNode) SetPid(v int32)

func (*DarwinSigningInfo_ProcessNode) SetRealExe

func (x *DarwinSigningInfo_ProcessNode) SetRealExe(v string)

func (*DarwinSigningInfo_ProcessNode) SetStart

func (x *DarwinSigningInfo_ProcessNode) SetStart(v int64)

func (*DarwinSigningInfo_ProcessNode) SetUid

func (x *DarwinSigningInfo_ProcessNode) SetUid(v int32)

func (*DarwinSigningInfo_ProcessNode) String

type DarwinSigningInfo_ProcessNode_builder

type DarwinSigningInfo_ProcessNode_builder struct {

	// OS process ID.
	Pid *int32
	// Process start token in µs since epoch (p_starttime sec*1e6 + µs).
	// Together with pid it forms an instance identity that survives PID
	// reuse.
	Start *int64
	// The process's effective uid; -1 when unknown.
	Uid *int32
	// Kernel's process name (p_comm, 16 characters max, readable without
	// root permissions).
	Comm *string
	// Executable path exactly as the kernel reports it (proc_pidpath).
	Exe *string
	// exe with symlinks resolved, falling back to exe.
	RealExe *string
	// Modification time of real_exe, UTC.
	Mtime *timestamppb.Timestamp
	// Process argv via sysctl(KERN_PROCARGS2). Same-uid only and
	// best-effort: empty when unreadable. Self-reported by the process.
	Args []string
	// contains filtered or unexported fields
}

func (DarwinSigningInfo_ProcessNode_builder) Build

type DarwinSigningInfo_SigningIdentity

type DarwinSigningInfo_SigningIdentity struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

SigningIdentity is the verified code-signing identity of a single process.

func (*DarwinSigningInfo_SigningIdentity) ClearAnchor

func (x *DarwinSigningInfo_SigningIdentity) ClearAnchor()

func (*DarwinSigningInfo_SigningIdentity) ClearCdHash

func (x *DarwinSigningInfo_SigningIdentity) ClearCdHash()

func (*DarwinSigningInfo_SigningIdentity) ClearCommonName

func (x *DarwinSigningInfo_SigningIdentity) ClearCommonName()

func (*DarwinSigningInfo_SigningIdentity) ClearIdentifier

func (x *DarwinSigningInfo_SigningIdentity) ClearIdentifier()

func (*DarwinSigningInfo_SigningIdentity) ClearOrganization

func (x *DarwinSigningInfo_SigningIdentity) ClearOrganization()

func (*DarwinSigningInfo_SigningIdentity) ClearSignedByDocker

func (x *DarwinSigningInfo_SigningIdentity) ClearSignedByDocker()

func (*DarwinSigningInfo_SigningIdentity) ClearStatus

func (x *DarwinSigningInfo_SigningIdentity) ClearStatus()

func (*DarwinSigningInfo_SigningIdentity) ClearTeamId

func (x *DarwinSigningInfo_SigningIdentity) ClearTeamId()

func (*DarwinSigningInfo_SigningIdentity) GetAnchor

func (*DarwinSigningInfo_SigningIdentity) GetCdHash

func (*DarwinSigningInfo_SigningIdentity) GetCommonName

func (x *DarwinSigningInfo_SigningIdentity) GetCommonName() string

func (*DarwinSigningInfo_SigningIdentity) GetIdentifier

func (x *DarwinSigningInfo_SigningIdentity) GetIdentifier() string

func (*DarwinSigningInfo_SigningIdentity) GetOrganization

func (x *DarwinSigningInfo_SigningIdentity) GetOrganization() string

func (*DarwinSigningInfo_SigningIdentity) GetSignedByDocker

func (x *DarwinSigningInfo_SigningIdentity) GetSignedByDocker() bool

func (*DarwinSigningInfo_SigningIdentity) GetStatus

func (*DarwinSigningInfo_SigningIdentity) GetTeamId

func (*DarwinSigningInfo_SigningIdentity) HasAnchor

func (x *DarwinSigningInfo_SigningIdentity) HasAnchor() bool

func (*DarwinSigningInfo_SigningIdentity) HasCdHash

func (x *DarwinSigningInfo_SigningIdentity) HasCdHash() bool

func (*DarwinSigningInfo_SigningIdentity) HasCommonName

func (x *DarwinSigningInfo_SigningIdentity) HasCommonName() bool

func (*DarwinSigningInfo_SigningIdentity) HasIdentifier

func (x *DarwinSigningInfo_SigningIdentity) HasIdentifier() bool

func (*DarwinSigningInfo_SigningIdentity) HasOrganization

func (x *DarwinSigningInfo_SigningIdentity) HasOrganization() bool

func (*DarwinSigningInfo_SigningIdentity) HasSignedByDocker

func (x *DarwinSigningInfo_SigningIdentity) HasSignedByDocker() bool

func (*DarwinSigningInfo_SigningIdentity) HasStatus

func (x *DarwinSigningInfo_SigningIdentity) HasStatus() bool

func (*DarwinSigningInfo_SigningIdentity) HasTeamId

func (x *DarwinSigningInfo_SigningIdentity) HasTeamId() bool

func (*DarwinSigningInfo_SigningIdentity) ProtoMessage

func (*DarwinSigningInfo_SigningIdentity) ProtoMessage()

func (*DarwinSigningInfo_SigningIdentity) ProtoReflect

func (*DarwinSigningInfo_SigningIdentity) Reset

func (*DarwinSigningInfo_SigningIdentity) SetAnchor

func (*DarwinSigningInfo_SigningIdentity) SetCdHash

func (x *DarwinSigningInfo_SigningIdentity) SetCdHash(v string)

func (*DarwinSigningInfo_SigningIdentity) SetCommonName

func (x *DarwinSigningInfo_SigningIdentity) SetCommonName(v string)

func (*DarwinSigningInfo_SigningIdentity) SetIdentifier

func (x *DarwinSigningInfo_SigningIdentity) SetIdentifier(v string)

func (*DarwinSigningInfo_SigningIdentity) SetOrganization

func (x *DarwinSigningInfo_SigningIdentity) SetOrganization(v string)

func (*DarwinSigningInfo_SigningIdentity) SetSignedByDocker

func (x *DarwinSigningInfo_SigningIdentity) SetSignedByDocker(v bool)

func (*DarwinSigningInfo_SigningIdentity) SetStatus

func (x *DarwinSigningInfo_SigningIdentity) SetStatus(v uint32)

func (*DarwinSigningInfo_SigningIdentity) SetTeamId

func (x *DarwinSigningInfo_SigningIdentity) SetTeamId(v string)

func (*DarwinSigningInfo_SigningIdentity) String

type DarwinSigningInfo_SigningIdentity_builder

type DarwinSigningInfo_SigningIdentity_builder struct {

	// Apple-assigned Team Identifier (kSecCodeInfoTeamIdentifier). Apple
	// guarantees uniqueness per developer account, so this is a reliable
	// trust key.
	TeamId *string
	// Code-signing identifier (kSecCodeInfoIdentifier), typically the bundle
	// ID, e.g. "com.docker.docker". Use to pin a specific application within
	// a team.
	Identifier *string
	// Company name from the leaf certificate subject.O, e.g. "Docker Inc".
	// Human-readable but NOT guaranteed unique or immutable — display/logging
	// only, never a sole trust key.
	Organization *string
	// Leaf certificate subject.CN, e.g.
	// "Developer ID Application: Docker Inc (9BNSXJN65R)". Contains the
	// company name and team ID as embedded display text.
	CommonName *string
	// Code directory hash (kSecCodeInfoUnique), the exact identity of this
	// specific binary build, hex-encoded. Use to pin an exact build.
	CdHash *string
	// Dynamic code-signing status word (kSecCodeInfoStatus) — the kernel's
	// live view of the signature. Raw uint32 bitmask; values are fixed by
	// Apple's <Security/SecCode.h> and preserved verbatim (unknown bits
	// included). Known flags:
	//
	//	0x0000_0001 VALID    — dynamically valid; cleared on runtime tamper.
	//	0x0000_0100 HARD     — kernel refuses to page in invalid pages.
	//	0x0000_0200 KILL     — process killed if it becomes invalid.
	//	0x1000_0000 DEBUGGED — debugger attached; red flag for a secrets peer.
	Status *uint32
	// Root the certificate chain reaches.
	Anchor *DarwinSigningInfo_Anchor
	// True if this process's signature chains to Docker's signing identity.
	SignedByDocker *bool
	// contains filtered or unexported fields
}

func (DarwinSigningInfo_SigningIdentity_builder) Build

type DarwinSigningInfo_builder

type DarwinSigningInfo_builder struct {

	// Code-signing identity of the outermost recorded ancestor.
	Root *DarwinSigningInfo_SigningIdentity
	// Code-signing identity of the process that connected to the socket
	// (last chain element).
	Leaf *DarwinSigningInfo_SigningIdentity
	// The leaf's process ancestry ordered root to leaf. For a single-node
	// chain, root and leaf describe the same process.
	Chain []*DarwinSigningInfo_ProcessNode
	// contains filtered or unexported fields
}

func (DarwinSigningInfo_builder) Build

type Decision

type Decision int32
const (
	// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
	Decision_DECISION_DENY  Decision = 0
	Decision_DECISION_ALLOW Decision = 1
)

func (Decision) Descriptor

func (Decision) Descriptor() protoreflect.EnumDescriptor

func (Decision) Enum

func (x Decision) Enum() *Decision

func (Decision) Number

func (x Decision) Number() protoreflect.EnumNumber

func (Decision) String

func (x Decision) String() string

func (Decision) Type

type LinuxSigningInfo

type LinuxSigningInfo struct {
	// contains filtered or unexported fields
}

LinuxSigningInfo carries sigstore (Fulcio/Rekor) signing context for the requesting process. A binary may be signed by more than one signer.

func (*LinuxSigningInfo) GetSigners

func (x *LinuxSigningInfo) GetSigners() []*LinuxSigningInfo_Signer

func (*LinuxSigningInfo) ProtoMessage

func (*LinuxSigningInfo) ProtoMessage()

func (*LinuxSigningInfo) ProtoReflect

func (x *LinuxSigningInfo) ProtoReflect() protoreflect.Message

func (*LinuxSigningInfo) Reset

func (x *LinuxSigningInfo) Reset()

func (*LinuxSigningInfo) SetSigners

func (x *LinuxSigningInfo) SetSigners(v []*LinuxSigningInfo_Signer)

func (*LinuxSigningInfo) String

func (x *LinuxSigningInfo) String() string

type LinuxSigningInfo_Signer

type LinuxSigningInfo_Signer struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

Signer is one verified sigstore signature over the binary: the Fulcio certificate identity plus its bound provenance and Rekor inclusion.

func (*LinuxSigningInfo_Signer) ClearBuildTrigger

func (x *LinuxSigningInfo_Signer) ClearBuildTrigger()

func (*LinuxSigningInfo_Signer) ClearCertIdentity

func (x *LinuxSigningInfo_Signer) ClearCertIdentity()

func (*LinuxSigningInfo_Signer) ClearCertIssuer

func (x *LinuxSigningInfo_Signer) ClearCertIssuer()

func (*LinuxSigningInfo_Signer) ClearIntegratedTime

func (x *LinuxSigningInfo_Signer) ClearIntegratedTime()

func (*LinuxSigningInfo_Signer) ClearRekorLogIndex

func (x *LinuxSigningInfo_Signer) ClearRekorLogIndex()

func (*LinuxSigningInfo_Signer) ClearRunInvocationUri

func (x *LinuxSigningInfo_Signer) ClearRunInvocationUri()

func (*LinuxSigningInfo_Signer) ClearRunnerEnvironment

func (x *LinuxSigningInfo_Signer) ClearRunnerEnvironment()

func (*LinuxSigningInfo_Signer) ClearSourceCommit

func (x *LinuxSigningInfo_Signer) ClearSourceCommit()

func (*LinuxSigningInfo_Signer) ClearSourceRef

func (x *LinuxSigningInfo_Signer) ClearSourceRef()

func (*LinuxSigningInfo_Signer) ClearSourceRepo

func (x *LinuxSigningInfo_Signer) ClearSourceRepo()

func (*LinuxSigningInfo_Signer) GetBuildTrigger

func (x *LinuxSigningInfo_Signer) GetBuildTrigger() string

func (*LinuxSigningInfo_Signer) GetCertIdentity

func (x *LinuxSigningInfo_Signer) GetCertIdentity() string

func (*LinuxSigningInfo_Signer) GetCertIssuer

func (x *LinuxSigningInfo_Signer) GetCertIssuer() string

func (*LinuxSigningInfo_Signer) GetIntegratedTime

func (x *LinuxSigningInfo_Signer) GetIntegratedTime() *timestamppb.Timestamp

func (*LinuxSigningInfo_Signer) GetRekorLogIndex

func (x *LinuxSigningInfo_Signer) GetRekorLogIndex() int64

func (*LinuxSigningInfo_Signer) GetRunInvocationUri

func (x *LinuxSigningInfo_Signer) GetRunInvocationUri() string

func (*LinuxSigningInfo_Signer) GetRunnerEnvironment

func (x *LinuxSigningInfo_Signer) GetRunnerEnvironment() string

func (*LinuxSigningInfo_Signer) GetSourceCommit

func (x *LinuxSigningInfo_Signer) GetSourceCommit() string

func (*LinuxSigningInfo_Signer) GetSourceRef

func (x *LinuxSigningInfo_Signer) GetSourceRef() string

func (*LinuxSigningInfo_Signer) GetSourceRepo

func (x *LinuxSigningInfo_Signer) GetSourceRepo() string

func (*LinuxSigningInfo_Signer) HasBuildTrigger

func (x *LinuxSigningInfo_Signer) HasBuildTrigger() bool

func (*LinuxSigningInfo_Signer) HasCertIdentity

func (x *LinuxSigningInfo_Signer) HasCertIdentity() bool

func (*LinuxSigningInfo_Signer) HasCertIssuer

func (x *LinuxSigningInfo_Signer) HasCertIssuer() bool

func (*LinuxSigningInfo_Signer) HasIntegratedTime

func (x *LinuxSigningInfo_Signer) HasIntegratedTime() bool

func (*LinuxSigningInfo_Signer) HasRekorLogIndex

func (x *LinuxSigningInfo_Signer) HasRekorLogIndex() bool

func (*LinuxSigningInfo_Signer) HasRunInvocationUri

func (x *LinuxSigningInfo_Signer) HasRunInvocationUri() bool

func (*LinuxSigningInfo_Signer) HasRunnerEnvironment

func (x *LinuxSigningInfo_Signer) HasRunnerEnvironment() bool

func (*LinuxSigningInfo_Signer) HasSourceCommit

func (x *LinuxSigningInfo_Signer) HasSourceCommit() bool

func (*LinuxSigningInfo_Signer) HasSourceRef

func (x *LinuxSigningInfo_Signer) HasSourceRef() bool

func (*LinuxSigningInfo_Signer) HasSourceRepo

func (x *LinuxSigningInfo_Signer) HasSourceRepo() bool

func (*LinuxSigningInfo_Signer) ProtoMessage

func (*LinuxSigningInfo_Signer) ProtoMessage()

func (*LinuxSigningInfo_Signer) ProtoReflect

func (x *LinuxSigningInfo_Signer) ProtoReflect() protoreflect.Message

func (*LinuxSigningInfo_Signer) Reset

func (x *LinuxSigningInfo_Signer) Reset()

func (*LinuxSigningInfo_Signer) SetBuildTrigger

func (x *LinuxSigningInfo_Signer) SetBuildTrigger(v string)

func (*LinuxSigningInfo_Signer) SetCertIdentity

func (x *LinuxSigningInfo_Signer) SetCertIdentity(v string)

func (*LinuxSigningInfo_Signer) SetCertIssuer

func (x *LinuxSigningInfo_Signer) SetCertIssuer(v string)

func (*LinuxSigningInfo_Signer) SetIntegratedTime

func (x *LinuxSigningInfo_Signer) SetIntegratedTime(v *timestamppb.Timestamp)

func (*LinuxSigningInfo_Signer) SetRekorLogIndex

func (x *LinuxSigningInfo_Signer) SetRekorLogIndex(v int64)

func (*LinuxSigningInfo_Signer) SetRunInvocationUri

func (x *LinuxSigningInfo_Signer) SetRunInvocationUri(v string)

func (*LinuxSigningInfo_Signer) SetRunnerEnvironment

func (x *LinuxSigningInfo_Signer) SetRunnerEnvironment(v string)

func (*LinuxSigningInfo_Signer) SetSourceCommit

func (x *LinuxSigningInfo_Signer) SetSourceCommit(v string)

func (*LinuxSigningInfo_Signer) SetSourceRef

func (x *LinuxSigningInfo_Signer) SetSourceRef(v string)

func (*LinuxSigningInfo_Signer) SetSourceRepo

func (x *LinuxSigningInfo_Signer) SetSourceRepo(v string)

func (*LinuxSigningInfo_Signer) String

func (x *LinuxSigningInfo_Signer) String() string

type LinuxSigningInfo_Signer_builder

type LinuxSigningInfo_Signer_builder struct {

	// OIDC issuer embedded in the Fulcio leaf certificate, e.g.
	// "https://token.actions.githubusercontent.com".
	CertIssuer *string
	// Certificate SAN — the signer's workflow identity, e.g.
	// ".../sign-release.yml@refs/tags/v0.7.1".
	CertIdentity *string
	// Source repository URI from the Fulcio GitHub extension, e.g.
	// "https://github.com/docker/secrets-engine".
	SourceRepo *string
	// Git ref that was built, e.g. "refs/tags/v0.7.1". Ties the binary to a
	// release tag.
	SourceRef *string
	// Source commit SHA the binary was built from (Fulcio source-repository
	// digest extension).
	SourceCommit *string
	// "github-hosted" or "self-hosted" (Fulcio extension) — a self-hosted
	// runner minting a release signature would be a red flag.
	RunnerEnvironment *string
	// Event that started the signing workflow, e.g. "release" (Fulcio
	// extension).
	BuildTrigger *string
	// Points at the specific GitHub Actions run that produced the signature
	// (Fulcio extension) — for audit/log correlation.
	RunInvocationUri *string
	// Entry's index in the Rekor transparency log.
	RekorLogIndex *int64
	// When the signature was recorded in Rekor.
	IntegratedTime *timestamppb.Timestamp
	// contains filtered or unexported fields
}

func (LinuxSigningInfo_Signer_builder) Build

type LinuxSigningInfo_builder

type LinuxSigningInfo_builder struct {
	Signers []*LinuxSigningInfo_Signer
	// contains filtered or unexported fields
}

func (LinuxSigningInfo_builder) Build

type Requester

type Requester struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*Requester) ClearAbsoluteBinaryPath

func (x *Requester) ClearAbsoluteBinaryPath()

func (*Requester) ClearDarwin

func (x *Requester) ClearDarwin()

func (*Requester) ClearLinux

func (x *Requester) ClearLinux()

func (*Requester) ClearName

func (x *Requester) ClearName()

func (*Requester) ClearPid

func (x *Requester) ClearPid()

func (*Requester) ClearSignedByDocker

func (x *Requester) ClearSignedByDocker()

func (*Requester) ClearSigningInfo

func (x *Requester) ClearSigningInfo()

func (*Requester) ClearWindows

func (x *Requester) ClearWindows()

func (*Requester) GetAbsoluteBinaryPath

func (x *Requester) GetAbsoluteBinaryPath() string

func (*Requester) GetDarwin

func (x *Requester) GetDarwin() *DarwinSigningInfo

func (*Requester) GetLinux

func (x *Requester) GetLinux() *LinuxSigningInfo

func (*Requester) GetName

func (x *Requester) GetName() string

func (*Requester) GetPid

func (x *Requester) GetPid() int32

func (*Requester) GetSignedByDocker

func (x *Requester) GetSignedByDocker() bool

func (*Requester) GetWindows

func (x *Requester) GetWindows() *WindowsSigningInfo

func (*Requester) HasAbsoluteBinaryPath

func (x *Requester) HasAbsoluteBinaryPath() bool

func (*Requester) HasDarwin

func (x *Requester) HasDarwin() bool

func (*Requester) HasLinux

func (x *Requester) HasLinux() bool

func (*Requester) HasName

func (x *Requester) HasName() bool

func (*Requester) HasPid

func (x *Requester) HasPid() bool

func (*Requester) HasSignedByDocker

func (x *Requester) HasSignedByDocker() bool

func (*Requester) HasSigningInfo

func (x *Requester) HasSigningInfo() bool

func (*Requester) HasWindows

func (x *Requester) HasWindows() bool

func (*Requester) ProtoMessage

func (*Requester) ProtoMessage()

func (*Requester) ProtoReflect

func (x *Requester) ProtoReflect() protoreflect.Message

func (*Requester) Reset

func (x *Requester) Reset()

func (*Requester) SetAbsoluteBinaryPath

func (x *Requester) SetAbsoluteBinaryPath(v string)

func (*Requester) SetDarwin

func (x *Requester) SetDarwin(v *DarwinSigningInfo)

func (*Requester) SetLinux

func (x *Requester) SetLinux(v *LinuxSigningInfo)

func (*Requester) SetName

func (x *Requester) SetName(v string)

func (*Requester) SetPid

func (x *Requester) SetPid(v int32)

func (*Requester) SetSignedByDocker

func (x *Requester) SetSignedByDocker(v bool)

func (*Requester) SetWindows

func (x *Requester) SetWindows(v *WindowsSigningInfo)

func (*Requester) String

func (x *Requester) String() string

func (*Requester) WhichSigningInfo

func (x *Requester) WhichSigningInfo() case_Requester_SigningInfo

type Requester_builder

type Requester_builder struct {

	// OS process ID of the caller.
	Pid *int32
	// Process name.
	Name *string
	// Absolute path to the caller's binary on disk.
	AbsoluteBinaryPath *string
	// True if the binary's signature chains to Docker's signing identity.
	SignedByDocker *bool

	// Fields of oneof xxx_hidden_SigningInfo:
	Darwin  *DarwinSigningInfo
	Windows *WindowsSigningInfo
	Linux   *LinuxSigningInfo
	// contains filtered or unexported fields
}

func (Requester_builder) Build

func (b0 Requester_builder) Build() *Requester

type WindowsSigningInfo

type WindowsSigningInfo struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

WindowsSigningInfo carries Windows Authenticode context for the requesting process. Fields fall into three trust tiers: signature-derived (verified by WinVerifyTrust), token-derived (OS-enforced runtime properties), and corroborating PE version metadata (unsigned, display only).

func (*WindowsSigningInfo) ClearCompanyName

func (x *WindowsSigningInfo) ClearCompanyName()

func (*WindowsSigningInfo) ClearFileVersion

func (x *WindowsSigningInfo) ClearFileVersion()

func (*WindowsSigningInfo) ClearIntegrity

func (x *WindowsSigningInfo) ClearIntegrity()

func (*WindowsSigningInfo) ClearIsEv

func (x *WindowsSigningInfo) ClearIsEv()

func (*WindowsSigningInfo) ClearIssuer

func (x *WindowsSigningInfo) ClearIssuer()

func (*WindowsSigningInfo) ClearProductName

func (x *WindowsSigningInfo) ClearProductName()

func (*WindowsSigningInfo) ClearSubjectCommonName

func (x *WindowsSigningInfo) ClearSubjectCommonName()

func (*WindowsSigningInfo) ClearSubjectOrg

func (x *WindowsSigningInfo) ClearSubjectOrg()

func (*WindowsSigningInfo) ClearThumbprintSha256

func (x *WindowsSigningInfo) ClearThumbprintSha256()

func (*WindowsSigningInfo) ClearTrustedChain

func (x *WindowsSigningInfo) ClearTrustedChain()

func (*WindowsSigningInfo) GetCompanyName

func (x *WindowsSigningInfo) GetCompanyName() string

func (*WindowsSigningInfo) GetFileVersion

func (x *WindowsSigningInfo) GetFileVersion() string

func (*WindowsSigningInfo) GetIntegrity

func (*WindowsSigningInfo) GetIsEv

func (x *WindowsSigningInfo) GetIsEv() bool

func (*WindowsSigningInfo) GetIssuer

func (x *WindowsSigningInfo) GetIssuer() string

func (*WindowsSigningInfo) GetProductName

func (x *WindowsSigningInfo) GetProductName() string

func (*WindowsSigningInfo) GetSubjectCommonName

func (x *WindowsSigningInfo) GetSubjectCommonName() string

func (*WindowsSigningInfo) GetSubjectOrg

func (x *WindowsSigningInfo) GetSubjectOrg() string

func (*WindowsSigningInfo) GetThumbprintSha256

func (x *WindowsSigningInfo) GetThumbprintSha256() string

func (*WindowsSigningInfo) GetTrustedChain

func (x *WindowsSigningInfo) GetTrustedChain() bool

func (*WindowsSigningInfo) HasCompanyName

func (x *WindowsSigningInfo) HasCompanyName() bool

func (*WindowsSigningInfo) HasFileVersion

func (x *WindowsSigningInfo) HasFileVersion() bool

func (*WindowsSigningInfo) HasIntegrity

func (x *WindowsSigningInfo) HasIntegrity() bool

func (*WindowsSigningInfo) HasIsEv

func (x *WindowsSigningInfo) HasIsEv() bool

func (*WindowsSigningInfo) HasIssuer

func (x *WindowsSigningInfo) HasIssuer() bool

func (*WindowsSigningInfo) HasProductName

func (x *WindowsSigningInfo) HasProductName() bool

func (*WindowsSigningInfo) HasSubjectCommonName

func (x *WindowsSigningInfo) HasSubjectCommonName() bool

func (*WindowsSigningInfo) HasSubjectOrg

func (x *WindowsSigningInfo) HasSubjectOrg() bool

func (*WindowsSigningInfo) HasThumbprintSha256

func (x *WindowsSigningInfo) HasThumbprintSha256() bool

func (*WindowsSigningInfo) HasTrustedChain

func (x *WindowsSigningInfo) HasTrustedChain() bool

func (*WindowsSigningInfo) ProtoMessage

func (*WindowsSigningInfo) ProtoMessage()

func (*WindowsSigningInfo) ProtoReflect

func (x *WindowsSigningInfo) ProtoReflect() protoreflect.Message

func (*WindowsSigningInfo) Reset

func (x *WindowsSigningInfo) Reset()

func (*WindowsSigningInfo) SetCompanyName

func (x *WindowsSigningInfo) SetCompanyName(v string)

func (*WindowsSigningInfo) SetFileVersion

func (x *WindowsSigningInfo) SetFileVersion(v string)

func (*WindowsSigningInfo) SetIntegrity

func (*WindowsSigningInfo) SetIsEv

func (x *WindowsSigningInfo) SetIsEv(v bool)

func (*WindowsSigningInfo) SetIssuer

func (x *WindowsSigningInfo) SetIssuer(v string)

func (*WindowsSigningInfo) SetProductName

func (x *WindowsSigningInfo) SetProductName(v string)

func (*WindowsSigningInfo) SetSubjectCommonName

func (x *WindowsSigningInfo) SetSubjectCommonName(v string)

func (*WindowsSigningInfo) SetSubjectOrg

func (x *WindowsSigningInfo) SetSubjectOrg(v string)

func (*WindowsSigningInfo) SetThumbprintSha256

func (x *WindowsSigningInfo) SetThumbprintSha256(v string)

func (*WindowsSigningInfo) SetTrustedChain

func (x *WindowsSigningInfo) SetTrustedChain(v bool)

func (*WindowsSigningInfo) String

func (x *WindowsSigningInfo) String() string

type WindowsSigningInfo_IntegrityLevel

type WindowsSigningInfo_IntegrityLevel int32

IntegrityLevel is a Windows mandatory integrity level, ordered so higher values denote a more privileged context (mirrors winnt.h RIDs).

const (
	// SECURITY_MANDATORY_UNTRUSTED_RID (0x0000). Also the value used when the
	// integrity level could not be determined.
	WindowsSigningInfo_INTEGRITY_LEVEL_UNSPECIFIED WindowsSigningInfo_IntegrityLevel = 0
	// SECURITY_MANDATORY_LOW_RID (0x1000), e.g. AppContainer/sandboxed.
	WindowsSigningInfo_INTEGRITY_LEVEL_LOW WindowsSigningInfo_IntegrityLevel = 4096
	// SECURITY_MANDATORY_MEDIUM_RID (0x2000), default for standard user procs.
	WindowsSigningInfo_INTEGRITY_LEVEL_MEDIUM WindowsSigningInfo_IntegrityLevel = 8192
	// SECURITY_MANDATORY_HIGH_RID (0x3000), e.g. elevated (administrator).
	WindowsSigningInfo_INTEGRITY_LEVEL_HIGH WindowsSigningInfo_IntegrityLevel = 12288
	// SECURITY_MANDATORY_SYSTEM_RID (0x4000), e.g. services running as SYSTEM.
	WindowsSigningInfo_INTEGRITY_LEVEL_SYSTEM WindowsSigningInfo_IntegrityLevel = 16384
)

func (WindowsSigningInfo_IntegrityLevel) Descriptor

func (WindowsSigningInfo_IntegrityLevel) Enum

func (WindowsSigningInfo_IntegrityLevel) Number

func (WindowsSigningInfo_IntegrityLevel) String

func (WindowsSigningInfo_IntegrityLevel) Type

type WindowsSigningInfo_builder

type WindowsSigningInfo_builder struct {

	// Whether WinVerifyTrust confirmed the Authenticode signature chains to a
	// trusted root and is not revoked. The remaining signature fields are only
	// meaningful when true.
	TrustedChain *bool
	// Signing certificate Subject Organization (O), e.g. "Docker Inc".
	SubjectOrg *string
	// Signing certificate Subject Common Name (CN).
	SubjectCommonName *string
	// Common Name of the issuing CA, e.g. the DigiCert / Sectigo code-signing
	// intermediate.
	Issuer *string
	// Hex-encoded SHA-256 hash of the leaf signing certificate. Strongest
	// identity pin, but brittle across cert rotation.
	ThumbprintSha256 *string
	// Whether the signature uses an Extended Validation code-signing certificate
	// (hardware-backed key, stricter vetting), detected from the leaf
	// certificate's CA/Browser Forum EV policy OID.
	IsEv *bool
	// Peer process's mandatory integrity level from its access token. Collected
	// for logging/diagnostics only; trust is gated on the signature, not
	// integrity (the engine itself runs at Medium as a per-user service).
	Integrity *WindowsSigningInfo_IntegrityLevel
	// --- Corroborating only (PE version resource; NOT trustworthy) ---
	//
	// From the PE VERSIONINFO resource: unsigned and attacker-controllable, so
	// display/logging only — must never gate trust.
	CompanyName *string
	ProductName *string
	FileVersion *string
	// contains filtered or unexported fields
}

func (WindowsSigningInfo_builder) Build

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL