Documentation
¶
Index ¶
- Variables
- func AvailableKinds() []string
- func FinalizeArtifact(a *Artifact)
- func SuggestKind(path string) (string, error)
- type Artifact
- type Auth0Members
- type Config
- type FirewallRule
- type FirewallRuleMeta
- type GCPMemberCache
- type GhostStaff
- type GithubOrgMembers
- type GoogleCloudProjectFirewall
- type GoogleCloudProjectIAM
- type GoogleWorkspaceUserAudit
- type GoogleWorkspaceUsers
- type Group
- type KolideUsers
- type Membership
- type OnePasswordTeam
- type Processor
- type ProcessorDescription
- type SecureframePersonnel
- type SlackMembers
- type Source
- type User
- type VercelMembers
- type WebflowMembers
Constants ¶
This section is empty.
Variables ¶
var SourceDateFormat = "2006-01-02"
Functions ¶
func AvailableKinds ¶
func AvailableKinds() []string
func FinalizeArtifact ¶
func FinalizeArtifact(a *Artifact)
FinalizeArtifact does some final manipulation on an artifact for consistency.
func SuggestKind ¶
Types ¶
type Artifact ¶
type Artifact struct { Metadata *Source UserCount int `yaml:"user_count,omitempty"` Users []User `yaml:"users,omitempty"` Ingress []FirewallRuleMeta `yaml:"ingress,omitempty"` Egress []FirewallRuleMeta `yaml:"egress,omitempty"` BotCount int `yaml:"bot_count,omitempty"` Bots []User `yaml:"bots,omitempty"` GroupCount int `yaml:"group_count,omitempty"` Groups []Group `yaml:"groups,omitempty"` OrgCount int `yaml:"org_count,omitempty"` Orgs []Group `yaml:"orgs,omitempty"` RoleCount int `yaml:"role_count,omitempty"` Roles map[string][]string `yaml:"roles,omitempty"` PermissionCount int `yaml:"permission_count,omitempty"` Permissions map[string][]string `yaml:"permissions,omitempty"` }
type Auth0Members ¶
type Auth0Members struct{}
Auth0Members parses the CSV file generated by the OnePassword Team page.
func (*Auth0Members) Description ¶
func (p *Auth0Members) Description() ProcessorDescription
type FirewallRule ¶
type FirewallRule struct { Allow string `yaml:"allow,omitempty"` Deny string `yaml:"deny,omitempty"` Network string `yaml:"net,omitempty"` Sources string `yaml:"sources,omitempty"` Destinations string `yaml:"destinations,omitempty"` SourceTags string `yaml:"source_tags,omitempty"` TargetTags string `yaml:"target_tags,omitempty"` }
FirewallRule
type FirewallRuleMeta ¶
type FirewallRuleMeta struct { Name string Description string `yaml:"description,omitempty"` Logging bool `yaml:"logging,omitempty"` Priority int `yaml:"priority,omitempty"` Rule FirewallRule }
type GCPMemberCache ¶
type GCPMemberCache = map[string][]gcpGroupMembership
func NewGCPMemberCache ¶
func NewGCPMemberCache() GCPMemberCache
NewGCPMemberCache returns a populated structure to be used for caching membership lookups.
type GhostStaff ¶
type GhostStaff struct{}
GhostStaff parses the HTML output of the Ghost Staff page.
func (*GhostStaff) Description ¶
func (p *GhostStaff) Description() ProcessorDescription
type GithubOrgMembers ¶
type GithubOrgMembers struct{}
GithubOrgMembers parses the CSV file generated by the Github Members page.
func (*GithubOrgMembers) Description ¶
func (p *GithubOrgMembers) Description() ProcessorDescription
type GoogleCloudProjectFirewall ¶
type GoogleCloudProjectFirewall struct{}
GoogleCloudProjectFirewall uses gcloud to generate a list of firewalls
func (*GoogleCloudProjectFirewall) Description ¶
func (p *GoogleCloudProjectFirewall) Description() ProcessorDescription
type GoogleCloudProjectIAM ¶
type GoogleCloudProjectIAM struct{}
GoogleCloudProjectIAM uses gcloud to generate a list of GCP members.
func (*GoogleCloudProjectIAM) Description ¶
func (p *GoogleCloudProjectIAM) Description() ProcessorDescription
type GoogleWorkspaceUserAudit ¶
type GoogleWorkspaceUserAudit struct{}
GoogleWorkspaceUserAudit parses the CSV file generated by the Google User Audit page.
func (*GoogleWorkspaceUserAudit) Description ¶
func (p *GoogleWorkspaceUserAudit) Description() ProcessorDescription
type GoogleWorkspaceUsers ¶
type GoogleWorkspaceUsers struct{}
GoogleWorkspaceUsers parses the CSV file generated by the users page.
func (*GoogleWorkspaceUsers) Description ¶
func (p *GoogleWorkspaceUsers) Description() ProcessorDescription
type KolideUsers ¶
type KolideUsers struct{}
KolideUsers parses the CSV file generated by the Kolide Users page.
func (*KolideUsers) Description ¶
func (p *KolideUsers) Description() ProcessorDescription
type Membership ¶
type OnePasswordTeam ¶
type OnePasswordTeam struct{}
OnePasswordTeam parses the CSV file generated by the OnePassword Team page.
func (*OnePasswordTeam) Description ¶
func (p *OnePasswordTeam) Description() ProcessorDescription
type Processor ¶
type Processor interface { Description() ProcessorDescription Process(c Config) (*Artifact, error) }
type ProcessorDescription ¶
type SecureframePersonnel ¶
type SecureframePersonnel struct{}
SecureframePersonnel parses the CSV file generated by the Secureframe Personnel page.
func (*SecureframePersonnel) Description ¶
func (p *SecureframePersonnel) Description() ProcessorDescription
type SlackMembers ¶
type SlackMembers struct{}
SlackMembers parses the HTML output of the Slack Members page.
func (*SlackMembers) Description ¶
func (p *SlackMembers) Description() ProcessorDescription
type Source ¶
type User ¶
type User struct { Account string Name string `yaml:",omitempty"` Role string `yaml:",omitempty"` Permissions []string `yaml:",omitempty"` Status string `yaml:",omitempty"` Groups []Membership `yaml:",omitempty"` Org string `yaml:",omitempty"` TwoFactorDisabled bool `yaml:"two_factor_disabled,omitempty"` SSO string `yaml:"sso,omitempty"` }
type VercelMembers ¶
type VercelMembers struct{}
VercelMembers parses the HTML output of the Vercel Members page.
func (*VercelMembers) Description ¶
func (p *VercelMembers) Description() ProcessorDescription
type WebflowMembers ¶
type WebflowMembers struct{}
WebflowMembers parses the CSV file generated by the OnePassword Team page.
func (*WebflowMembers) Description ¶
func (p *WebflowMembers) Description() ProcessorDescription