Documentation
¶
Index ¶
Constants ¶
View Source
const ( ControlPathNodeControlPath = "control_path" ControlPathNodeAgent = "agent" ControlPathNodeExecutionIdentity = "execution_identity" ControlPathNodeCredential = "credential" ControlPathNodeTool = "tool" ControlPathNodeWorkflow = "workflow" ControlPathNodeRepo = "repo" ControlPathNodeGovernanceControl = "governance_control" ControlPathNodeTarget = "target" ControlPathNodeActionCapability = "action_capability" )
View Source
const ControlPathGraphVersion = "1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlPathEdge ¶ added in v1.3.0
type ControlPathEdge struct {
EdgeID string `json:"edge_id"`
PathID string `json:"path_id"`
Kind string `json:"kind"`
FromNodeID string `json:"from_node_id"`
ToNodeID string `json:"to_node_id"`
EvidenceRefs []string `json:"evidence_refs,omitempty"`
SourceRefs []string `json:"source_refs,omitempty"`
AttackPathRefs []string `json:"attack_path_refs,omitempty"`
SourceFindingKeys []string `json:"source_finding_keys,omitempty"`
}
type ControlPathGraph ¶ added in v1.3.0
type ControlPathGraph struct {
Version string `json:"version"`
Summary ControlPathGraphSummary `json:"summary"`
Nodes []ControlPathNode `json:"nodes"`
Edges []ControlPathEdge `json:"edges"`
}
func BuildControlPathGraph ¶ added in v1.3.0
func BuildControlPathGraph(paths []ControlPathInput) *ControlPathGraph
type ControlPathGraphSummary ¶ added in v1.3.0
type ControlPathGraphSummary struct {
TotalNodes int `json:"total_nodes"`
TotalEdges int `json:"total_edges"`
NodeKinds []ControlPathKindRollup `json:"node_kinds"`
EdgeKinds []ControlPathKindRollup `json:"edge_kinds"`
}
type ControlPathInput ¶ added in v1.3.0
type ControlPathInput struct {
PathID string
AgentID string
Org string
Repo string
ToolType string
Location string
Purpose string
PurposeSource string
PurposeConfidence string
Version string
VersionSource string
ConfigFingerprint string
ConfigSource string
ExecutionIdentity string
ExecutionIdentityType string
ExecutionIdentitySource string
ExecutionIdentityStatus string
CredentialAccess bool
CredentialProvenance *agginventory.CredentialProvenance
CredentialAuthority *agginventory.CredentialAuthority
MutableEndpointSemantics []agginventory.MutableEndpointSemantic
GovernanceControls []agginventory.GovernanceControlMapping
MatchedProductionTargets []string
WritePathClasses []string
PullRequestWrite bool
MergeExecute bool
DeployWrite bool
ProductionWrite bool
ApprovalGap bool
AttackPathRefs []string
SourceFindingKeys []string
}
type ControlPathKindRollup ¶ added in v1.3.0
type ControlPathNode ¶ added in v1.3.0
type ControlPathNode struct {
NodeID string `json:"node_id"`
PathID string `json:"path_id"`
Kind string `json:"kind"`
LineageSegment string `json:"lineage_segment,omitempty"`
Org string `json:"org"`
Repo string `json:"repo"`
Label string `json:"label,omitempty"`
ToolType string `json:"tool_type,omitempty"`
Location string `json:"location,omitempty"`
AgentID string `json:"agent_id,omitempty"`
Purpose string `json:"purpose,omitempty"`
PurposeSource string `json:"purpose_source,omitempty"`
PurposeConfidence string `json:"purpose_confidence,omitempty"`
Version string `json:"version,omitempty"`
VersionSource string `json:"version_source,omitempty"`
ConfigFingerprint string `json:"config_fingerprint,omitempty"`
ConfigSource string `json:"config_source,omitempty"`
Status string `json:"status,omitempty"`
CredentialAuthority *agginventory.CredentialAuthority `json:"credential_authority,omitempty"`
MutableEndpointSemantics []agginventory.MutableEndpointSemantic `json:"mutable_endpoint_semantics,omitempty"`
EvidenceRefs []string `json:"evidence_refs,omitempty"`
SourceRefs []string `json:"source_refs,omitempty"`
AttackPathRefs []string `json:"attack_path_refs,omitempty"`
SourceFindingKeys []string `json:"source_finding_keys,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.