-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy Dex in MetalK8s from the Helm charts #2007
Comments
Please make sure to follow the exact mechanism used to install the other chart-based addons we embed. |
Why would we want/need to run this in |
@NicolasT since the Dex storage backend we will most likely be using is the Kubernetes backend, i can't think of any reason to not leave it in the Generally what is considered best practice for such?? |
Dex is using K8s API for interfacing with its storage, so it can run as any other workload (e.g. all Operators use K8s API as well). Having a dedicated namespace, as we do for the
|
|
Generated using ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Closes: #2007
Generated using ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Closes: #2007
Generated using ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Closes: #2007
Generated using ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Closes: #2007
Add k8s secrets used for dex deployment Add sls files required for dex certificate generation Generate dex deployment chart using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly because of how we render the charts. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Add k8s secrets used for dex deployment Add sls files required for dex certificate generation Generate dex deployment chart using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly because of how we render the charts. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Add k8s secrets used for dex deployment Add sls files required for dex certificate generation Generate dex deployment chart using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly because of how we render the charts. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Add k8s secrets used for dex deployment Add sls files required for dex certificate generation Generate dex deployment chart using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly because of how we render the charts. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Add k8s secrets used for dex deployment Add sls files required for dex certificate generation Generate dex deployment chart using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly because of how we render the charts. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Add k8s secrets used for dex deployment Add sls files required for dex certificate generation Generate dex deployment chart using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly because of how we render the charts. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Automatically generate dex deployment, service account, cluster role and cluster role bindings The above is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Automatically generate dex deployment, service account, cluster role and cluster role bindings The above is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Automatically generate dex deployment, service account, cluster role and cluster role bindings The above is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Automatically generate dex deployment, service account, cluster role and cluster role bindings The above is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
Automatically generate dex deployment, service account, cluster role and cluster role bindings The above is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
``` $ helm fetch -d charts --untar stable/dex ``` Closes: #2007
This commit adds the following: Adds method to obtain OIDC service IP and binds this static IP as the ClusterIP address for DEX service Adds `metalk8-auth` namespace which holds OIDC/authentication cluster resources(PODS) Automatically generate dex deployment, service account, cluster role and cluster role bindings The DEX chart.sls is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls Add states to deploy DEX and related server certificates Closes: #2007 Closes: #2011
``` $ helm fetch -d charts --untar stable/dex ``` Closes: #2007
This commit adds the following: Adds method to obtain OIDC service IP and binds this static IP as the ClusterIP address for DEX service Adds `metalk8-auth` namespace which holds OIDC/authentication cluster resources(PODS) Automatically generate dex deployment, service account, cluster role and cluster role bindings The DEX chart.sls is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls Add states to deploy DEX and related server certificates Closes: #2007 Closes: #2011
This commit adds the following: Adds method to obtain OIDC service IP and binds this static IP as the ClusterIP address for DEX service Adds `metalk8-auth` namespace which holds OIDC/authentication cluster resources(PODS) Automatically generate dex deployment, service account, cluster role and cluster role bindings The DEX chart.sls is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls Add states to deploy DEX and related server certificates Closes: #2007 Closes: #2011
``` $ helm fetch -d charts --untar stable/dex ``` Closes: #2007
This commit adds the following: Adds method to obtain OIDC service IP and binds this static IP as the ClusterIP address for DEX service Adds `metalk8-auth` namespace which holds OIDC/authentication cluster resources(PODS) Automatically generate dex deployment, service account, cluster role and cluster role bindings The DEX chart.sls is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls Add states to deploy DEX and related server certificates Closes: #2007 Closes: #2011
This commit adds the following: Adds Dex Image to the buildchain Adds method to obtain OIDC service IP and binds this static IP as the ClusterIP address for Dex service Adds `metalk8-auth` namespace which holds OIDC/authentication cluster resources(PODS) Automatically generate Dex deployment, service account, cluster role and clusterrolebindings The Dex chart.sls is generated from the Helm charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls Add states to deploy Dex and related server certificates Closes: #2007 Closes: #2011
Automatically generate dex deployment, service account, cluster role and cluster role bindings The above is generated from the charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls ``` Note: The generated dex `charts.sls` can not render the `Secret` template properly. The render injects `\\..` which makes the sls invalid and cannot be applied by K8s. To resolve this, after chart generation we delete the secret section and make use of `dex-conf.sls` Closes: #2007
``` $ helm fetch -d charts --untar stable/dex ``` Closes: #2007
This commit adds the following: Adds Dex Image to the buildchain Adds method to obtain OIDC service IP and binds this static IP as the ClusterIP address for Dex service Adds `metalk8-auth` namespace which holds OIDC/authentication cluster resources(PODS) Automatically generate Dex deployment, service account, cluster role and clusterrolebindings The Dex chart.sls is generated from the Helm charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls Add states to deploy Dex and related server certificates Closes: #2007 Closes: #2011
``` $ helm fetch -d charts --untar stable/dex ``` Closes: #2007
This commit adds the following: Adds Dex Image to the buildchain Adds method to obtain OIDC service IP and binds this static IP as the ClusterIP address for Dex service Adds `metalk8-auth` namespace which holds OIDC/authentication cluster resources(PODS) Automatically generate Dex deployment, service account, cluster role and clusterrolebindings The Dex chart.sls is generated from the Helm charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls Add states to deploy Dex and related server certificates Closes: #2007 Closes: #2011
``` $ helm fetch -d charts --untar stable/dex ``` Closes: #2007
This commit adds the following: Adds Dex Image to the buildchain Adds method to obtain OIDC service IP and binds this static IP as the ClusterIP address for Dex service Adds `metalk8-auth` namespace which holds OIDC/authentication cluster resources(PODS) Automatically generate Dex deployment, service account, cluster role and clusterrolebindings The Dex chart.sls is generated from the Helm charts using: ``` $ ./charts/render.py dex metalk8s-auth charts/dex.yaml charts/dex/ > salt/metalk8s/addons/dex/deployed/chart.sls Add states to deploy Dex and related server certificates Closes: #2007 Closes: #2011
Component:
'salt', 'kubernetes', 'containers'
Why this is needed:
To integrate a flexible identity and access management(IAM) in Metalk8s based on the authentication user requirements, we need to deploy an OIDC provider.
Dex is our choice of OIDC and needs to be deployed in a MetalK8s cluster.
What should be done:
Implementation proposal (strongly recommended):
Test plan:
metalk8s-auth
namespaceEpic iteration: #1988
The text was updated successfully, but these errors were encountered: