/dexctl-py

Python client for dexidp/dex

Primary LanguagePythonMIT LicenseMIT

dexctl-py

Python client for dexidp/dex

Requirements

  • Python3
  • Activated virtualenv for the project (e.g. virtualenv -p python3 venv; . venv/bin/activate)
  • Kubernetes config/context configured such that e.g. kubectl get secret works.
  • Dex (https://github.com/dexidp/dex) up and running and gRPC port accessible from your host.
  • gRPC certs for Dex on your filesystem (recommended paths: ca.crt, tls.crt, tls.key)

Setup/Hack

  1. pip install -r requirements.txt
  2. export PYTHONPATH=.
  3. bin/dexctl --help

Future development

  1. Tests!
  2. Allow fetching gRPC TLS from k8s
  3. Allow changing keys within the target secret where client ID and secret are stored
  4. More docs
  5. Package/publish?