diff --git a/operators/ack-networkfirewall-controller/0.0.5/bundle.Dockerfile b/operators/ack-networkfirewall-controller/0.0.5/bundle.Dockerfile new file mode 100644 index 00000000000..5b9d704324b --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/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-networkfirewall-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.28.0 +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-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-controller.clusterserviceversion.yaml b/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-controller.clusterserviceversion.yaml new file mode 100644 index 00000000000..6456abfac1d --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-controller.clusterserviceversion.yaml @@ -0,0 +1,358 @@ +apiVersion: operators.coreos.com/v1alpha1 +kind: ClusterServiceVersion +metadata: + annotations: + alm-examples: |- + [ + { + "apiVersion": "networkfirewall.services.k8s.aws/v1alpha1", + "kind": "Firewall", + "metadata": { + "name": "example" + }, + "spec": {} + }, + { + "apiVersion": "networkfirewall.services.k8s.aws/v1alpha1", + "kind": "FirewallPolicy", + "metadata": { + "name": "example" + }, + "spec": {} + }, + { + "apiVersion": "networkfirewall.services.k8s.aws/v1alpha1", + "kind": "RuleGroup", + "metadata": { + "name": "example" + }, + "spec": {} + } + ] + capabilities: Basic Install + categories: Cloud Provider + certified: "false" + containerImage: public.ecr.aws/aws-controllers-k8s/networkfirewall-controller:0.0.5 + createdAt: "2024-04-22T18:19:27Z" + description: AWS Network Firewall controller is a service controller for managing + Network Firewall resources in Kubernetes + operatorframework.io/suggested-namespace: ack-system + operators.operatorframework.io/builder: operator-sdk-v1.28.0 + operators.operatorframework.io/project_layout: unknown + repository: https://github.com/aws-controllers-k8s + support: Community + labels: + operatorframework.io/arch.amd64: supported + operatorframework.io/arch.arm64: supported + operatorframework.io/os.linux: supported + name: ack-networkfirewall-controller.v0.0.5 + namespace: placeholder +spec: + apiservicedefinitions: {} + customresourcedefinitions: + owned: + - description: FirewallPolicy represents the state of an AWS networkfirewall FirewallPolicy + resource. + displayName: FirewallPolicy + kind: FirewallPolicy + name: firewallpolicies.networkfirewall.services.k8s.aws + version: v1alpha1 + - description: Firewall represents the state of an AWS networkfirewall Firewall + resource. + displayName: Firewall + kind: Firewall + name: firewalls.networkfirewall.services.k8s.aws + version: v1alpha1 + - description: RuleGroup represents the state of an AWS networkfirewall RuleGroup + resource. + displayName: RuleGroup + kind: RuleGroup + name: rulegroups.networkfirewall.services.k8s.aws + version: v1alpha1 + description: |- + Manage Amazon Network Firewall resources in AWS from within your Kubernetes cluster. + + **About Amazon Network Firewall** + + AWS Network Firewall is a stateful, managed, network firewall and intrusion detection and prevention service for your virtual private cloud (VPC) that you create in Amazon Virtual Private Cloud (Amazon VPC). + With Network Firewall, you can filter traffic at the perimeter of your VPC. This includes filtering traffic going to and coming from an internet gateway, NAT gateway, or over VPN or AWS Direct Connect. Network Firewall uses the open source intrusion prevention system (IPS), Suricata, for stateful inspection. Network Firewall supports Suricata compatible rules. For more information, see [Working with stateful rule groups in AWS Network Firewall](https://docs.aws.amazon.com/network-firewall/latest/developerguide/stateful-rule-groups-ips.html). + + **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. This project is currently in **developer preview**. + + **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 Network Firewall + icon: + - base64data: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMzA0IDE4MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzA0IDE4MjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMyNTJGM0U7fQoJLnN0MXtmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsOiNGRjk5MDA7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04Ni40LDY2LjRjMCwzLjcsMC40LDYuNywxLjEsOC45YzAuOCwyLjIsMS44LDQuNiwzLjIsNy4yYzAuNSwwLjgsMC43LDEuNiwwLjcsMi4zYzAsMS0wLjYsMi0xLjksM2wtNi4zLDQuMiAgIGMtMC45LDAuNi0xLjgsMC45LTIuNiwwLjljLTEsMC0yLTAuNS0zLTE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tMC4zLTYuNiwzLjQtNC40ICAgIGM0Mi40LDI0LjYsOTQuNywzOS41LDE0OC44LDM5LjVjMzYuNSwwLDc2LjYtNy42LDExMy41LTIzLjJDMjc0LjIsMTMzLjYsMjc4LjksMTM5LjcsMjczLjUsMTQzLjd6Ii8+CgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI4Ny4yLDEyOC4xYy00LjItNS40LTI3LjgtMi42LTM4LjUtMS4zYy0zLjIsMC40LTMuNy0yLjQtMC44LTQuNWMxOC44LTEzLjIsNDkuNy05LjQsNTMuMy01ICAgIGMzLjYsNC41LTEsMzUuNC0xOC42LDUwLjJjLTIuNywyLjMtNS4zLDEuMS00LjEtMS45QzI4Mi41LDE1NS43LDI5MS40LDEzMy40LDI4Ny4yLDEyOC4xeiIvPgoJPC9nPgo8L2c+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: + - networkfirewall.services.k8s.aws + resources: + - firewallpolicies + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - networkfirewall.services.k8s.aws + resources: + - firewallpolicies/status + verbs: + - get + - patch + - update + - apiGroups: + - networkfirewall.services.k8s.aws + resources: + - firewalls + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - networkfirewall.services.k8s.aws + resources: + - firewalls/status + verbs: + - get + - patch + - update + - apiGroups: + - networkfirewall.services.k8s.aws + resources: + - rulegroups + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - networkfirewall.services.k8s.aws + resources: + - rulegroups/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-networkfirewall-controller + deployments: + - label: + app.kubernetes.io/name: ack-networkfirewall-controller + app.kubernetes.io/part-of: ack-system + name: ack-networkfirewall-controller + spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: ack-networkfirewall-controller + strategy: {} + template: + metadata: + labels: + app.kubernetes.io/name: ack-networkfirewall-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) + - --enable-leader-election=$(ENABLE_LEADER_ELECTION) + - --leader-election-namespace + - $(LEADER_ELECTION_NAMESPACE) + - --reconcile-default-max-concurrent-syncs + - $(RECONCILE_DEFAULT_MAX_CONCURRENT_SYNCS) + command: + - ./bin/controller + env: + - name: ACK_SYSTEM_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + envFrom: + - configMapRef: + name: ack-networkfirewall-user-config + optional: false + - secretRef: + name: ack-networkfirewall-user-secrets + optional: true + image: public.ecr.aws/aws-controllers-k8s/networkfirewall-controller:0.0.5 + livenessProbe: + httpGet: + path: /healthz + port: 8081 + initialDelaySeconds: 15 + periodSeconds: 20 + name: controller + ports: + - containerPort: 8080 + name: http + readinessProbe: + httpGet: + path: /readyz + port: 8081 + initialDelaySeconds: 5 + periodSeconds: 10 + resources: + limits: + cpu: 100m + memory: 300Mi + requests: + cpu: 100m + memory: 200Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + privileged: false + runAsNonRoot: true + dnsPolicy: ClusterFirst + securityContext: + seccompProfile: + type: RuntimeDefault + serviceAccountName: ack-networkfirewall-controller + terminationGracePeriodSeconds: 10 + permissions: + - rules: + - apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - get + - list + - watch + - create + - update + - patch + - delete + - apiGroups: + - "" + resources: + - events + verbs: + - create + - patch + serviceAccountName: ack-networkfirewall-controller + strategy: deployment + installModes: + - supported: true + type: OwnNamespace + - supported: true + type: SingleNamespace + - supported: true + type: MultiNamespace + - supported: true + type: AllNamespaces + keywords: + - networkfirewall + - 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 Network Firewall Developer Resources + url: https://aws.amazon.com/network-firewall/resources/ + maintainers: + - email: ack-maintainers@amazon.com + name: network firewall maintainer team + maturity: alpha + provider: + name: Amazon, Inc. + url: https://aws.amazon.com + version: 0.0.5 diff --git a/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-metrics-service_v1_service.yaml b/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-metrics-service_v1_service.yaml new file mode 100644 index 00000000000..3bd10de403e --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-metrics-service_v1_service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + creationTimestamp: null + name: ack-networkfirewall-metrics-service +spec: + ports: + - name: metricsport + port: 8080 + protocol: TCP + targetPort: http + selector: + app.kubernetes.io/name: ack-networkfirewall-controller + type: NodePort +status: + loadBalancer: {} diff --git a/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-reader_rbac.authorization.k8s.io_v1_role.yaml b/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-reader_rbac.authorization.k8s.io_v1_role.yaml new file mode 100644 index 00000000000..1217ffd9cd6 --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-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-networkfirewall-reader +rules: +- apiGroups: + - networkfirewall.services.k8s.aws + resources: + - firewalls + - firewallpolicies + - rulegroups + verbs: + - get + - list + - watch diff --git a/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-writer_rbac.authorization.k8s.io_v1_role.yaml b/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-writer_rbac.authorization.k8s.io_v1_role.yaml new file mode 100644 index 00000000000..0a4bc1b62cd --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/manifests/ack-networkfirewall-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-networkfirewall-writer +rules: +- apiGroups: + - networkfirewall.services.k8s.aws + resources: + - firewalls + - firewallpolicies + - rulegroups + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - networkfirewall.services.k8s.aws + resources: + - firewalls + - firewallpolicies + - rulegroups + verbs: + - get + - patch + - update diff --git a/operators/ack-networkfirewall-controller/0.0.5/manifests/networkfirewall.services.k8s.aws_firewallpolicies.yaml b/operators/ack-networkfirewall-controller/0.0.5/manifests/networkfirewall.services.k8s.aws_firewallpolicies.yaml new file mode 100644 index 00000000000..349d43284e7 --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/manifests/networkfirewall.services.k8s.aws_firewallpolicies.yaml @@ -0,0 +1,387 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + creationTimestamp: null + name: firewallpolicies.networkfirewall.services.k8s.aws +spec: + group: networkfirewall.services.k8s.aws + names: + kind: FirewallPolicy + listKind: FirewallPolicyList + plural: firewallpolicies + singular: firewallpolicy + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: FirewallPolicy is the Schema for the FirewallPolicies 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: |- + FirewallPolicySpec defines the desired state of FirewallPolicy. + + + The firewall policy defines the behavior of a firewall using a collection + of stateless and stateful rule groups and other settings. You can use one + firewall policy for multiple firewalls. + + + This, along with FirewallPolicyResponse, define the policy. You can retrieve + all objects for a firewall policy by calling DescribeFirewallPolicy. + properties: + description: + description: A description of the firewall policy. + type: string + encryptionConfiguration: + description: |- + A complex type that contains settings for encryption of your firewall policy + resources. + properties: + keyID: + type: string + type_: + type: string + type: object + firewallPolicy: + description: The rule groups and policy actions to use in the firewall + policy. + properties: + policyVariables: + description: |- + Contains variables that you can use to override default Suricata settings + in your firewall policy. + properties: + ruleVariables: + additionalProperties: + description: |- + A list of IP addresses and address ranges, in CIDR notation. This is part + of a RuleVariables. + properties: + definition: + items: + type: string + type: array + type: object + type: object + type: object + statefulDefaultActions: + items: + type: string + type: array + statefulEngineOptions: + description: |- + Configuration settings for the handling of the stateful rule groups in a + firewall policy. + properties: + ruleOrder: + type: string + streamExceptionPolicy: + type: string + type: object + statefulRuleGroupReferences: + items: + description: |- + Identifier for a single stateful rule group, used in a firewall policy to + refer to a rule group. + properties: + override: + description: |- + The setting that allows the policy owner to change the behavior of the rule + group within a policy. + properties: + action: + type: string + type: object + priority: + format: int64 + type: integer + resourceARN: + type: string + type: object + type: array + statelessCustomActions: + items: + description: |- + An optional, non-standard action to use for stateless packet handling. You + can define this in addition to the standard action that you must specify. + + + You define and name the custom actions that you want to be able to use, and + then you reference them by name in your actions settings. + + + You can use custom actions in the following places: + + + * In a rule group's StatelessRulesAndCustomActions specification. The + custom actions are available for use by name inside the StatelessRulesAndCustomActions + where you define them. You can use them for your stateless rule actions + to specify what to do with a packet that matches the rule's match attributes. + + + * In a FirewallPolicy specification, in StatelessCustomActions. The custom + actions are available for use inside the policy where you define them. + You can use them for the policy's default stateless actions settings to + specify what to do with packets that don't match any of the policy's stateless + rules. + properties: + actionDefinition: + description: |- + A custom action to use in stateless rule actions settings. This is used in + CustomAction. + properties: + publishMetricAction: + description: |- + Stateless inspection criteria that publishes the specified metrics to Amazon + CloudWatch for the matching packet. This setting defines a CloudWatch dimension + value to be published. + properties: + dimensions: + items: + description: |- + The value to use in an Amazon CloudWatch custom metric dimension. This is + used in the PublishMetrics CustomAction. A CloudWatch custom metric dimension + is a name/value pair that's part of the identity of a metric. + + + Network Firewall sets the dimension name to CustomAction and you provide + the dimension value. + + + For more information about CloudWatch custom metric dimensions, see Publishing + Custom Metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#usingDimensions) + in the Amazon CloudWatch User Guide (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html). + properties: + value: + type: string + type: object + type: array + type: object + type: object + actionName: + type: string + type: object + type: array + statelessDefaultActions: + items: + type: string + type: array + statelessFragmentDefaultActions: + items: + type: string + type: array + statelessRuleGroupReferences: + items: + description: |- + Identifier for a single stateless rule group, used in a firewall policy to + refer to the rule group. + properties: + priority: + format: int64 + type: integer + resourceARN: + type: string + type: object + type: array + tlsInspectionConfigurationARN: + type: string + type: object + firewallPolicyName: + description: |- + The descriptive name of the firewall policy. You can't change the name of + a firewall policy after you create it. + type: string + tags: + description: The key:value pairs to associate with the resource. + items: + description: |- + A key:value pair associated with an Amazon Web Services resource. The key:value + pair can be anything you define. Typically, the tag key represents a category + (such as "environment") and the tag value represents a specific value within + that category (such as "test," "development," or "production"). You can add + up to 50 tags to each Amazon Web Services resource. + properties: + key: + type: string + value: + type: string + type: object + type: array + required: + - firewallPolicy + - firewallPolicyName + type: object + status: + description: FirewallPolicyStatus defines the observed state of FirewallPolicy + 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 + firewallPolicyResponse: + description: |- + The high-level properties of a firewall policy. This, along with the FirewallPolicy, + define the policy. You can retrieve all objects for a firewall policy by + calling DescribeFirewallPolicy. + properties: + consumedStatefulRuleCapacity: + format: int64 + type: integer + consumedStatelessRuleCapacity: + format: int64 + type: integer + description: + type: string + encryptionConfiguration: + description: |- + A complex type that contains optional Amazon Web Services Key Management + Service (KMS) encryption settings for your Network Firewall resources. Your + data is encrypted by default with an Amazon Web Services owned key that Amazon + Web Services owns and manages for you. You can use either the Amazon Web + Services owned key, or provide your own customer managed key. To learn more + about KMS encryption of your Network Firewall resources, see Encryption at + rest with Amazon Web Services Key Managment Service (https://docs.aws.amazon.com/kms/latest/developerguide/kms-encryption-at-rest.html) + in the Network Firewall Developer Guide. + properties: + keyID: + type: string + type_: + type: string + type: object + firewallPolicyARN: + type: string + firewallPolicyID: + type: string + firewallPolicyName: + type: string + firewallPolicyStatus: + type: string + lastModifiedTime: + format: date-time + type: string + numberOfAssociations: + format: int64 + type: integer + tags: + items: + description: |- + A key:value pair associated with an Amazon Web Services resource. The key:value + pair can be anything you define. Typically, the tag key represents a category + (such as "environment") and the tag value represents a specific value within + that category (such as "test," "development," or "production"). You can add + up to 50 tags to each Amazon Web Services resource. + properties: + key: + type: string + value: + type: string + type: object + type: array + type: object + updateToken: + description: |- + A token used for optimistic locking. Network Firewall returns a token to + your requests that access the firewall policy. The token marks the state + of the policy resource at the time of the request. + + + To make changes to the policy, you provide the token in your request. Network + Firewall uses the token to ensure that the policy hasn't changed since you + last retrieved it. If it has changed, the operation fails with an InvalidTokenException. + If this happens, retrieve the firewall policy again to get a current copy + of it with current token. Reapply your changes as needed, then try the operation + again using the new token. + 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-networkfirewall-controller/0.0.5/manifests/networkfirewall.services.k8s.aws_firewalls.yaml b/operators/ack-networkfirewall-controller/0.0.5/manifests/networkfirewall.services.k8s.aws_firewalls.yaml new file mode 100644 index 00000000000..ac927d73dc3 --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/manifests/networkfirewall.services.k8s.aws_firewalls.yaml @@ -0,0 +1,386 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + creationTimestamp: null + name: firewalls.networkfirewall.services.k8s.aws +spec: + group: networkfirewall.services.k8s.aws + names: + kind: Firewall + listKind: FirewallList + plural: firewalls + singular: firewall + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: Firewall is the Schema for the Firewalls 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: |- + FirewallSpec defines the desired state of Firewall. + + + The firewall defines the configuration settings for an Network Firewall firewall. + These settings include the firewall policy, the subnets in your VPC to use + for the firewall endpoints, and any tags that are attached to the firewall + Amazon Web Services resource. + + + The status of the firewall, for example whether it's ready to filter network + traffic, is provided in the corresponding FirewallStatus. You can retrieve + both objects by calling DescribeFirewall. + properties: + deleteProtection: + description: |- + A flag indicating whether it is possible to delete the firewall. A setting + of TRUE indicates that the firewall is protected against deletion. Use this + setting to protect against accidentally deleting a firewall that is in use. + When you create a firewall, the operation initializes this flag to TRUE. + type: boolean + description: + description: A description of the firewall. + type: string + encryptionConfiguration: + description: A complex type that contains settings for encryption + of your firewall resources. + properties: + keyID: + type: string + type_: + type: string + type: object + firewallName: + description: |- + The descriptive name of the firewall. You can't change the name of a firewall + after you create it. + type: string + firewallPolicyARN: + description: |- + The Amazon Resource Name (ARN) of the FirewallPolicy that you want to use + for the firewall. + type: string + firewallPolicyChangeProtection: + description: |- + A setting indicating whether the firewall is protected against a change to + the firewall policy association. Use this setting to protect against accidentally + modifying the firewall policy for a firewall that is in use. When you create + a firewall, the operation initializes this setting to TRUE. + type: boolean + subnetChangeProtection: + description: |- + A setting indicating whether the firewall is protected against changes to + the subnet associations. Use this setting to protect against accidentally + modifying the subnet associations for a firewall that is in use. When you + create a firewall, the operation initializes this setting to TRUE. + type: boolean + subnetMappings: + description: |- + The public subnets to use for your Network Firewall firewalls. Each subnet + must belong to a different Availability Zone in the VPC. Network Firewall + creates a firewall endpoint in each subnet. + items: + description: |- + The ID for a subnet that you want to associate with the firewall. This is + used with CreateFirewall and AssociateSubnets. Network Firewall creates an + instance of the associated firewall in each subnet that you specify, to filter + traffic in the subnet's Availability Zone. + properties: + iPAddressType: + type: string + subnetID: + type: string + type: object + type: array + tags: + description: The key:value pairs to associate with the resource. + items: + description: |- + A key:value pair associated with an Amazon Web Services resource. The key:value + pair can be anything you define. Typically, the tag key represents a category + (such as "environment") and the tag value represents a specific value within + that category (such as "test," "development," or "production"). You can add + up to 50 tags to each Amazon Web Services resource. + properties: + key: + type: string + value: + type: string + type: object + type: array + vpcID: + description: |- + The unique identifier of the VPC where Network Firewall should create the + firewall. + + + You can't change this setting after you create the firewall. + type: string + required: + - firewallName + - firewallPolicyARN + - subnetMappings + - vpcID + type: object + status: + description: FirewallStatus defines the observed state of Firewall + 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 + firewall: + description: |- + The configuration settings for the firewall. These settings include the firewall + policy and the subnets in your VPC to use for the firewall endpoints. + properties: + deleteProtection: + type: boolean + description: + type: string + encryptionConfiguration: + description: |- + A complex type that contains optional Amazon Web Services Key Management + Service (KMS) encryption settings for your Network Firewall resources. Your + data is encrypted by default with an Amazon Web Services owned key that Amazon + Web Services owns and manages for you. You can use either the Amazon Web + Services owned key, or provide your own customer managed key. To learn more + about KMS encryption of your Network Firewall resources, see Encryption at + rest with Amazon Web Services Key Managment Service (https://docs.aws.amazon.com/kms/latest/developerguide/kms-encryption-at-rest.html) + in the Network Firewall Developer Guide. + properties: + keyID: + type: string + type_: + type: string + type: object + firewallARN: + type: string + firewallID: + type: string + firewallName: + type: string + firewallPolicyARN: + type: string + firewallPolicyChangeProtection: + type: boolean + subnetChangeProtection: + type: boolean + subnetMappings: + items: + description: |- + The ID for a subnet that you want to associate with the firewall. This is + used with CreateFirewall and AssociateSubnets. Network Firewall creates an + instance of the associated firewall in each subnet that you specify, to filter + traffic in the subnet's Availability Zone. + properties: + iPAddressType: + type: string + subnetID: + type: string + type: object + type: array + tags: + items: + description: |- + A key:value pair associated with an Amazon Web Services resource. The key:value + pair can be anything you define. Typically, the tag key represents a category + (such as "environment") and the tag value represents a specific value within + that category (such as "test," "development," or "production"). You can add + up to 50 tags to each Amazon Web Services resource. + properties: + key: + type: string + value: + type: string + type: object + type: array + vpcID: + type: string + type: object + firewallStatus: + description: |- + Detailed information about the current status of a Firewall. You can retrieve + this for a firewall by calling DescribeFirewall and providing the firewall + name and ARN. + properties: + capacityUsageSummary: + description: |- + The capacity usage summary of the resources used by the ReferenceSets in + a firewall. + properties: + cidrs: + description: |- + Summarizes the CIDR blocks used by the IP set references in a firewall. Network + Firewall calculates the number of CIDRs by taking an aggregated count of + all CIDRs used by the IP sets you are referencing. + properties: + availableCIDRCount: + format: int64 + type: integer + iPSetReferences: + additionalProperties: + description: General information about the IP set. + properties: + resolvedCIDRCount: + format: int64 + type: integer + type: object + type: object + utilizedCIDRCount: + format: int64 + type: integer + type: object + type: object + configurationSyncStateSummary: + type: string + status: + type: string + syncStates: + additionalProperties: + description: |- + The status of the firewall endpoint and firewall policy configuration for + a single VPC subnet. + + + For each VPC subnet that you associate with a firewall, Network Firewall + does the following: + + + * Instantiates a firewall endpoint in the subnet, ready to take traffic. + + + * Configures the endpoint with the current firewall policy settings, to + provide the filtering behavior for the endpoint. + + + When you update a firewall, for example to add a subnet association or change + a rule group in the firewall policy, the affected sync states reflect out-of-sync + or not ready status until the changes are complete. + properties: + attachment: + description: |- + The configuration and status for a single subnet that you've specified for + use by the Network Firewall firewall. This is part of the FirewallStatus. + properties: + endpointID: + type: string + status: + type: string + statusMessage: + type: string + subnetID: + type: string + type: object + config: + additionalProperties: + description: |- + Provides configuration status for a single policy or rule group that is used + for a firewall endpoint. Network Firewall provides each endpoint with the + rules that are configured in the firewall policy. Each time you add a subnet + or modify the associated firewall policy, Network Firewall synchronizes the + rules in the endpoint, so it can properly filter network traffic. This is + part of a SyncState for a firewall. + properties: + syncStatus: + type: string + updateToken: + type: string + type: object + type: object + type: object + type: object + type: object + type: object + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: null + storedVersions: null diff --git a/operators/ack-networkfirewall-controller/0.0.5/manifests/networkfirewall.services.k8s.aws_rulegroups.yaml b/operators/ack-networkfirewall-controller/0.0.5/manifests/networkfirewall.services.k8s.aws_rulegroups.yaml new file mode 100644 index 00000000000..151fcbf85cf --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/manifests/networkfirewall.services.k8s.aws_rulegroups.yaml @@ -0,0 +1,723 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.14.0 + creationTimestamp: null + name: rulegroups.networkfirewall.services.k8s.aws +spec: + group: networkfirewall.services.k8s.aws + names: + kind: RuleGroup + listKind: RuleGroupList + plural: rulegroups + singular: rulegroup + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: RuleGroup is the Schema for the RuleGroups 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: |- + RuleGroupSpec defines the desired state of RuleGroup. + + + The object that defines the rules in a rule group. This, along with RuleGroupResponse, + define the rule group. You can retrieve all objects for a rule group by calling + DescribeRuleGroup. + + + Network Firewall uses a rule group to inspect and control network traffic. + You define stateless rule groups to inspect individual packets and you define + stateful rule groups to inspect packets in the context of their traffic flow. + + + To use a rule group, you include it by reference in an Network Firewall firewall + policy, then you use the policy in a firewall. You can reference a rule group + from more than one firewall policy, and you can use a firewall policy in + more than one firewall. + properties: + analyzeRuleGroup: + description: |- + Indicates whether you want Network Firewall to analyze the stateless rules + in the rule group for rule behavior such as asymmetric routing. If set to + TRUE, Network Firewall runs the analysis and then creates the rule group + for you. To run the stateless rule group analyzer without creating the rule + group, set DryRun to TRUE. + type: boolean + capacity: + description: |- + The maximum operating resources that this rule group can use. Rule group + capacity is fixed at creation. When you update a rule group, you are limited + to this capacity. When you reference a rule group from a firewall policy, + Network Firewall reserves this capacity for the rule group. + + + You can retrieve the capacity that would be required for a rule group before + you create the rule group by calling CreateRuleGroup with DryRun set to TRUE. + + + You can't change or exceed this capacity when you update the rule group, + so leave room for your rule group to grow. + + + Capacity for a stateless rule group + + + For a stateless rule group, the capacity required is the sum of the capacity + requirements of the individual rules that you expect to have in the rule + group. + + + To calculate the capacity requirement of a single rule, multiply the capacity + requirement values of each of the rule's match settings: + + + * A match setting with no criteria specified has a value of 1. + + + * A match setting with Any specified has a value of 1. + + + * All other match settings have a value equal to the number of elements + provided in the setting. For example, a protocol setting ["UDP"] and a + source setting ["10.0.0.0/24"] each have a value of 1. A protocol setting + ["UDP","TCP"] has a value of 2. A source setting ["10.0.0.0/24","10.0.0.1/24","10.0.0.2/24"] + has a value of 3. + + + A rule with no criteria specified in any of its match settings has a capacity + requirement of 1. A rule with protocol setting ["UDP","TCP"], source setting + ["10.0.0.0/24","10.0.0.1/24","10.0.0.2/24"], and a single specification or + no specification for each of the other match settings has a capacity requirement + of 6. + + + Capacity for a stateful rule group + + + For a stateful rule group, the minimum capacity required is the number of + individual rules that you expect to have in the rule group. + format: int64 + type: integer + description: + description: A description of the rule group. + type: string + dryRun: + description: |- + Indicates whether you want Network Firewall to just check the validity of + the request, rather than run the request. + + + If set to TRUE, Network Firewall checks whether the request can run successfully, + but doesn't actually make the requested changes. The call returns the value + that the request would return if you ran it with dry run set to FALSE, but + doesn't make additions or changes to your resources. This option allows you + to make sure that you have the required permissions to run the request and + that your request parameters are valid. + + + If set to FALSE, Network Firewall makes the requested changes to your resources. + type: boolean + encryptionConfiguration: + description: A complex type that contains settings for encryption + of your rule group resources. + properties: + keyID: + type: string + type_: + type: string + type: object + ruleGroup: + description: |- + An object that defines the rule group rules. + + + You must provide either this rule group setting or a Rules setting, but not + both. + properties: + referenceSets: + description: Contains a set of IP set references. + properties: + iPSetReferences: + additionalProperties: + description: |- + Configures one or more IP set references for a Suricata-compatible rule group. + This is used in CreateRuleGroup or UpdateRuleGroup. An IP set reference is + a rule variable that references resources that you create and manage in another + Amazon Web Services service, such as an Amazon VPC prefix list. Network Firewall + IP set references enable you to dynamically update the contents of your rules. + When you create, update, or delete the resource you are referencing in your + rule, Network Firewall automatically updates the rule's content with the + changes. For more information about IP set references in Network Firewall, + see Using IP set references (https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-ip-set-references) + in the Network Firewall Developer Guide. + + + Network Firewall currently supports Amazon VPC prefix lists (https://docs.aws.amazon.com/vpc/latest/userguide/managed-prefix-lists.html) + and resource groups (https://docs.aws.amazon.com/network-firewall/latest/developerguide/rule-groups-ip-set-references.html#rule-groups-referencing-resource-groups) + in IP set references. + properties: + referenceARN: + type: string + type: object + type: object + type: object + ruleVariables: + description: |- + Settings that are available for use in the rules in the RuleGroup where this + is defined. + properties: + iPSets: + additionalProperties: + description: |- + A list of IP addresses and address ranges, in CIDR notation. This is part + of a RuleVariables. + properties: + definition: + items: + type: string + type: array + type: object + type: object + portSets: + additionalProperties: + description: A set of port ranges for use in the rules in + a rule group. + properties: + definition: + items: + type: string + type: array + type: object + type: object + type: object + rulesSource: + description: |- + The stateless or stateful rules definitions for use in a single rule group. + Each rule group requires a single RulesSource. You can use an instance of + this for either stateless rules or stateful rules. + properties: + rulesSourceList: + description: |- + Stateful inspection criteria for a domain list rule group. + + + For HTTPS traffic, domain filtering is SNI-based. It uses the server name + indicator extension of the TLS handshake. + + + By default, Network Firewall domain list inspection only includes traffic + coming from the VPC where you deploy the firewall. To inspect traffic from + IP addresses outside of the deployment VPC, you set the HOME_NET rule variable + to include the CIDR range of the deployment VPC plus the other CIDR ranges. + For more information, see RuleVariables in this guide and Stateful domain + list rule groups in Network Firewall (https://docs.aws.amazon.com/network-firewall/latest/developerguide/stateful-rule-groups-domain-names.html) + in the Network Firewall Developer Guide. + properties: + generatedRulesType: + type: string + targetTypes: + items: + type: string + type: array + targets: + items: + type: string + type: array + type: object + rulesString: + type: string + statefulRules: + items: + description: |- + A single Suricata rules specification, for use in a stateful rule group. + Use this option to specify a simple Suricata rule with protocol, source and + destination, ports, direction, and rule options. For information about the + Suricata Rules format, see Rules Format (https://suricata.readthedocs.io/en/suricata-6.0.9/rules/intro.html). + properties: + action: + type: string + header: + description: |- + The basic rule criteria for Network Firewall to use to inspect packet headers + in stateful traffic flow inspection. Traffic flows that match the criteria + are a match for the corresponding StatefulRule. + properties: + destination: + type: string + destinationPort: + type: string + direction: + type: string + protocol: + type: string + source: + type: string + sourcePort: + type: string + type: object + ruleOptions: + items: + description: |- + Additional settings for a stateful rule. This is part of the StatefulRule + configuration. + properties: + keyword: + type: string + settings: + items: + type: string + type: array + type: object + type: array + type: object + type: array + statelessRulesAndCustomActions: + description: |- + Stateless inspection criteria. Each stateless rule group uses exactly one + of these data types to define its stateless rules. + properties: + customActions: + items: + description: |- + An optional, non-standard action to use for stateless packet handling. You + can define this in addition to the standard action that you must specify. + + + You define and name the custom actions that you want to be able to use, and + then you reference them by name in your actions settings. + + + You can use custom actions in the following places: + + + * In a rule group's StatelessRulesAndCustomActions specification. The + custom actions are available for use by name inside the StatelessRulesAndCustomActions + where you define them. You can use them for your stateless rule actions + to specify what to do with a packet that matches the rule's match attributes. + + + * In a FirewallPolicy specification, in StatelessCustomActions. The custom + actions are available for use inside the policy where you define them. + You can use them for the policy's default stateless actions settings to + specify what to do with packets that don't match any of the policy's stateless + rules. + properties: + actionDefinition: + description: |- + A custom action to use in stateless rule actions settings. This is used in + CustomAction. + properties: + publishMetricAction: + description: |- + Stateless inspection criteria that publishes the specified metrics to Amazon + CloudWatch for the matching packet. This setting defines a CloudWatch dimension + value to be published. + properties: + dimensions: + items: + description: |- + The value to use in an Amazon CloudWatch custom metric dimension. This is + used in the PublishMetrics CustomAction. A CloudWatch custom metric dimension + is a name/value pair that's part of the identity of a metric. + + + Network Firewall sets the dimension name to CustomAction and you provide + the dimension value. + + + For more information about CloudWatch custom metric dimensions, see Publishing + Custom Metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html#usingDimensions) + in the Amazon CloudWatch User Guide (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html). + properties: + value: + type: string + type: object + type: array + type: object + type: object + actionName: + type: string + type: object + type: array + statelessRules: + items: + description: A single stateless rule. This is used in + StatelessRulesAndCustomActions. + properties: + priority: + format: int64 + type: integer + ruleDefinition: + description: |- + The inspection criteria and action for a single stateless rule. Network Firewall + inspects each packet for the specified matching criteria. When a packet matches + the criteria, Network Firewall performs the rule's actions on the packet. + properties: + actions: + items: + type: string + type: array + matchAttributes: + description: |- + Criteria for Network Firewall to use to inspect an individual packet in stateless + rule inspection. Each match attributes set can include one or more items + such as IP address, CIDR range, port number, protocol, and TCP flags. + properties: + destinationPorts: + items: + description: |- + A single port range specification. This is used for source and destination + port ranges in the stateless rule MatchAttributes, SourcePorts, and DestinationPorts + settings. + properties: + fromPort: + format: int64 + type: integer + toPort: + format: int64 + type: integer + type: object + type: array + destinations: + items: + description: |- + A single IP address specification. This is used in the MatchAttributes source + and destination specifications. + properties: + addressDefinition: + type: string + type: object + type: array + protocols: + items: + format: int64 + type: integer + type: array + sourcePorts: + items: + description: |- + A single port range specification. This is used for source and destination + port ranges in the stateless rule MatchAttributes, SourcePorts, and DestinationPorts + settings. + properties: + fromPort: + format: int64 + type: integer + toPort: + format: int64 + type: integer + type: object + type: array + sources: + items: + description: |- + A single IP address specification. This is used in the MatchAttributes source + and destination specifications. + properties: + addressDefinition: + type: string + type: object + type: array + tcpFlags: + items: + description: |- + TCP flags and masks to inspect packets for, used in stateless rules MatchAttributes + settings. + properties: + flags: + items: + type: string + type: array + masks: + items: + type: string + type: array + type: object + type: array + type: object + type: object + type: object + type: array + type: object + type: object + statefulRuleOptions: + description: |- + Additional options governing how Network Firewall handles the rule group. + You can only use these for stateful rule groups. + properties: + ruleOrder: + type: string + type: object + type: object + ruleGroupName: + description: |- + The descriptive name of the rule group. You can't change the name of a rule + group after you create it. + type: string + rules: + description: |- + A string containing stateful rule group rules specifications in Suricata + flat format, with one rule per line. Use this to import your existing Suricata + compatible rule groups. + + + You must provide either this rules setting or a populated RuleGroup setting, + but not both. + + + You can provide your rule group specification in Suricata flat format through + this setting when you create or update your rule group. The call response + returns a RuleGroup object that Network Firewall has populated from your + string. + type: string + sourceMetadata: + description: |- + A complex type that contains metadata about the rule group that your own + rule group is copied from. You can use the metadata to keep track of updates + made to the originating rule group. + properties: + sourceARN: + type: string + sourceUpdateToken: + type: string + type: object + tags: + description: The key:value pairs to associate with the resource. + items: + description: |- + A key:value pair associated with an Amazon Web Services resource. The key:value + pair can be anything you define. Typically, the tag key represents a category + (such as "environment") and the tag value represents a specific value within + that category (such as "test," "development," or "production"). You can add + up to 50 tags to each Amazon Web Services resource. + properties: + key: + type: string + value: + type: string + type: object + type: array + type_: + description: |- + Indicates whether the rule group is stateless or stateful. If the rule group + is stateless, it contains stateless rules. If it is stateful, it contains + stateful rules. + type: string + required: + - capacity + - ruleGroupName + - type_ + type: object + status: + description: RuleGroupStatus defines the observed state of RuleGroup + 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 + ruleGroupResponse: + description: |- + The high-level properties of a rule group. This, along with the RuleGroup, + define the rule group. You can retrieve all objects for a rule group by calling + DescribeRuleGroup. + properties: + analysisResults: + items: + description: |- + The analysis result for Network Firewall's stateless rule group analyzer. + Every time you call CreateRuleGroup, UpdateRuleGroup, or DescribeRuleGroup + on a stateless rule group, Network Firewall analyzes the stateless rule groups + in your account and identifies the rules that might adversely effect your + firewall's functionality. For example, if Network Firewall detects a rule + that's routing traffic asymmetrically, which impacts the service's ability + to properly process traffic, the service includes the rule in a list of analysis + results. + properties: + analysisDetail: + type: string + identifiedRuleIDs: + items: + type: string + type: array + identifiedType: + type: string + type: object + type: array + capacity: + format: int64 + type: integer + consumedCapacity: + format: int64 + type: integer + description: + type: string + encryptionConfiguration: + description: |- + A complex type that contains optional Amazon Web Services Key Management + Service (KMS) encryption settings for your Network Firewall resources. Your + data is encrypted by default with an Amazon Web Services owned key that Amazon + Web Services owns and manages for you. You can use either the Amazon Web + Services owned key, or provide your own customer managed key. To learn more + about KMS encryption of your Network Firewall resources, see Encryption at + rest with Amazon Web Services Key Managment Service (https://docs.aws.amazon.com/kms/latest/developerguide/kms-encryption-at-rest.html) + in the Network Firewall Developer Guide. + properties: + keyID: + type: string + type_: + type: string + type: object + lastModifiedTime: + format: date-time + type: string + numberOfAssociations: + format: int64 + type: integer + ruleGroupARN: + type: string + ruleGroupID: + type: string + ruleGroupName: + type: string + ruleGroupStatus: + type: string + snsTopic: + type: string + sourceMetadata: + description: |- + High-level information about the managed rule group that your own rule group + is copied from. You can use the the metadata to track version updates made + to the originating rule group. You can retrieve all objects for a rule group + by calling DescribeRuleGroup (https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_DescribeRuleGroup.html). + properties: + sourceARN: + type: string + sourceUpdateToken: + type: string + type: object + tags: + items: + description: |- + A key:value pair associated with an Amazon Web Services resource. The key:value + pair can be anything you define. Typically, the tag key represents a category + (such as "environment") and the tag value represents a specific value within + that category (such as "test," "development," or "production"). You can add + up to 50 tags to each Amazon Web Services resource. + properties: + key: + type: string + value: + type: string + type: object + type: array + type_: + type: string + type: object + updateToken: + description: |- + A token used for optimistic locking. Network Firewall returns a token to + your requests that access the rule group. The token marks the state of the + rule group resource at the time of the request. + + + To make changes to the rule group, you provide the token in your request. + Network Firewall uses the token to ensure that the rule group hasn't changed + since you last retrieved it. If it has changed, the operation fails with + an InvalidTokenException. If this happens, retrieve the rule group again + to get a current copy of it with a current token. Reapply your changes as + needed, then try the operation again using the new token. + 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-networkfirewall-controller/0.0.5/metadata/annotations.yaml b/operators/ack-networkfirewall-controller/0.0.5/metadata/annotations.yaml new file mode 100644 index 00000000000..95fbf50b530 --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/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-networkfirewall-controller + operators.operatorframework.io.bundle.channels.v1: alpha + operators.operatorframework.io.bundle.channel.default.v1: alpha + operators.operatorframework.io.metrics.builder: operator-sdk-v1.28.0 + 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-networkfirewall-controller/0.0.5/tests/scorecard/config.yaml b/operators/ack-networkfirewall-controller/0.0.5/tests/scorecard/config.yaml new file mode 100644 index 00000000000..382ddefd156 --- /dev/null +++ b/operators/ack-networkfirewall-controller/0.0.5/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: {}