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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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