Skip to content
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

[EPIC] SSO access to all clusters #2473

Open
15 of 21 tasks
gawertm opened this issue May 11, 2023 · 1 comment
Open
15 of 21 tasks

[EPIC] SSO access to all clusters #2473

gawertm opened this issue May 11, 2023 · 1 comment
Labels
needs/refinement Needs refinement in order to be actionable team/bigmac Team BigMac team/shield Team Shield topic/capi

Comments

@gawertm
Copy link

gawertm commented May 11, 2023

related #1432

Goal

We want to enable access to all our clusters (MC and WC) and applications (happa, grafana etc) using OIDC. As an access method for engineers interacting with clusters it has a lot of advantages. For example

  • direct access to each cluster (not for example, needing to give access to an MC to grant access to WC)
  • ease to log in again via refresh tokens
  • SSO providers ease access management (e.g. management via groups, giving overviews on who has access)
  • access can be revoked at any point and access can be easily reviewed via idp logs

Current state

We run dex-operator on each MC. The operator reconciles instances of dex-app. This includes the dex-app used to access the MC itself but also dex-app installed on workload clusters associated with the MC.
For each reconciled dex-app, the operator automatically creates connectors for the identity providers which are configured for the MC. Currently supported identity providers are azure ad and github.
The operator supports this for giantswarm and customer connectors. However, currently we do not use it for customers yet.

Every MC has dex configured but only a few WCs do. This means that we have automated SSO for giantswarm staff to all MCs via github and azure ad as well as the same access to a few WCs that have dex installed.

This is an old sketch of dex-operator (before it was implemented, so the design likely changed.)
Credentials for dex-operator are created/renewed via opsctl create dexconfig at the moment.

Screenshot from 2022-09-22 21-05-35

Desired state

We want automatic setup of SSO access to all clusters.
Right now, to enable OIDC access to a workload cluster, api server flags need to be configured. Also, RBAC configuration needs to be present. Furthermore, dex-app, athena, cert-manager, nginx-ingress-controller need to be installed.
We should be able to achieve all of these things via default app configuration.

OIDC access to management clusters is almost fully automated. However, we should improve it by integrating creation/renewal of dex-operator credentials into the bootstrap process.

make workload cluster sso the default for giant swarm staff

Preview Give feedback
  1. team/rainbow
    anvddriesch
  2. team/bigmac
    anvddriesch
  3. team/bigmac
    anvddriesch
  4. 5 of 5
  5. 0 of 4
    team/shield

improve sso setup

Preview Give feedback
  1. team/bigmac
    anvddriesch
  2. team/shield
  3. team/shield
    anvddriesch

make workload cluster sso the default for customers

Preview Give feedback
  1. component/dex team/bigmac
    vvondruska
  2. team/bigmac
    anvddriesch
  3. team/shield
  4. team/bigmac
    anvddriesch
  5. team/bigmac
    anvddriesch
@gawertm gawertm added this to Roadmap May 15, 2023
@gawertm gawertm moved this to Ready Soon (<4 weeks) in Roadmap May 15, 2023
@anvddriesch anvddriesch changed the title rainbow: sso on all workload clusters SSO on all workload clusters May 15, 2023
@anvddriesch anvddriesch changed the title SSO on all workload clusters SSO access to all clusters May 15, 2023
@anvddriesch anvddriesch added team/bigmac Team BigMac needs/refinement Needs refinement in order to be actionable labels May 15, 2023
@gawertm gawertm moved this from Ready Soon (<4 weeks) to Near Term (1-3 months) in Roadmap Jun 5, 2023
@gawertm gawertm moved this from Up Next ➡️ to In Progress ⛏️ in Roadmap Nov 20, 2023
@gawertm gawertm changed the title SSO access to all clusters [EPIC] SSO access to all clusters Nov 20, 2023
@gawertm
Copy link
Author

gawertm commented Jun 24, 2024

we need to revisit this topic with Kubernetes v1.29 structured auth config as well as the Pinniped findings here #3453

@stone-z stone-z added the team/shield Team Shield label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/refinement Needs refinement in order to be actionable team/bigmac Team BigMac team/shield Team Shield topic/capi
Projects
Status: In Progress ⛏️
Development

No branches or pull requests

3 participants