sysdig

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaIDKey                     = "id"
	SchemaTeamIDKey                 = "team_id"
	SchemaPoliciesKey               = "policies"
	SchemaPolicyIDsKey              = "policy_ids"
	SchemaAuthorsKey                = "authors"
	SchemaAuthorKey                 = "author"
	SchemaNameKey                   = "name"
	SchemaEnabledKey                = "enabled"
	SchemaStatusKey                 = "status"
	SchemaTypeKey                   = "type"
	SchemaKindKey                   = "kind"
	SchemaDescriptionKey            = "description"
	SchemaVersionKey                = "version"
	SchemaLinkKey                   = "link"
	SchemaGroupKey                  = "group"
	SchemaLastModifiedBy            = "last_modified_by"
	SchemaLastUpdated               = "last_updated"
	SchemaExpirationDateKey         = "expiration_date"
	SchemaPublishedDateKey          = "published_date"
	SchemaCreatedDateKey            = "date_created"
	SchemaMinKubeVersionKey         = "min_kube_version"
	SchemaMaxKubeVersionKey         = "max_kube_version"
	SchemaIsCustomKey               = "is_custom"
	SchemaIsActiveKey               = "is_active"
	SchemaPlatformKey               = "platform"
	SchemaZonesKey                  = "zones"
	SchemaZonesIDsKey               = "zone_ids"
	SchemaAllZones                  = "all_zones"
	SchemaScopeKey                  = "scope"
	SchemaScopesKey                 = "scopes"
	SchemaTargetTypeKey             = "target_type"
	SchemaRoleKey                   = "role"
	SchemaSystemRoleKey             = "system_role"
	SchemaRulesKey                  = "rules"
	SchemaApiKeyKey                 = "api_key"
	SchemaPermissionsKey            = "permissions"
	SchemaMonitorPermKey            = "monitor_permissions"
	SchemaSecurePermKey             = "secure_permissions"
	SchemaRequestedPermKey          = "requested_permissions"
	SchemaEnrichedPermKey           = "enriched_permissions"
	SchemaSecureThreatDetection     = "secure_threat_detection"
	SchemaSecureConfigPosture       = "secure_config_posture"
	SchemaSecureIdentityEntitlement = "secure_identity_entitlement"
	SchemaSecureAgentlessScanning   = "secure_agentless_scanning"
	SchemaMonitorCloudMetrics       = "monitor_cloud_metrics"
	SchemaType                      = "type"
	SchemaInstance                  = "instance"
	SchemaCloudConnectorMetadata    = "cloud_connector_metadata"
	SchemaTrustedRoleMetadata       = "trusted_role_metadata"
	SchemaEventBridgeMetadata       = "event_bridge_metadata"
	SchemaServicePrincipalMetadata  = "service_principal_metadata"
	SchemaWebhookDatasourceMetadata = "webhook_datasource_metadata"
	SchemaCryptoKeyMetadata         = "crypto_key_metadata"
	SchemaCloudLogsMetadata         = "cloud_logs_metadata"
	SchemaEnabled                   = "enabled"
	SchemaComponents                = "components"
	SchemaComponent                 = "component"
	SchemaCloudProviderId           = "provider_id"
	SchemaCloudProviderType         = "provider_type"
	SchemaFeature                   = "feature"
	SchemaManagementAccountId       = "management_account_id"
	SchemaOrganizationIDKey         = "organization_id"
	SchemaOrganizationalUnitIds     = "organizational_unit_ids"
	SchemaCloudProviderTenantId     = "provider_tenant_id"
	SchemaCloudProviderAlias        = "provider_alias"
	SchemaAccountId                 = "account_id"
	SchemaFeatureFlags              = "flags"
)
View Source
const (
	NOTIFICATION_CHANNEL_TYPE_EMAIL                    = "EMAIL"
	NOTIFICATION_CHANNEL_TYPE_AMAZON_SNS               = "SNS"
	NOTIFICATION_CHANNEL_TYPE_OPSGENIE                 = "OPSGENIE"
	NOTIFICATION_CHANNEL_TYPE_VICTOROPS                = "VICTOROPS"
	NOTIFICATION_CHANNEL_TYPE_WEBHOOK                  = "WEBHOOK"
	NOTIFICATION_CHANNEL_TYPE_SLACK                    = "SLACK"
	NOTIFICATION_CHANNEL_TYPE_PAGERDUTY                = "PAGER_DUTY"
	NOTIFICATION_CHANNEL_TYPE_MS_TEAMS                 = "MS_TEAMS"
	NOTIFICATION_CHANNEL_TYPE_GCHAT                    = "GCHAT"
	NOTIFICATION_CHANNEL_TYPE_PROMETHEUS_ALERT_MANAGER = "PROMETHEUS_ALERT_MANAGER"
	NOTIFICATION_CHANNEL_TYPE_TEAM_EMAIL               = "TEAM_EMAIL"
	NOTIFICATION_CHANNEL_TYPE_CUSTOM_WEBHOOK           = "POWER_WEBHOOK"
	NOTIFICATION_CHANNEL_TYPE_IBM_EVENT_NOTIFICATION   = "IBM_EVENT_NOTIFICATIONS"
	NOTIFICATION_CHANNEL_TYPE_IBM_FUNCTION             = "IBM_FUNCTION"

	NOTIFICATION_CHANNEL_TYPE_SLACK_TEMPLATE_KEY_V1    = "SLACK_SECURE_EVENT_NOTIFICATION_TEMPLATE_METADATA_v1"
	NOTIFICATION_CHANNEL_TYPE_SLACK_TEMPLATE_KEY_V2    = "SLACK_SECURE_EVENT_NOTIFICATION_TEMPLATE_METADATA_v2"
	NOTIFICATION_CHANNEL_TYPE_MS_TEAMS_TEMPLATE_KEY_V1 = "MS_TEAMS_SECURE_EVENT_NOTIFICATION_TEMPLATE_METADATA_v1"
	NOTIFICATION_CHANNEL_TYPE_MS_TEAMS_TEMPLATE_KEY_V2 = "MS_TEAMS_SECURE_EVENT_NOTIFICATION_TEMPLATE_METADATA_v2"

	NOTIFICATION_CHANNEL_SECURE_EVENT_NOTIFICATION_CONTENT_SECTION = "SECURE_EVENT_NOTIFICATION_CONTENT"
)
View Source
const AlertV2CaptureFilenameRegexp = `.*?\.scap`

