iam

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWildcardAllowed

func IsWildcardAllowed(actions ...string) (bool, string)

Types

type AccessKey added in v0.0.2

type AccessKey struct {
	Metadata     defsecTypes.Metadata
	AccessKeyId  defsecTypes.StringValue
	Active       defsecTypes.BoolValue
	CreationDate defsecTypes.TimeValue
	LastAccess   defsecTypes.TimeValue
}

type Document

type Document struct {
	Metadata defsecTypes.Metadata
	Parsed   iamgo.Document
	IsOffset bool
	HasRefs  bool
}

func (Document) MetadataFromIamGo

func (d Document) MetadataFromIamGo(r ...iamgo.Range) defsecTypes.Metadata

func (Document) ToRego

func (d Document) ToRego() interface{}

type Group

type Group struct {
	Metadata defsecTypes.Metadata
	Name     defsecTypes.StringValue
	Users    []User
	Policies []Policy
}

type IAM

type IAM struct {
	PasswordPolicy     PasswordPolicy
	Policies           []Policy
	Groups             []Group
	Users              []User
	Roles              []Role
	ServerCertificates []ServerCertificate
}

type MFADevice added in v0.0.2

type MFADevice struct {
	Metadata  defsecTypes.Metadata
	IsVirtual defsecTypes.BoolValue
}

type PasswordPolicy

type PasswordPolicy struct {
	Metadata             defsecTypes.Metadata
	ReusePreventionCount defsecTypes.IntValue
	RequireLowercase     defsecTypes.BoolValue
	RequireUppercase     defsecTypes.BoolValue
	RequireNumbers       defsecTypes.BoolValue
	RequireSymbols       defsecTypes.BoolValue
	MaxAgeDays           defsecTypes.IntValue
	MinimumLength        defsecTypes.IntValue
}

type Policy

type Policy struct {
	Metadata defsecTypes.Metadata
	Name     defsecTypes.StringValue
	Document Document
	Builtin  defsecTypes.BoolValue
}

type Role

type Role struct {
	Metadata defsecTypes.Metadata
	Name     defsecTypes.StringValue
	Policies []Policy
}

type ServerCertificate added in v0.0.2

type ServerCertificate struct {
	Metadata   defsecTypes.Metadata
	Expiration defsecTypes.TimeValue
}

type User

type User struct {
	Metadata   defsecTypes.Metadata
	Name       defsecTypes.StringValue
	Groups     []Group
	Policies   []Policy
	AccessKeys []AccessKey
	MFADevices []MFADevice
	LastAccess defsecTypes.TimeValue
}

func (*User) HasLoggedIn added in v0.0.2

func (u *User) HasLoggedIn() bool

Jump to

Keyboard shortcuts

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