Secrets Manager

4 resource kinds. Generated from the operator's CRD schemas.

API Group: aws.konfig.io/v1alpha1

Secret # GA

Secret is the Schema for managing AWS Secrets Manager Secrets.

kubectl get secrets · example on GitHub

Example

# Secret — Secrets Manager
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/secretsmanager.html#secret
apiVersion: aws.konfig.io/v1alpha1
kind: Secret
metadata:
  name: example-secret
  namespace: default
spec:
  description: Managed by konfig-konector
  forceDelete: false
  kmsKeyArn: arn:aws:iam::123456789012:role/example-role
  providerRef:
    name: example-secret
    region: us-east-1
  recoveryWindowInDays: 1
  secretName: example-secret
  secretStringRef:
    key: example
    name: example-secret
  tags:
    environment: dev
    team: platform

Spec

FieldTypeRequiredDescription
descriptionstring—Description is a human-readable description.
forceDeleteboolean—ForceDelete permanently deletes the secret immediately with no recovery window.
kmsKeyArnstring—KMSKeyARN is the KMS key ARN for encrypting the secret.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
recoveryWindowInDaysinteger—RecoveryWindowInDays is the number of days before permanent deletion (7-30).
secretNamestringyesSecretName is the name of the secret.
secretStringRefobject—SecretStringRef is a reference to a Kubernetes Secret containing the secret value.
secretStringRef.keystringyesKey is the key within the Secret whose value to use.
secretStringRef.namestringyesName of the Kubernetes Secret.
tagsmap<string>—Tags are AWS resource tags to apply.

Status

FieldTypeRequiredDescription
arnstring—ARN is the ARN of the secret.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.

SecretRotation # GA

SecretRotation is the Schema for managing Secrets Manager rotation configuration.

kubectl get secretrotations · example on GitHub

Example

# SecretRotation — Secrets Manager
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/secretsmanager.html#secretrotation
apiVersion: aws.konfig.io/v1alpha1
kind: SecretRotation
metadata:
  name: example-secretrotation
  namespace: default
spec:
  automaticallyAfterDays: 1
  providerRef:
    name: example-secretrotation
    region: us-east-1
  rotationLambdaArn: arn:aws:iam::123456789012:role/example-role
  secretRef:
    name: example-secretrotation
    secretArn: arn:aws:iam::123456789012:role/example-role

Spec

FieldTypeRequiredDescription
automaticallyAfterDaysintegeryesAutomaticallyAfterDays is the rotation interval in days.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
rotationLambdaArnstringyesRotationLambdaARN is the ARN of the Lambda function that rotates the secret.
secretRefobjectyesSecretRef references the secret to rotate.
secretRef.namestring—Name of a Secret CR in the same namespace.
secretRef.secretArnstring—SecretARN is a direct AWS Secrets Manager secret ARN or name.

Status

FieldTypeRequiredDescription
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.
rotationEnabledboolean—RotationEnabled indicates whether rotation is enabled.

SecretsManagerResourcePolicy # CLOUD CONTROL · AWS::SecretsManager::ResourcePolicy

SecretsManagerResourcePolicy manages AWS::SecretsManager::ResourcePolicy through the AWS Cloud Control API.

kubectl get secretsmanagerresourcepolicies · example on GitHub

Example

# SecretsManagerResourcePolicy — Secrets Manager
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/secretsmanager.html#secretsmanagerresourcepolicy
apiVersion: aws.konfig.io/v1alpha1
kind: SecretsManagerResourcePolicy
metadata:
  name: example-secretsmanagerresourcepolicy
  namespace: default
spec:
  blockPublicPolicy: false
  providerRef:
    name: example-secretsmanagerresourcepolicy
    region: us-east-1
  secretId: example-id

Spec

FieldTypeRequiredDescription
blockPublicPolicyboolean—Specifies whether to block resource-based policies that allow broad access to the secret.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
resourcePolicyobjectyesA JSON-formatted string for an AWS resource-based policy.
secretIdstringyesThe ARN or name of the secret to attach the resource-based policy.

Status

FieldTypeRequiredDescription
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
idstring—The Arn of the secret.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.

SecretsManagerSecretTargetAttachment # CLOUD CONTROL · AWS::SecretsManager::SecretTargetAttachment

SecretsManagerSecretTargetAttachment manages AWS::SecretsManager::SecretTargetAttachment through the AWS Cloud Control API.

kubectl get secretsmanagersecrettargetattachments · example on GitHub

Example

# SecretsManagerSecretTargetAttachment — Secrets Manager
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/secretsmanager.html#secretsmanagersecrettargetattachment
apiVersion: aws.konfig.io/v1alpha1
kind: SecretsManagerSecretTargetAttachment
metadata:
  name: example-secretsmanagersecrettargetattachment
  namespace: default
spec:
  providerRef:
    name: example-secretsmanagersecrettargetattachment
    region: us-east-1
  secretId: example-id
  targetId: example-id
  targetType: example

Spec

FieldTypeRequiredDescription
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
secretIdstringyesCreate-only in AWS: changing it requires replacing the resource.
targetIdstringyes
targetTypestringyes

Status

FieldTypeRequiredDescription
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
idstring—Read-only: reported by AWS after creation.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.