Variables

This section is empty.

Functions

func AlertLinkV2TypeValues added in v1.6.0

func AlertLinkV2TypeValues() []string

func AlertV2SeverityValues added in v1.6.0

func AlertV2SeverityValues() []string

func BoolComputedSchema added in v1.23.0

func BoolComputedSchema() *schema.Schema

func BoolSchema added in v1.23.0

func BoolSchema() *schema.Schema

func CaptureActionComputedSchema added in v1.23.0

func CaptureActionComputedSchema() *schema.Schema

func CaptureActionSchema added in v1.23.0

func CaptureActionSchema() *schema.Schema

func ContainerActionComputedSchema added in v1.23.0

func ContainerActionComputedSchema() *schema.Schema

func ContainerActionSchema added in v1.23.0

func ContainerActionSchema() *schema.Schema

func DescriptionComputedSchema added in v1.23.0

func DescriptionComputedSchema() *schema.Schema

func DescriptionSchema added in v1.23.0

func DescriptionSchema() *schema.Schema

func EnabledComputedSchema added in v1.23.0

func EnabledComputedSchema() *schema.Schema

func EnabledSchema added in v1.23.0

func EnabledSchema() *schema.Schema

func ExceptionsComputedSchema added in v1.23.0

func ExceptionsComputedSchema() *schema.Schema

func ExceptionsSchema added in v1.23.0

func ExceptionsSchema() *schema.Schema

func GetValueFromTemplate added in v0.5.38

func GetValueFromTemplate(what *gabs.Container) (string, *gabs.Container)

GetValueFromTemplate can be used to obtain string value from JSON object

func HashesComputedSchema added in v1.23.0

func HashesComputedSchema() *schema.Schema

func HashesSchema added in v1.23.0

