Skip to content

Commit

Permalink
chore: update hydra secContext (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demonsthere authored May 11, 2023
1 parent bfa1e74 commit d954541
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 17 deletions.
6 changes: 3 additions & 3 deletions hacks/values/hydra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ janitor:
drop:
- ALL
podSecurityContext:
runAsNonRoot: false
runAsNonRoot: true

deployment:
autoscaling:
Expand Down Expand Up @@ -124,7 +124,7 @@ watcher:
drop:
- ALL
podSecurityContext:
runAsNonRoot: false
runAsNonRoot: true

serviceMonitor:
labels:
Expand All @@ -144,7 +144,7 @@ cronjob:
annotations:
ory.sh/pod_annotation: hydra
podSecurityContext:
runAsNonRoot: false
runAsNonRoot: true

test:
labels:
Expand Down
4 changes: 3 additions & 1 deletion helm/charts/example-idp/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: v2
appVersion: "1.4.6"
description: A Helm chart for deploying the reference implementation for the User Login and Consent Flow in Kubernetes
description:
A Helm chart for deploying the reference implementation for the User Login and
Consent Flow in Kubernetes
name: example-idp
version: 0.33.0
type: application
2 changes: 1 addition & 1 deletion helm/charts/example-idp/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# example-idp

![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.6](https://img.shields.io/badge/AppVersion-1.4.6-informational?style=flat-square)
![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.6](https://img.shields.io/badge/AppVersion-1.4.6-informational?style=flat-square)

A Helm chart for deploying the reference implementation for the User Login and Consent Flow in Kubernetes

Expand Down
2 changes: 1 addition & 1 deletion helm/charts/hydra-maester/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hydra-maester

![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.0.23](https://img.shields.io/badge/AppVersion-v0.0.23-informational?style=flat-square)
![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.0.23](https://img.shields.io/badge/AppVersion-v0.0.23-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down
6 changes: 3 additions & 3 deletions helm/charts/hydra/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hydra

![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.1.1](https://img.shields.io/badge/AppVersion-v2.1.1-informational?style=flat-square)
![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.1.1](https://img.shields.io/badge/AppVersion-v2.1.1-informational?style=flat-square)

A Helm chart for deploying ORY Hydra in Kubernetes

Expand All @@ -21,7 +21,7 @@ A Helm chart for deploying ORY Hydra in Kubernetes

| Repository | Name | Version |
|------------|------|---------|
| file://../hydra-maester | hydra-maester(hydra-maester) | 0.32.0 |
| file://../hydra-maester | hydra-maester(hydra-maester) | 0.33.0 |

## Values

Expand Down Expand Up @@ -161,7 +161,7 @@ A Helm chart for deploying ORY Hydra in Kubernetes
| serviceMonitor.tlsConfig | object | `{}` | TLS configuration to use when scraping the endpoint |
| test.busybox | object | `{"repository":"busybox","tag":1}` | use a busybox image from another repository |
| test.labels | object | `{}` | Provide additional labels to the test pod |
| watcher | object | `{"enabled":false,"image":"oryd/k8s-toolbox:0.0.5","mountFile":"","podMetadata":{"annotations":{},"labels":{}},"podSecurityContext":{},"securityContext":{},"watchLabelKey":"ory.sh/watcher"}` | Sidecar watcher configuration |
| watcher | object | `{"enabled":false,"image":"oryd/k8s-toolbox:0.0.5","mountFile":"","podMetadata":{"annotations":{},"labels":{}},"podSecurityContext":{},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":100,"seccompProfile":{"type":"RuntimeDefault"}},"watchLabelKey":"ory.sh/watcher"}` | Sidecar watcher configuration |
| watcher.mountFile | string | `""` | Path to mounted file, which wil be monitored for changes. eg: /etc/secrets/my-secret/foo |
| watcher.podMetadata | object | `{"annotations":{},"labels":{}}` | Specify pod metadata, this metadata is added directly to the pod, and not higher objects |
| watcher.podMetadata.annotations | object | `{}` | Extra pod level annotations |
Expand Down
12 changes: 11 additions & 1 deletion helm/charts/hydra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,17 @@ watcher:
podSecurityContext: {}

## -- container securityContext for watcher deployment
securityContext: {}
securityContext:
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 100
allowPrivilegeEscalation: false
privileged: false

## -- Janitor cron job configuration
janitor:
Expand Down
2 changes: 1 addition & 1 deletion helm/charts/keto/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# keto

![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.11.0](https://img.shields.io/badge/AppVersion-v0.11.0-informational?style=flat-square)
![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.11.0](https://img.shields.io/badge/AppVersion-v0.11.0-informational?style=flat-square)

Access Control Policies as a Server

Expand Down
2 changes: 1 addition & 1 deletion helm/charts/kratos-selfservice-ui-node/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kratos-selfservice-ui-node

![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.10.1](https://img.shields.io/badge/AppVersion-v0.10.1-informational?style=flat-square)
![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.10.1](https://img.shields.io/badge/AppVersion-v0.10.1-informational?style=flat-square)

A Helm chart for ORY Kratos's example ui for Kubernetes

Expand Down
2 changes: 1 addition & 1 deletion helm/charts/kratos/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kratos

![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.13.0](https://img.shields.io/badge/AppVersion-v0.13.0-informational?style=flat-square)
![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.13.0](https://img.shields.io/badge/AppVersion-v0.13.0-informational?style=flat-square)

A ORY Kratos Helm chart for Kubernetes

Expand Down
3 changes: 2 additions & 1 deletion helm/charts/oathkeeper-maester/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v1
appVersion: "v0.1.8"
description: A Helm chart for deploying ORY Oathkeeper Rule Controller in Kubernetes
description:
A Helm chart for deploying ORY Oathkeeper Rule Controller in Kubernetes
name: oathkeeper-maester
icon: https://raw.githubusercontent.com/ory/docs/master/docs/static/img/logo-oathkeeper.svg
version: 0.33.0
Expand Down
2 changes: 1 addition & 1 deletion helm/charts/oathkeeper-maester/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# oathkeeper-maester

![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![AppVersion: v0.1.8](https://img.shields.io/badge/AppVersion-v0.1.8-informational?style=flat-square)
![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=flat-square) ![AppVersion: v0.1.8](https://img.shields.io/badge/AppVersion-v0.1.8-informational?style=flat-square)

A Helm chart for deploying ORY Oathkeeper Rule Controller in Kubernetes

Expand Down
4 changes: 2 additions & 2 deletions helm/charts/oathkeeper/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# oathkeeper

![Version: 0.32.0](https://img.shields.io/badge/Version-0.32.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.40.3](https://img.shields.io/badge/AppVersion-v0.40.3-informational?style=flat-square)
![Version: 0.33.0](https://img.shields.io/badge/Version-0.33.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.40.3](https://img.shields.io/badge/AppVersion-v0.40.3-informational?style=flat-square)

A Helm chart for deploying ORY Oathkeeper in Kubernetes

Expand All @@ -21,7 +21,7 @@ A Helm chart for deploying ORY Oathkeeper in Kubernetes

| Repository | Name | Version |
|------------|------|---------|
| file://../oathkeeper-maester | oathkeeper-maester(oathkeeper-maester) | 0.32.0 |
| file://../oathkeeper-maester | oathkeeper-maester(oathkeeper-maester) | 0.33.0 |

## Values

Expand Down

0 comments on commit d954541

Please sign in to comment.