github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/aws/eks/eks.go (about)

     1  package eks
     2  
     3  import (
     4  	defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types"
     5  )
     6  
     7  type EKS struct {
     8  	Clusters []Cluster
     9  }
    10  
    11  type Cluster struct {
    12  	Metadata            defsecTypes.Metadata
    13  	Logging             Logging
    14  	Encryption          Encryption
    15  	PublicAccessEnabled defsecTypes.BoolValue
    16  	PublicAccessCIDRs   []defsecTypes.StringValue
    17  }
    18  
    19  type Logging struct {
    20  	Metadata          defsecTypes.Metadata
    21  	API               defsecTypes.BoolValue
    22  	Audit             defsecTypes.BoolValue
    23  	Authenticator     defsecTypes.BoolValue
    24  	ControllerManager defsecTypes.BoolValue
    25  	Scheduler         defsecTypes.BoolValue
    26  }
    27  
    28  type Encryption struct {
    29  	Metadata defsecTypes.Metadata
    30  	Secrets  defsecTypes.BoolValue
    31  	KMSKeyID defsecTypes.StringValue
    32  }