forked from k8sgateway/k8sgateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global floatingUserId to support OpenShift (#9835)
* Add helm values * Add new defaults to "1-gloo-deployment.yaml" * test working, no KubeGateway * Pod level test * GWParams * updates * cleanup template * Update _helpers.tpl * Update utils.go * Update utils.go * Create consistent-floating-user-id.yaml * Pass globals.securitySettings to helper * update casing * Update 5-resource-configmap.yaml * Adding changelog file to new location * Deleting changelog file from old location * Update Dockerfile * skip test * Update _helpers.tpl * test fix * updated helper and tests * move gg2 helper * add floatingUserId to GatewayParameters * Adding changelog file to new location * Deleting changelog file from old location * gg floatingUserId * GG2 floatingUserId helm test * Deployer Tests * Remove global fsGroup * Refactor template param names * Update merge.go * update documentation * Update to make `floatingUserId` also disable selected pod security contexts * whitespace fix * Update docs * Update cluster_setup.md * PR feedback #1 * Add ConvertUnstructured first pass * Pass matchers to ValidateSecurityContexts * Update unstructured_test.go * Update unstructured_test.go * Update install/test/helm_test.go Co-authored-by: Sam Heilbron <[email protected]> * Update helm_test.go * Update k8sgateway_test.go * PR Feedback * Update unstructured_test.go * Update unstructured_test.go --------- Co-authored-by: soloio-bulldozer[bot] <48420018+soloio-bulldozer[bot]@users.noreply.github.com> Co-authored-by: changelog-bot <changelog-bot> Co-authored-by: Sam Heilbron <[email protected]>
- Loading branch information
1 parent
4ae2093
commit df93f5f
Showing
40 changed files
with
976 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
changelog: | ||
- type: NEW_FEATURE | ||
issueLink: https://github.com/solo-io/gloo/issues/5034 | ||
resolvesIssue: false | ||
description: >- | ||
Provide a Helm field `global.securitySettings.floatingUserId` to apply floatingUserId logic, which unsets `runAsUser` | ||
for security contexts, for all deployments in the Gloo Helm chart. The global field will also cause templates to be rendered | ||
as if deployments with "enablePodSecurityContext` fields have their value set to `false` to allow for easy OpenShift deployment. | ||
This functionality has also been added to Gloo Gateway via the GatewayParameters resource. If `floatingUserId` is set in | ||
GatewayParameters, it will be applied to all deployments in the Gloo Gateway Helm chart, unless a deployment-specific value is set. | ||
- type: HELM | ||
issueLink: https://github.com/solo-io/gloo/issues/5034 | ||
resolvesIssue: false | ||
description: >- | ||
Add a new field `global.securitySettings.floatingUserId` to the Gloo Helm chart that when set to `true` has the same effect as | ||
setting `floatingUserId=true` for all deployment-specific `floatingUserId`s, as well as setting `discovery.deployment.enablePodSecurityContext=false` | ||
and gatewayProxies.gatewayProxy.podTemplate.enablePodSecurityContext=false`to allow for easy OpenShift deployment. | ||
The global value will override any local settings. | ||
- type: NON_USER_FACING | ||
description: | ||
Update `kubectl` image to use USER_ID 10101 to allow resource rollout jobs to run when user id is not set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.