-
Notifications
You must be signed in to change notification settings - Fork 3
/
artifacthub-pkg.yml
84 lines (84 loc) · 2.65 KB
/
artifacthub-pkg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Kubewarden Artifacthub Package config
#
# Use this config to submit the policy to https://artifacthub.io.
#
# This config can be saved to its default location with:
# kwctl scaffold artifacthub > artifacthub-pkg.yml
version: 0.1.16
name: ingress-policy
displayName: Ingress Policy
createdAt: 2023-10-16T07:49:55.98522702Z
description: Enforce requirements on Ingress resources
license: Apache-2.0
homeURL: https://github.com/kubewarden/ingress-policy
containersImages:
- name: policy
image: ghcr.io/kubewarden/policies/ingress:v0.1.16
keywords:
- ingress
links:
- name: policy
url: https://github.com/kubewarden/ingress-policy/releases/download/v0.1.16/policy.wasm
- name: source
url: https://github.com/kubewarden/ingress-policy
install: |
The policy can be obtained using [`kwctl`](https://github.com/kubewarden/kwctl):
```console
kwctl pull ghcr.io/kubewarden/policies/ingress:v0.1.16
```
Then, generate the policy manifest and tune it to your liking. For example:
```console
kwctl scaffold manifest -t ClusterAdmissionPolicy registry://ghcr.io/kubewarden/policies/ingress:v0.1.16
```
maintainers:
- name: Kubewarden developers
email: cncf-kubewarden-maintainers@lists.cncf.io
provider:
name: kubewarden
recommendations:
- url: https://artifacthub.io/packages/helm/kubewarden/kubewarden-controller
annotations:
kubewarden/mutation: 'false'
kubewarden/questions-ui: |
questions:
- default: false
description: This policy allows you to restrict ingress resources.
tooltip: >-
Whether the spec for ingress resources has to include a TLS attribute that
includes all hosts defined in the .spec.rules attribute of the ingress
resource.
group: Settings
label: Require TLS
required: false
type: boolean
variable: requireTLS
- default: []
description: >-
A list of allowed ports inside `.spec.rules.paths.backend.service.port`. If
this array contains at least one port, any other port will be rejected.
group: Settings
label: Allow ports
required: false
type: array[
variable: allowPorts
- default: []
description: >-
A list of denied ports inside `.spec.rules.paths.backend.service.port`. If
any port matches a port on this array, the ingress resource will be
rejected, otherwise it will be accepted.
group: Settings
label: Deny ports
required: false
type: array[
variable: denyPorts
kubewarden/resources: Ingress
kubewarden/rules: |
- apiGroups:
- networking.k8s.io
apiVersions:
- v1
resources:
- ingresses
operations:
- CREATE
- UPDATE