Skip to content

Commit

Permalink
fix: use correct OCI address
Browse files Browse the repository at this point in the history
The policy metadata pointed to the old OCI address used by the policy,
because of that the `artifacthub-pkg.yml` file pointed to a version of
the policy that did not exist.

This caused the policy to not be installable by the KW UI

Fixes #48

Signed-off-by: Flavio Castelli <[email protected]>
  • Loading branch information
flavio committed Apr 3, 2023
1 parent 4a429b0 commit 199d18a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "allow-privilege-escalation-psp"
version = "0.2.4"
version = "0.2.5"
authors = ["Flavio Castelli <[email protected]>"]
edition = "2018"

Expand Down
10 changes: 5 additions & 5 deletions artifacthub-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
#
# This config can be saved to its default location with:
# kwctl scaffold artifacthub > artifacthub-pkg.yml
version: 0.2.4
version: 0.2.5
name: allow-privilege-escalation-psp
displayName: Allow Privilege Escalation PSP
createdAt: 2023-03-30T14:08:42.693857693Z
createdAt: 2023-04-03T16:09:06.72932456Z
description: Replacement for the Kubernetes Pod Security Policy that controls the allowance of privilege escalation in containers and init containers of a pod
license: Apache-2.0
homeURL: https://github.com/kubewarden/allow-privilege-escalation-psp-policy
containersImages:
- name: policy
image: ghcr.io/kubewarden/policies/psp-allow-privilege-escalation:v0.2.4
image: ghcr.io/kubewarden/policies/allow-privilege-escalation-psp:v0.2.5
keywords:
- PSP
- privilege escalation
links:
- name: policy
url: https://github.com/kubewarden/allow-privilege-escalation-psp-policy/releases/download/v0.2.4/policy.wasm
url: https://github.com/kubewarden/allow-privilege-escalation-psp-policy/releases/download/v0.2.5/policy.wasm
- name: source
url: https://github.com/kubewarden/allow-privilege-escalation-psp-policy
install: |
The policy can be obtained using [`kwctl`](https://github.com/kubewarden/kwctl):
```console
kwctl pull ghcr.io/kubewarden/policies/psp-allow-privilege-escalation:v0.2.4
kwctl pull ghcr.io/kubewarden/policies/allow-privilege-escalation-psp:v0.2.5
```
maintainers:
- name: Kubewarden developers
Expand Down
2 changes: 1 addition & 1 deletion metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ annotations:
io.artifacthub.displayName: Allow Privilege Escalation PSP
io.artifacthub.resources: Deployment,Replicaset,Statefulset,Daemonset,Replicationcontroller,Job,Cronjob,Pod
io.artifacthub.keywords: PSP, privilege escalation
io.kubewarden.policy.ociUrl: ghcr.io/kubewarden/policies/psp-allow-privilege-escalation
io.kubewarden.policy.ociUrl: ghcr.io/kubewarden/policies/allow-privilege-escalation-psp
# kubewarden specific:
io.kubewarden.policy.title: allow-privilege-escalation-psp
io.kubewarden.policy.description: Replacement for the Kubernetes Pod Security Policy that controls the allowance of privilege escalation in containers and init containers of a pod
Expand Down

0 comments on commit 199d18a

Please sign in to comment.