diff --git a/operators/ack-kms-controller/0.1.4/bundle.Dockerfile b/operators/ack-kms-controller/0.1.4/bundle.Dockerfile new file mode 100644 index 00000000000..a88e052007f --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/bundle.Dockerfile @@ -0,0 +1,21 @@ +FROM scratch + +# Core bundle labels. +LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1 +LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/ +LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/ +LABEL operators.operatorframework.io.bundle.package.v1=ack-kms-controller +LABEL operators.operatorframework.io.bundle.channels.v1=alpha +LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha +LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.19.0+git +LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1 +LABEL operators.operatorframework.io.metrics.project_layout=unknown + +# Labels for testing. +LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1 +LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/ + +# Copy files to locations specified by labels. +COPY bundle/manifests /manifests/ +COPY bundle/metadata /metadata/ +COPY bundle/tests/scorecard /tests/scorecard/ diff --git a/operators/ack-kms-controller/0.1.4/manifests/ack-kms-controller.clusterserviceversion.yaml b/operators/ack-kms-controller/0.1.4/manifests/ack-kms-controller.clusterserviceversion.yaml new file mode 100644 index 00000000000..0bb2f1e9fe4 --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/manifests/ack-kms-controller.clusterserviceversion.yaml @@ -0,0 +1,301 @@ +apiVersion: operators.coreos.com/v1alpha1 +kind: ClusterServiceVersion +metadata: + annotations: + alm-examples: |- + [ + { + "apiVersion": "kms.services.k8s.aws/v1alpha1", + "kind": "Alias", + "metadata": { + "name": "example" + }, + "spec": {} + }, + { + "apiVersion": "kms.services.k8s.aws/v1alpha1", + "kind": "Grant", + "metadata": { + "name": "example" + }, + "spec": {} + }, + { + "apiVersion": "kms.services.k8s.aws/v1alpha1", + "kind": "Key", + "metadata": { + "name": "example" + }, + "spec": {} + } + ] + capabilities: Basic Install + categories: Cloud Provider + certified: "false" + containerImage: public.ecr.aws/aws-controllers-k8s/kms-controller:v0.1.4 + createdAt: "2022-12-11 15:11:34" + description: AWS KMS controller is a service controller for managing KMS resources + in Kubernetes + operatorframework.io/suggested-namespace: ack-system + operators.operatorframework.io/builder: operator-sdk-v1.19.0+git + operators.operatorframework.io/project_layout: unknown + repository: https://github.com/aws-controllers-k8s + support: Community + name: ack-kms-controller.v0.1.4 + namespace: placeholder +spec: + apiservicedefinitions: {} + customresourcedefinitions: + owned: + - description: Alias represents the state of an AWS kms Alias resource. + displayName: Alias + kind: Alias + name: aliases.kms.services.k8s.aws + version: v1alpha1 + - description: Grant represents the state of an AWS kms Grant resource. + displayName: Grant + kind: Grant + name: grants.kms.services.k8s.aws + version: v1alpha1 + - description: Key represents the state of an AWS kms Key resource. + displayName: Key + kind: Key + name: keys.kms.services.k8s.aws + version: v1alpha1 + description: |- + Manage Key Management Service (KMS) resources in AWS from within your Kubernetes cluster. + + **About Amazon KMS** + + AWS Key Management Service (AWS KMS) is a managed service that makes it easy for you to create and control the cryptographic keys that are used to protect your data. AWS KMS uses hardware security modules (HSM) to protect and validate your AWS KMS keys under the [FIPS 140-2 Cryptographic Module Validation Program](https://csrc.nist.gov/projects/cryptographic-module-validation-program/Certificate/3139), except in the China (Beijing) and China (Ningxia) Regions. + + **About the AWS Controllers for Kubernetes** + + This controller is a component of the [AWS Controller for Kubernetes](https://github.com/aws/aws-controllers-k8s) project. + + **Pre-Installation Steps** + + Please follow the following link: [Red Hat OpenShift](https://aws-controllers-k8s.github.io/community/docs/user-docs/openshift/) + displayName: AWS Controllers for Kubernetes - Amazon KMS + icon: + - base64data: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMSwgU1ZHIEV4cG9ydCBQbHVnL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wLjJjLTIuNywyLjMtNS4zLDEuMS00LjEtMS45QzI4Mi41LDE1NS43LDI5MS40LDEzMy40LDI4Ny4yLDEyOC4xeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPg== + mediatype: image/svg+xml + install: + spec: + clusterPermissions: + - rules: + - apiGroups: + - "" + resources: + - configmaps + verbs: + - get + - list + - patch + - watch + - apiGroups: + - "" + resources: + - namespaces + verbs: + - get + - list + - watch + - apiGroups: + - "" + resources: + - secrets + verbs: + - get + - list + - patch + - watch + - apiGroups: + - kms.services.k8s.aws + resources: + - aliases + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - kms.services.k8s.aws + resources: + - aliases/status + verbs: + - get + - patch + - update + - apiGroups: + - kms.services.k8s.aws + resources: + - grants + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - kms.services.k8s.aws + resources: + - grants/status + verbs: + - get + - patch + - update + - apiGroups: + - kms.services.k8s.aws + resources: + - keys + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - kms.services.k8s.aws + resources: + - keys/status + verbs: + - get + - patch + - update + - apiGroups: + - services.k8s.aws + resources: + - adoptedresources + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - services.k8s.aws + resources: + - adoptedresources/status + verbs: + - get + - patch + - update + - apiGroups: + - services.k8s.aws + resources: + - fieldexports + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - services.k8s.aws + resources: + - fieldexports/status + verbs: + - get + - patch + - update + serviceAccountName: ack-kms-controller + deployments: + - label: + control-plane: controller + name: ack-kms-controller + spec: + replicas: 1 + selector: + matchLabels: + control-plane: controller + strategy: {} + template: + metadata: + labels: + control-plane: controller + spec: + containers: + - args: + - --aws-region + - $(AWS_REGION) + - --aws-endpoint-url + - $(AWS_ENDPOINT_URL) + - --enable-development-logging + - $(ACK_ENABLE_DEVELOPMENT_LOGGING) + - --log-level + - $(ACK_LOG_LEVEL) + - --resource-tags + - $(ACK_RESOURCE_TAGS) + - --watch-namespace + - $(ACK_WATCH_NAMESPACE) + command: + - ./bin/controller + env: + - name: ACK_SYSTEM_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + envFrom: + - configMapRef: + name: ack-kms-user-config + optional: false + - secretRef: + name: ack-kms-user-secrets + optional: true + image: public.ecr.aws/aws-controllers-k8s/kms-controller:v0.1.4 + name: controller + ports: + - containerPort: 8080 + name: http + resources: + limits: + cpu: 100m + memory: 300Mi + requests: + cpu: 100m + memory: 200Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + privileged: false + runAsNonRoot: true + serviceAccountName: ack-kms-controller + terminationGracePeriodSeconds: 10 + strategy: deployment + installModes: + - supported: true + type: AllNamespaces + keywords: + - kms + - aws + - amazon + - ack + links: + - name: AWS Controllers for Kubernetes + url: https://github.com/aws-controllers-k8s/community + - name: Documentation + url: https://aws-controllers-k8s.github.io/community/ + - name: Amazon KMS Developer Resources + url: https://aws.amazon.com/kms/resources/ + maintainers: + - email: ack-maintainers@amazon.com + name: kms maintainer team + maturity: alpha + provider: + name: Amazon, Inc. + url: https://aws.amazon.com + version: 0.1.4 diff --git a/operators/ack-kms-controller/0.1.4/manifests/ack-kms-metrics-service_v1_service.yaml b/operators/ack-kms-controller/0.1.4/manifests/ack-kms-metrics-service_v1_service.yaml new file mode 100644 index 00000000000..9151a4e93f0 --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/manifests/ack-kms-metrics-service_v1_service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + creationTimestamp: null + name: ack-kms-metrics-service +spec: + ports: + - name: metricsport + port: 8080 + protocol: TCP + targetPort: http + selector: + control-plane: controller + type: NodePort +status: + loadBalancer: {} diff --git a/operators/ack-kms-controller/0.1.4/manifests/ack-kms-reader_rbac.authorization.k8s.io_v1_role.yaml b/operators/ack-kms-controller/0.1.4/manifests/ack-kms-reader_rbac.authorization.k8s.io_v1_role.yaml new file mode 100644 index 00000000000..0d1a4de4d40 --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/manifests/ack-kms-reader_rbac.authorization.k8s.io_v1_role.yaml @@ -0,0 +1,16 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: ack-kms-reader +rules: +- apiGroups: + - kms.services.k8s.aws + resources: + - aliases + - grants + - keys + verbs: + - get + - list + - watch diff --git a/operators/ack-kms-controller/0.1.4/manifests/ack-kms-writer_rbac.authorization.k8s.io_v1_role.yaml b/operators/ack-kms-controller/0.1.4/manifests/ack-kms-writer_rbac.authorization.k8s.io_v1_role.yaml new file mode 100644 index 00000000000..d0b65fd9820 --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/manifests/ack-kms-writer_rbac.authorization.k8s.io_v1_role.yaml @@ -0,0 +1,30 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + creationTimestamp: null + name: ack-kms-writer +rules: +- apiGroups: + - kms.services.k8s.aws + resources: + - aliases + - grants + - keys + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - kms.services.k8s.aws + resources: + - aliases + - grants + - keys + verbs: + - get + - patch + - update diff --git a/operators/ack-kms-controller/0.1.4/manifests/kms.services.k8s.aws_aliases.yaml b/operators/ack-kms-controller/0.1.4/manifests/kms.services.k8s.aws_aliases.yaml new file mode 100644 index 00000000000..c8457a99850 --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/manifests/kms.services.k8s.aws_aliases.yaml @@ -0,0 +1,149 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.9.2 + creationTimestamp: null + name: aliases.kms.services.k8s.aws +spec: + group: kms.services.k8s.aws + names: + kind: Alias + listKind: AliasList + plural: aliases + singular: alias + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: Alias is the Schema for the Aliases API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: AliasSpec defines the desired state of Alias. + properties: + name: + description: "Specifies the alias name. This value must begin with + alias/ followed by a name, such as alias/ExampleAlias. \n The AliasName + value must be string of 1-256 characters. It can contain only alphanumeric + characters, forward slashes (/), underscores (_), and dashes (-). + The alias name cannot begin with alias/aws/. The alias/aws/ prefix + is reserved for Amazon Web Services managed keys (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk)." + type: string + targetKeyID: + description: "Associates the alias with the specified customer managed + key (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk). + The KMS key must be in the same Amazon Web Services Region. \n A + valid key ID is required. If you supply a null or empty string value, + this operation returns an error. \n For help finding the key ID + and ARN, see Finding the Key ID and ARN (https://docs.aws.amazon.com/kms/latest/developerguide/viewing-keys.html#find-cmk-id-arn) + in the Key Management Service Developer Guide . \n Specify the key + ID or key ARN of the KMS key. \n For example: \n * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab + \n * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + \n To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey." + type: string + targetKeyRef: + description: 'AWSResourceReferenceWrapper provides a wrapper around + *AWSResourceReference type to provide more user friendly syntax + for references using ''from'' field Ex: APIIDRef: from: name: my-api' + properties: + from: + description: AWSResourceReference provides all the values necessary + to reference another k8s resource for finding the identifier(Id/ARN/Name) + properties: + name: + type: string + type: object + type: object + required: + - name + type: object + status: + description: AliasStatus defines the observed state of Alias + properties: + ackResourceMetadata: + description: All CRs managed by ACK have a common `Status.ACKResourceMetadata` + member that is used to contain resource sync state, account ownership, + constructed ARN for the resource + properties: + arn: + description: 'ARN is the Amazon Resource Name for the resource. + This is a globally-unique identifier and is set only by the + ACK service controller once the controller has orchestrated + the creation of the resource OR when it has verified that an + "adopted" resource (a resource where the ARN annotation was + set by the Kubernetes user on the CR) exists and matches the + supplied CR''s Spec field values. TODO(vijat@): Find a better + strategy for resources that do not have ARN in CreateOutputResponse + https://github.com/aws/aws-controllers-k8s/issues/270' + type: string + ownerAccountID: + description: OwnerAccountID is the AWS Account ID of the account + that owns the backend AWS service API resource. + type: string + region: + description: Region is the AWS region in which the resource exists + or will exist. + type: string + required: + - ownerAccountID + - region + type: object + conditions: + description: All CRS managed by ACK have a common `Status.Conditions` + member that contains a collection of `ackv1alpha1.Condition` objects + that describe the various terminal states of the CR and its backend + AWS service API resource + items: + description: Condition is the common struct used by all CRDs managed + by ACK service controllers to indicate terminal states of the + CR and its backend AWS service API resource + properties: + lastTransitionTime: + description: Last time the condition transitioned from one status + to another. + format: date-time + type: string + message: + description: A human readable message indicating details about + the transition. + type: string + reason: + description: The reason for the condition's last transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type is the type of the Condition + type: string + required: + - status + - type + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: null + storedVersions: null diff --git a/operators/ack-kms-controller/0.1.4/manifests/kms.services.k8s.aws_grants.yaml b/operators/ack-kms-controller/0.1.4/manifests/kms.services.k8s.aws_grants.yaml new file mode 100644 index 00000000000..a952171fe06 --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/manifests/kms.services.k8s.aws_grants.yaml @@ -0,0 +1,245 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.9.2 + creationTimestamp: null + name: grants.kms.services.k8s.aws +spec: + group: kms.services.k8s.aws + names: + kind: Grant + listKind: GrantList + plural: grants + singular: grant + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: Grant is the Schema for the Grants API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: GrantSpec defines the desired state of Grant. + properties: + constraints: + description: "Specifies a grant constraint. \n KMS supports the EncryptionContextEquals + and EncryptionContextSubset grant constraints. Each constraint value + can include up to 8 encryption context pairs. The encryption context + value in each constraint cannot exceed 384 characters. For information + about grant constraints, see Using grant constraints (https://docs.aws.amazon.com/kms/latest/developerguide/create-grant-overview.html#grant-constraints) + in the Key Management Service Developer Guide. For more information + about encryption context, see Encryption context (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context) + in the Key Management Service Developer Guide . \n The encryption + context grant constraints allow the permissions in the grant only + when the encryption context in the request matches (EncryptionContextEquals) + or includes (EncryptionContextSubset) the encryption context specified + in this structure. \n The encryption context grant constraints are + supported only on grant operations (https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations) + that include an EncryptionContext parameter, such as cryptographic + operations on symmetric encryption KMS keys. Grants with grant constraints + can include the DescribeKey and RetireGrant operations, but the + constraint doesn't apply to these operations. If a grant with a + grant constraint includes the CreateGrant operation, the constraint + requires that any grants created with the CreateGrant permission + have an equally strict or stricter encryption context constraint. + \n You cannot use an encryption context grant constraint for cryptographic + operations with asymmetric KMS keys or HMAC KMS keys. These keys + don't support an encryption context." + properties: + encryptionContextEquals: + additionalProperties: + type: string + type: object + encryptionContextSubset: + additionalProperties: + type: string + type: object + type: object + grantTokens: + description: "A list of grant tokens. \n Use a grant token when your + permission to call this operation comes from a new grant that has + not yet achieved eventual consistency. For more information, see + Grant token (https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and Using a grant token (https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token) + in the Key Management Service Developer Guide." + items: + type: string + type: array + granteePrincipal: + description: "The identity that gets the permissions specified in + the grant. \n To specify the principal, use the Amazon Resource + Name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + of an Amazon Web Services principal. Valid Amazon Web Services principals + include Amazon Web Services accounts (root), IAM users, IAM roles, + federated users, and assumed role users. For examples of the ARN + syntax to use for specifying a principal, see Amazon Web Services + Identity and Access Management (IAM) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam) + in the Example ARNs section of the Amazon Web Services General Reference." + type: string + keyID: + description: "Identifies the KMS key for the grant. The grant gives + principals permission to use this KMS key. \n Specify the key ID + or key ARN of the KMS key. To specify a KMS key in a different Amazon + Web Services account, you must use the key ARN. \n For example: + \n * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab \n * Key ARN: + arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab + \n To get the key ID and key ARN for a KMS key, use ListKeys or + DescribeKey." + type: string + keyRef: + description: 'AWSResourceReferenceWrapper provides a wrapper around + *AWSResourceReference type to provide more user friendly syntax + for references using ''from'' field Ex: APIIDRef: from: name: my-api' + properties: + from: + description: AWSResourceReference provides all the values necessary + to reference another k8s resource for finding the identifier(Id/ARN/Name) + properties: + name: + type: string + type: object + type: object + name: + description: "A friendly name for the grant. Use this value to prevent + the unintended creation of duplicate grants when retrying this request. + \n When this value is absent, all CreateGrant requests result in + a new grant with a unique GrantId even if all the supplied parameters + are identical. This can result in unintended duplicates when you + retry the CreateGrant request. \n When this value is present, you + can retry a CreateGrant request with identical parameters; if the + grant already exists, the original GrantId is returned without creating + a new grant. Note that the returned grant token is unique with every + CreateGrant request, even when a duplicate GrantId is returned. + All grant tokens for the same grant ID can be used interchangeably." + type: string + operations: + description: "A list of operations that the grant permits. \n This + list must include only operations that are permitted in a grant. + Also, the operation must be supported on the KMS key. For example, + you cannot create a grant for a symmetric encryption KMS key that + allows the Sign operation, or a grant for an asymmetric KMS key + that allows the GenerateDataKey operation. If you try, KMS returns + a ValidationError exception. For details, see Grant operations (https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#terms-grant-operations) + in the Key Management Service Developer Guide." + items: + type: string + type: array + retiringPrincipal: + description: "The principal that has permission to use the RetireGrant + operation to retire the grant. \n To specify the principal, use + the Amazon Resource Name (ARN) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + of an Amazon Web Services principal. Valid Amazon Web Services principals + include Amazon Web Services accounts (root), IAM users, federated + users, and assumed role users. For examples of the ARN syntax to + use for specifying a principal, see Amazon Web Services Identity + and Access Management (IAM) (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam) + in the Example ARNs section of the Amazon Web Services General Reference. + \n The grant determines the retiring principal. Other principals + might have permission to retire the grant or revoke the grant. For + details, see RevokeGrant and Retiring and revoking grants (https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete) + in the Key Management Service Developer Guide." + type: string + required: + - granteePrincipal + - operations + type: object + status: + description: GrantStatus defines the observed state of Grant + properties: + ackResourceMetadata: + description: All CRs managed by ACK have a common `Status.ACKResourceMetadata` + member that is used to contain resource sync state, account ownership, + constructed ARN for the resource + properties: + arn: + description: 'ARN is the Amazon Resource Name for the resource. + This is a globally-unique identifier and is set only by the + ACK service controller once the controller has orchestrated + the creation of the resource OR when it has verified that an + "adopted" resource (a resource where the ARN annotation was + set by the Kubernetes user on the CR) exists and matches the + supplied CR''s Spec field values. TODO(vijat@): Find a better + strategy for resources that do not have ARN in CreateOutputResponse + https://github.com/aws/aws-controllers-k8s/issues/270' + type: string + ownerAccountID: + description: OwnerAccountID is the AWS Account ID of the account + that owns the backend AWS service API resource. + type: string + region: + description: Region is the AWS region in which the resource exists + or will exist. + type: string + required: + - ownerAccountID + - region + type: object + conditions: + description: All CRS managed by ACK have a common `Status.Conditions` + member that contains a collection of `ackv1alpha1.Condition` objects + that describe the various terminal states of the CR and its backend + AWS service API resource + items: + description: Condition is the common struct used by all CRDs managed + by ACK service controllers to indicate terminal states of the + CR and its backend AWS service API resource + properties: + lastTransitionTime: + description: Last time the condition transitioned from one status + to another. + format: date-time + type: string + message: + description: A human readable message indicating details about + the transition. + type: string + reason: + description: The reason for the condition's last transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type is the type of the Condition + type: string + required: + - status + - type + type: object + type: array + grantID: + description: "The unique identifier for the grant. \n You can use + the GrantId in a ListGrants, RetireGrant, or RevokeGrant operation." + type: string + grantToken: + description: "The grant token. \n Use a grant token when your permission + to call this operation comes from a new grant that has not yet achieved + eventual consistency. For more information, see Grant token (https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token) + and Using a grant token (https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#using-grant-token) + in the Key Management Service Developer Guide." + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: null + storedVersions: null diff --git a/operators/ack-kms-controller/0.1.4/manifests/kms.services.k8s.aws_keys.yaml b/operators/ack-kms-controller/0.1.4/manifests/kms.services.k8s.aws_keys.yaml new file mode 100644 index 00000000000..4323ca7a54d --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/manifests/kms.services.k8s.aws_keys.yaml @@ -0,0 +1,425 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.9.2 + creationTimestamp: null + name: keys.kms.services.k8s.aws +spec: + group: kms.services.k8s.aws + names: + kind: Key + listKind: KeyList + plural: keys + singular: key + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: Key is the Schema for the Keys API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: KeySpec defines the desired state of Key. + properties: + bypassPolicyLockoutSafetyCheck: + description: "A flag to indicate whether to bypass the key policy + lockout safety check. \n Setting this value to true increases the + risk that the KMS key becomes unmanageable. Do not set this value + to true indiscriminately. \n For more information, refer to the + scenario in the Default Key Policy (https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) + section in the Key Management Service Developer Guide . \n Use this + parameter only when you include a policy in the request and you + intend to prevent the principal that is making the request from + making a subsequent PutKeyPolicy request on the KMS key. \n The + default value is false." + type: boolean + customKeyStoreID: + description: "Creates the KMS key in the specified custom key store + (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) + and the key material in its associated CloudHSM cluster. To create + a KMS key in a custom key store, you must also specify the Origin + parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that + is associated with the custom key store must have at least two active + HSMs, each in a different Availability Zone in the Region. \n This + parameter is valid only for symmetric encryption KMS keys in a single + Region. You cannot create any other type of KMS key in a custom + key store. \n To find the ID of a custom key store, use the DescribeCustomKeyStores + operation. \n The response includes the custom key store ID and + the ID of the CloudHSM cluster. \n This operation is part of the + custom key store feature (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) + feature in KMS, which combines the convenience and extensive integration + of KMS with the isolation and control of a single-tenant key store." + type: string + description: + description: "A description of the KMS key. \n Use a description that + helps you decide whether the KMS key is appropriate for a task. + The default value is an empty string (no description). \n To set + or change the description after the key is created, use UpdateKeyDescription." + type: string + enableKeyRotation: + type: boolean + keySpec: + description: "Specifies the type of KMS key to create. The default + value, SYMMETRIC_DEFAULT, creates a KMS key with a 256-bit AES-GCM + key that is used for encryption and decryption, except in China + Regions, where it creates a 128-bit symmetric key that uses SM4 + encryption. For help choosing a key spec for your KMS key, see Choosing + a KMS key type (https://docs.aws.amazon.com/kms/latest/developerguide/key-types.html#symm-asymm-choose) + in the Key Management Service Developer Guide . \n The KeySpec determines + whether the KMS key contains a symmetric key or an asymmetric key + pair. It also determines the cryptographic algorithms that the KMS + key supports. You can't change the KeySpec after the KMS key is + created. To further restrict the algorithms that can be used with + the KMS key, use a condition key in its key policy or IAM policy. + For more information, see kms:EncryptionAlgorithm (https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-encryption-algorithm), + kms:MacAlgorithm (https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-mac-algorithm) + or kms:Signing Algorithm (https://docs.aws.amazon.com/kms/latest/developerguide/policy-conditions.html#conditions-kms-signing-algorithm) + in the Key Management Service Developer Guide . \n Amazon Web Services + services that are integrated with KMS (http://aws.amazon.com/kms/features/#AWS_Service_Integration) + use symmetric encryption KMS keys to protect your data. These services + do not support asymmetric KMS keys or HMAC KMS keys. \n KMS supports + the following key specs for KMS keys: \n * Symmetric encryption + key (default) SYMMETRIC_DEFAULT \n * HMAC keys (symmetric) HMAC_224 + HMAC_256 HMAC_384 HMAC_512 \n * Asymmetric RSA key pairs RSA_2048 + RSA_3072 RSA_4096 \n * Asymmetric NIST-recommended elliptic curve + key pairs ECC_NIST_P256 (secp256r1) ECC_NIST_P384 (secp384r1) ECC_NIST_P521 + (secp521r1) \n * Other asymmetric elliptic curve key pairs ECC_SECG_P256K1 + (secp256k1), commonly used for cryptocurrencies. \n * SM2 key pairs + (China Regions only) SM2" + type: string + keyUsage: + description: "Determines the cryptographic operations (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#cryptographic-operations) + for which you can use the KMS key. The default value is ENCRYPT_DECRYPT. + This parameter is optional when you are creating a symmetric encryption + KMS key; otherwise, it is required. You can't change the KeyUsage + value after the KMS key is created. \n Select only one valid value. + \n * For symmetric encryption KMS keys, omit the parameter or specify + ENCRYPT_DECRYPT. \n * For HMAC KMS keys (symmetric), specify GENERATE_VERIFY_MAC. + \n * For asymmetric KMS keys with RSA key material, specify ENCRYPT_DECRYPT + or SIGN_VERIFY. \n * For asymmetric KMS keys with ECC key material, + specify SIGN_VERIFY. \n * For asymmetric KMS keys with SM2 key material + (China Regions only), specify ENCRYPT_DECRYPT or SIGN_VERIFY." + type: string + multiRegion: + description: "Creates a multi-Region primary key that you can replicate + into other Amazon Web Services Regions. You cannot change this value + after you create the KMS key. \n For a multi-Region key, set this + parameter to True. For a single-Region KMS key, omit this parameter + or set it to False. The default value is False. \n This operation + supports multi-Region keys, an KMS feature that lets you create + multiple interoperable KMS keys in different Amazon Web Services + Regions. Because these KMS keys have the same key ID, key material, + and other metadata, you can use them interchangeably to encrypt + data in one Amazon Web Services Region and decrypt it in a different + Amazon Web Services Region without re-encrypting the data or making + a cross-Region call. For more information about multi-Region keys, + see Multi-Region keys in KMS (https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html) + in the Key Management Service Developer Guide. \n This value creates + a primary key, not a replica. To create a replica key, use the ReplicateKey + operation. \n You can create a multi-Region version of a symmetric + encryption KMS key, an HMAC KMS key, an asymmetric KMS key, or a + KMS key with imported key material. However, you cannot create a + multi-Region key in a custom key store." + type: boolean + origin: + description: "The source of the key material for the KMS key. You + cannot change the origin after you create the KMS key. The default + is AWS_KMS, which means that KMS creates the key material. \n To + create a KMS key with no key material (for imported key material), + set the value to EXTERNAL. For more information about importing + key material into KMS, see Importing Key Material (https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) + in the Key Management Service Developer Guide. This value is valid + only for symmetric encryption KMS keys. \n To create a KMS key in + an KMS custom key store (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) + and create its key material in the associated CloudHSM cluster, + set this value to AWS_CLOUDHSM. You must also use the CustomKeyStoreId + parameter to identify the custom key store. This value is valid + only for symmetric encryption KMS keys." + type: string + policy: + description: "The key policy to attach to the KMS key. If you do not + specify a key policy, KMS attaches a default key policy to the KMS + key. For more information, see Default key policy (https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default) + in the Key Management Service Developer Guide. \n If you provide + a key policy, it must meet the following criteria: \n * If you don't + set BypassPolicyLockoutSafetyCheck to True, the key policy must + allow the principal that is making the CreateKey request to make + a subsequent PutKeyPolicy request on the KMS key. This reduces the + risk that the KMS key becomes unmanageable. For more information, + refer to the scenario in the Default Key Policy (https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam) + section of the Key Management Service Developer Guide . \n * Each + statement in the key policy must contain one or more principals. + The principals in the key policy must exist and be visible to KMS. + When you create a new Amazon Web Services principal (for example, + an IAM user or role), you might need to enforce a delay before including + the new principal in a key policy because the new principal might + not be immediately visible to KMS. For more information, see Changes + that I make are not always immediately visible (https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency) + in the Amazon Web Services Identity and Access Management User Guide. + \n A key policy document can include only the following characters: + \n * Printable ASCII characters from the space character (\\u0020) + through the end of the ASCII character range. \n * Printable characters + in the Basic Latin and Latin-1 Supplement character set (through + \\u00FF). \n * The tab (\\u0009), line feed (\\u000A), and carriage + return (\\u000D) special characters \n For information about key + policies, see Key policies in KMS (https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) + in the Key Management Service Developer Guide. For help writing + and formatting a JSON policy document, see the IAM JSON Policy Reference + (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html) + in the Identity and Access Management User Guide ." + type: string + tags: + description: "Assigns one or more tags to the KMS key. Use this parameter + to tag the KMS key when it is created. To tag an existing KMS key, + use the TagResource operation. \n Tagging or untagging a KMS key + can allow or deny permission to the KMS key. For details, see ABAC + in KMS (https://docs.aws.amazon.com/kms/latest/developerguide/abac.html) + in the Key Management Service Developer Guide. \n To use this parameter, + you must have kms:TagResource (https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html) + permission in an IAM policy. \n Each tag consists of a tag key and + a tag value. Both the tag key and the tag value are required, but + the tag value can be an empty (null) string. You cannot have more + than one tag on a KMS key with the same tag key. If you specify + an existing tag key with a different tag value, KMS replaces the + current tag value with the specified one. \n When you add tags to + an Amazon Web Services resource, Amazon Web Services generates a + cost allocation report with usage and costs aggregated by tags. + Tags can also be used to control access to a KMS key. For details, + see Tagging Keys (https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html)." + items: + description: "A key-value pair. A tag consists of a tag key and + a tag value. Tag keys and tag values are both required, but tag + values can be empty (null) strings. \n For information about the + rules that apply to tag keys and tag values, see User-Defined + Tag Restrictions (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html) + in the Amazon Web Services Billing and Cost Management User Guide." + properties: + tagKey: + type: string + tagValue: + type: string + type: object + type: array + type: object + status: + description: KeyStatus defines the observed state of Key + properties: + ackResourceMetadata: + description: All CRs managed by ACK have a common `Status.ACKResourceMetadata` + member that is used to contain resource sync state, account ownership, + constructed ARN for the resource + properties: + arn: + description: 'ARN is the Amazon Resource Name for the resource. + This is a globally-unique identifier and is set only by the + ACK service controller once the controller has orchestrated + the creation of the resource OR when it has verified that an + "adopted" resource (a resource where the ARN annotation was + set by the Kubernetes user on the CR) exists and matches the + supplied CR''s Spec field values. TODO(vijat@): Find a better + strategy for resources that do not have ARN in CreateOutputResponse + https://github.com/aws/aws-controllers-k8s/issues/270' + type: string + ownerAccountID: + description: OwnerAccountID is the AWS Account ID of the account + that owns the backend AWS service API resource. + type: string + region: + description: Region is the AWS region in which the resource exists + or will exist. + type: string + required: + - ownerAccountID + - region + type: object + awsAccountID: + description: The twelve-digit account ID of the Amazon Web Services + account that owns the KMS key. + type: string + cloudHsmClusterID: + description: The cluster ID of the CloudHSM cluster that contains + the key material for the KMS key. When you create a KMS key in a + custom key store (https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html), + KMS creates the key material for the KMS key in the associated CloudHSM + cluster. This value is present only when the KMS key is created + in a custom key store. + type: string + conditions: + description: All CRS managed by ACK have a common `Status.Conditions` + member that contains a collection of `ackv1alpha1.Condition` objects + that describe the various terminal states of the CR and its backend + AWS service API resource + items: + description: Condition is the common struct used by all CRDs managed + by ACK service controllers to indicate terminal states of the + CR and its backend AWS service API resource + properties: + lastTransitionTime: + description: Last time the condition transitioned from one status + to another. + format: date-time + type: string + message: + description: A human readable message indicating details about + the transition. + type: string + reason: + description: The reason for the condition's last transition. + type: string + status: + description: Status of the condition, one of True, False, Unknown. + type: string + type: + description: Type is the type of the Condition + type: string + required: + - status + - type + type: object + type: array + creationDate: + description: The date and time when the KMS key was created. + format: date-time + type: string + deletionDate: + description: "The date and time after which KMS deletes this KMS key. + This value is present only when the KMS key is scheduled for deletion, + that is, when its KeyState is PendingDeletion. \n When the primary + key in a multi-Region key is scheduled for deletion but still has + replica keys, its key state is PendingReplicaDeletion and the length + of its waiting period is displayed in the PendingDeletionWindowInDays + field." + format: date-time + type: string + enabled: + description: Specifies whether the KMS key is enabled. When KeyState + is Enabled this value is true, otherwise it is false. + type: boolean + encryptionAlgorithms: + description: "The encryption algorithms that the KMS key supports. + You cannot use the KMS key with other encryption algorithms within + KMS. \n This value is present only when the KeyUsage of the KMS + key is ENCRYPT_DECRYPT." + items: + type: string + type: array + expirationModel: + description: Specifies whether the KMS key's key material expires. + This value is present only when Origin is EXTERNAL, otherwise this + value is omitted. + type: string + keyID: + description: The globally unique identifier for the KMS key. + type: string + keyManager: + description: The manager of the KMS key. KMS keys in your Amazon Web + Services account are either customer managed or Amazon Web Services + managed. For more information about the difference, see KMS keys + (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms_keys) + in the Key Management Service Developer Guide. + type: string + keyState: + description: "The current status of the KMS key. \n For more information + about how key state affects the use of a KMS key, see Key states + of KMS keys (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) + in the Key Management Service Developer Guide." + type: string + macAlgorithms: + description: "The message authentication code (MAC) algorithm that + the HMAC KMS key supports. \n This value is present only when the + KeyUsage of the KMS key is GENERATE_VERIFY_MAC." + items: + type: string + type: array + multiRegionConfiguration: + description: "Lists the primary and replica keys in same multi-Region + key. This field is present only when the value of the MultiRegion + field is True. \n For more information about any listed KMS key, + use the DescribeKey operation. \n * MultiRegionKeyType indicates + whether the KMS key is a PRIMARY or REPLICA key. \n * PrimaryKey + displays the key ARN and Region of the primary key. This field displays + the current KMS key if it is the primary key. \n * ReplicaKeys displays + the key ARNs and Regions of all replica keys. This field includes + the current KMS key if it is a replica key." + properties: + multiRegionKeyType: + type: string + primaryKey: + description: Describes the primary or replica key in a multi-Region + key. + properties: + arn: + type: string + region: + type: string + type: object + replicaKeys: + items: + description: Describes the primary or replica key in a multi-Region + key. + properties: + arn: + type: string + region: + type: string + type: object + type: array + type: object + pendingDeletionWindowInDays: + description: "The waiting period before the primary key in a multi-Region + key is deleted. This waiting period begins when the last of its + replica keys is deleted. This value is present only when the KeyState + of the KMS key is PendingReplicaDeletion. That indicates that the + KMS key is the primary key in a multi-Region key, it is scheduled + for deletion, and it still has existing replica keys. \n When a + single-Region KMS key or a multi-Region replica key is scheduled + for deletion, its deletion date is displayed in the DeletionDate + field. However, when the primary key in a multi-Region key is scheduled + for deletion, its waiting period doesn't begin until all of its + replica keys are deleted. This value displays that waiting period. + When the last replica key in the multi-Region key is deleted, the + KeyState of the scheduled primary key changes from PendingReplicaDeletion + to PendingDeletion and the deletion date appears in the DeletionDate + field." + format: int64 + type: integer + signingAlgorithms: + description: "The signing algorithms that the KMS key supports. You + cannot use the KMS key with other signing algorithms within KMS. + \n This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY." + items: + type: string + type: array + validTo: + description: The time at which the imported key material expires. + When the key material expires, KMS deletes the key material and + the KMS key becomes unusable. This value is present only for KMS + keys whose Origin is EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, + otherwise this value is omitted. + format: date-time + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: null + storedVersions: null diff --git a/operators/ack-kms-controller/0.1.4/metadata/annotations.yaml b/operators/ack-kms-controller/0.1.4/metadata/annotations.yaml new file mode 100644 index 00000000000..1937672fdc6 --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/metadata/annotations.yaml @@ -0,0 +1,15 @@ +annotations: + # Core bundle annotations. + operators.operatorframework.io.bundle.mediatype.v1: registry+v1 + operators.operatorframework.io.bundle.manifests.v1: manifests/ + operators.operatorframework.io.bundle.metadata.v1: metadata/ + operators.operatorframework.io.bundle.package.v1: ack-kms-controller + operators.operatorframework.io.bundle.channels.v1: alpha + operators.operatorframework.io.bundle.channel.default.v1: alpha + operators.operatorframework.io.metrics.builder: operator-sdk-v1.19.0+git + operators.operatorframework.io.metrics.mediatype.v1: metrics+v1 + operators.operatorframework.io.metrics.project_layout: unknown + + # Annotations for testing. + operators.operatorframework.io.test.mediatype.v1: scorecard+v1 + operators.operatorframework.io.test.config.v1: tests/scorecard/ diff --git a/operators/ack-kms-controller/0.1.4/tests/scorecard/config.yaml b/operators/ack-kms-controller/0.1.4/tests/scorecard/config.yaml new file mode 100644 index 00000000000..382ddefd156 --- /dev/null +++ b/operators/ack-kms-controller/0.1.4/tests/scorecard/config.yaml @@ -0,0 +1,50 @@ +apiVersion: scorecard.operatorframework.io/v1alpha3 +kind: Configuration +metadata: + name: config +stages: +- parallel: true + tests: + - entrypoint: + - scorecard-test + - basic-check-spec + image: quay.io/operator-framework/scorecard-test:v1.7.1 + labels: + suite: basic + test: basic-check-spec-test + storage: + spec: + mountPath: {} + - entrypoint: + - scorecard-test + - olm-bundle-validation + image: quay.io/operator-framework/scorecard-test:v1.7.1 + labels: + suite: olm + test: olm-bundle-validation-test + storage: + spec: + mountPath: {} + - entrypoint: + - scorecard-test + - olm-crds-have-validation + image: quay.io/operator-framework/scorecard-test:v1.7.1 + labels: + suite: olm + test: olm-crds-have-validation-test + storage: + spec: + mountPath: {} + - entrypoint: + - scorecard-test + - olm-spec-descriptors + image: quay.io/operator-framework/scorecard-test:v1.7.1 + labels: + suite: olm + test: olm-spec-descriptors-test + storage: + spec: + mountPath: {} +storage: + spec: + mountPath: {}