Skip to main content

A Cloudflare Admin CLI.

Project description

cflr a Cloudflare Admin CLI

A collection of commands for working with a Cloudflare account.

This package authenticates against the Cloudflare API using environment variables. For managing these securely consider the excellent cf-vault project.

Quickstart

:warning: Python >=3.11.x required.

$ git clone
$ python -m venv .venv
$ source .venv/bin/activate # DO NOT SKIP THIS STEP!
# install dependencies (pyproject.toml)
# if developing run `python -m pip install -e ".[dev]"` for an editable install
$ python -m pip install .
# run cflr
$ cflr --help
# or
$ python -m cflr --help
# or
$ python cflr/cli.py --help

Commands

$ sso

  • Enterprise only.
  • API endpoint: /accounts/:account_id/sso/v2/connectors (undocumented as of 2024-01-13)

list/enable/disable the SSO email domains configured.

Why is this useful

Cloudflare allow Enterprise plans to configure IdP's to enforce SSO access to the dashboard across email domain(s).

:warning: If the IdP were to suffer an outage, access to the Cloudflare dashboard would be impacted as the SSO flow would fail.

In this instance, disabling the associated SSO email domain(s) will allow users to fallback to logging in via username/password/2FA.

Usage

$ cflr sso --help
$ cflr sso list :account_id
$ cflr sso disable :account_id  # an interactive pick list is returned
$ cflr sso enable :account_id   # an interactive pick list is returned

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cflr-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cflr-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file cflr-0.0.1.tar.gz.

File metadata

  • Download URL: cflr-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cflr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 081565eb944c87622fe038eb7335277c6c34c9eab9a61dc97e5be34108315323
MD5 b1c872ef1c0135da277fc858cda00f2f
BLAKE2b-256 a8f8b2900f8165cb21e3f43b6a4770f4dd60a32003214f41534768c916957e65

See more details on using hashes here.

File details

Details for the file cflr-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cflr-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cflr-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a548214bf8eeb6e77f2f964f6f5005e86e9aff398c020ff06d56b626ad64436
MD5 c43b1c703924b0ee480f3defb85fda49
BLAKE2b-256 4dd1c3b17cfce65503fef6047b5d092993a6b4269c12e459b52782373061f1a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page