func HashesSchema() *schema.Schema

func MLRuleThresholdAndSeverityComputedSchema added in v1.23.0

func MLRuleThresholdAndSeverityComputedSchema() *schema.Schema

func MLRuleThresholdAndSeveritySchema added in v1.23.0

func MLRuleThresholdAndSeveritySchema() *schema.Schema

func NameSchema added in v1.23.0

func NameSchema() *schema.Schema

func NotificationChannelsComputedSchema added in v1.23.0

func NotificationChannelsComputedSchema() *schema.Schema

func NotificationChannelsSchema added in v1.23.0

func NotificationChannelsSchema() *schema.Schema

func PreventActionComputedSchema added in v1.23.0

func PreventActionComputedSchema() *schema.Schema

func PreventActionSchema added in v1.23.0

func PreventActionSchema() *schema.Schema

func Provider

func Provider() *schema.Provider

Used by tests to get the provider

func ReadOnlyIntSchema added in v1.23.0

func ReadOnlyIntSchema() *schema.Schema

func ReadOnlyStringSchema added in v1.23.0

func ReadOnlyStringSchema() *schema.Schema

func Reduce added in v1.23.0

func Reduce[T Target, S Source](target T, source S, reducers ...func(T, S) error) error

func Reducer added in v1.23.0

func Reducer[T Target, S Source](reducers ...func(T, S) error) func(T, S) error

func RuleNamesSchema added in v1.23.0

func RuleNamesSchema() *schema.Schema

Can be omitted for composite policies

func RulesSchema added in v1.23.0

func RulesSchema() *schema.Schema

Can be omitted for Composite policies

func RunbookComputedSchema added in v1.23.0

func RunbookComputedSchema() *schema.Schema

func RunbookSchema added in v1.23.0

func RunbookSchema() *schema.Schema

func ScopeComputedSchema added in v1.23.0

func ScopeComputedSchema() *schema.Schema

func ScopeSchema added in v1.23.0

func ScopeSchema() *schema.Schema

func SeverityComputedSchema added in v1.23.0

func SeverityComputedSchema() *schema.Schema

func SeveritySchema added in v1.23.0

func SeveritySchema() *schema.Schema

func TagsSchema added in v1.23.0

func TagsSchema() *schema.Schema

Tags are always set automatically by Sysdig

func VersionSchema added in v1.23.0

func VersionSchema() *schema.Schema

Types

type ClientType added in v1.1.0

type ClientType int
const (
	SysdigMonitor ClientType = iota
	SysdigSecure
	IBMMonitor
	IBMSecure
)

func (ClientType) String added in v1.4.0

func (i ClientType) String() string

type KiltRecipeConfig added in v0.5.22

type KiltRecipeConfig struct {
	SysdigAccessKey  string `json:"sysdig_access_key"`
	AgentImage       string `json:"agent_image"`
	OrchestratorHost string `json:"orchestrator_host"`
	OrchestratorPort string `json:"orchestrator_port"`
	CollectorHost    string `json:"collector_host"`
	CollectorPort    string `json:"collector_port"`
	SysdigLogging    string `json:"sysdig_logging"`
	Sidecar          string `json:"sidecar"`
	Priority         string `json:"priority"`
}

type Source added in v1.23.0

type Source interface {
	*schema.ResourceData | v2.PolicyRulesComposite
}

type SysdigClients

type SysdigClients interface {
	io.Closer
	GetClientType() ClientType
	GetSecureEndpoint() (string, error)
	GetSecureApiToken() (string, error)

	Configure(context.Context, *schema.ResourceData)
	AddCleanupHook(func(context.Context, SysdigClients) error)
	// contains filtered or unexported methods
}

func NewSysdigClients added in v1.14.0

func NewSysdigClients() SysdigClients

type SysdigProvider added in v1.14.0

type SysdigProvider struct {
	SysdigClient SysdigClients
}

func (*SysdigProvider) Provider added in v1.14.0

func (p *SysdigProvider) Provider() *schema.Provider

type Target added in v1.23.0

type Target interface {
	*schema.ResourceData | *v2.PolicyRulesComposite
}

Source Files

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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