wso2 / kubernetes-apim

Kubernetes and Helm resources for WSO2 API Manager
Apache License 2.0
112 stars 216 forks source link

Allow specification of runtime user #553

Closed antechrestos closed 4 weeks ago

antechrestos commented 2 years ago

Purpose

Allow specification of runAsUserand runAsGroup. This is needy as some cluster (like openshift) may have security constraints that only accepts some range (on our openshift instance for instance it must be in the ranges 1002150000, 1002159999)

Goals

Add some parameters un values.yml files with default value to 802 (the previous static value) and reference it in deployment template files.

Approach

Add two parameters in values.yml. These two are kubernetes.security.runtimeUser and kubernetes.security.runtimeGroup. I willingly put these values under kubernetesas to my mind it is global to the cluster and has nothing to do with a specific business component (am, mi, gateway...)

User stories

None

Release note

Add two parameters: kubernetes.security.runtimeUser to specify the securityContext.runAsUser and kubernetes.security.runtimeGroupto specify the securityContext.runAsGroup

Documentation

“N/A”

Certification

“N/A” pure kubernetes runtime issue

Marketing

“N/A”

Automation tests

“N/A”

Security checks

Samples

“N/A”

Related PRs

“N/A”

Migrations (if applicable)

“N/A”

Test environment

“N/A”

Learning

“N/A”

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.