Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultPolicyVersion = "guard-policy-v1" DefaultRulePackID = "guard-default" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Version string `json:"version"`
Profile Profile `json:"profile"`
RulePack string `json:"rule_pack"`
NonBypassableRules *bool `json:"non_bypassable_rules,omitempty"`
}
func DefaultConfig ¶
func DefaultConfig() Config
type Result ¶
type Result struct {
Decision Decision `json:"decision"`
Stage Stage `json:"stage"`
Matched bool `json:"matched"`
RuleID string `json:"rule_id,omitempty"`
Category RuleCategory `json:"category,omitempty"`
Profile Profile `json:"profile"`
PolicyVersion string `json:"policy_version"`
RulePack string `json:"rule_pack"`
ReasonCode string `json:"reason_code"`
Reason string `json:"reason"`
NonBypassable bool `json:"non_bypassable"`
MatchedSignals []string `json:"matched_signals,omitempty"`
}
type RuleCategory ¶
type RuleCategory string
const ( CategoryCredentialAccess RuleCategory = "credential_access" CategoryDirectInfraAPIWithCredentials RuleCategory = "direct_infra_api_with_credentials" CategoryDestructivePersistentResource RuleCategory = "destructive_persistent_resource" CategoryProductionMutation RuleCategory = "production_mutation" CategoryUnknownHighRiskCommand RuleCategory = "unknown_high_risk_command" CategoryManagedTool RuleCategory = "managed_tool" CategorySourceControlWrite RuleCategory = "source_control_write" CategoryProviderAPICall RuleCategory = "provider_api_call" )
type RulePack ¶
func DefaultRulePack ¶
func DefaultRulePack() RulePack
Click to show internal directories.
Click to hide internal directories.