audit

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketAuditor

type BucketAuditor struct{}

func New

func New() *BucketAuditor

func (*BucketAuditor) Report

func (auditor *BucketAuditor) Report(bucketName string, accountID string, region string) BucketReport

type BucketReport

type BucketReport struct {
	Name                        string `json:"name"`
	AccountID                   string `json:"accountId"`
	Region                      string `json:"region"`
	ServerSideEncryptionEnabled bool   `json:"serverSideEncryptionEnabled"`
	// EncryptionKeyType           KeyType `json:"-"`
	CustomerManagedKey bool `json:"customerManagedKey"`
	VersioningEnabled  bool `json:"versioningEnabled"`
	MFADelete          bool `json:"mfaDelete"`
	PolicyDenyHTTP     bool `json:"policyDenyHttp"`

	BlockPublicAccess struct {
		BlockPublicAcls       bool `json:"blockPublicAcls"`
		BlockPublicPolicy     bool `json:"blockPublicPolicy"`
		IgnorePublicAcls      bool `json:"ignorePublicAcls"`
		RestrictPublicBuckets bool `json:"restrictPublicBuckets"`
	}
}

type Value added in v0.0.5

type Value []string

Value is needed b/c AWS allows string or []string as value; convert everything to []string to avoid casting.

func (*Value) UnmarshalJSON added in v0.0.5

func (v *Value) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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