Skip to content

Blocking

python -m cattle_grid.auth

Usage:

python -m cattle_grid.auth [OPTIONS] COMMAND [ARGS]...

Options:

  --help  Show this message and exit.

python -m cattle_grid.auth block

Allows management of the level 0 blocklist of cattle_grid. These are the instances that you consider so bad you want them blocked on the lowest level possible.

Usage:

python -m cattle_grid.auth block [OPTIONS] COMMAND [ARGS]...

Options:

  --help  Show this message and exit.
python -m cattle_grid.auth block add

Adds domain to the current list of domain blocks

Usage:

python -m cattle_grid.auth block add [OPTIONS] DOMAIN

Options:

  --help  Show this message and exit.
python -m cattle_grid.auth block compare

Compares the current block list with the one provided by source

Usage:

python -m cattle_grid.auth block compare [OPTIONS]

Options:

  --source TEXT  URL or file to import blocklist from
  --help         Show this message and exit.
python -m cattle_grid.auth block empty

Sets the blocklist to the empty set

Usage:

python -m cattle_grid.auth block empty [OPTIONS]

Options:

  --help  Show this message and exit.
python -m cattle_grid.auth block import

Imports the blocklist from source. By default the blocklist is merged with current one. By specifying the allow flag, one can overwrite the current blocklist.

Usage:

python -m cattle_grid.auth block import [OPTIONS]

Options:

  --source TEXT  URL or file to import blocklist from
  --overwrite    Use to overwrite the existing blocklist instead of just
                 adding to it
  --help         Show this message and exit.
python -m cattle_grid.auth block list

Prints the current blockllist in alphabetical order

Usage:

python -m cattle_grid.auth block list [OPTIONS]

Options:

  --help  Show this message and exit.
python -m cattle_grid.auth block remove

Removes domain from the current list of domain blocks

Usage:

python -m cattle_grid.auth block remove [OPTIONS] DOMAIN

Options:

  --help  Show this message and exit.

python -m cattle_grid.auth new-config

Creates a new authorization configuration, including generating a public and private key.

Argument is the actor_id for the fetch actor, e.g. http://cattle_grid/fetch_actor

Usage:

python -m cattle_grid.auth new-config [OPTIONS] ACTOR_ID

Options:

  --config_file TEXT  Filename to save the configuration to
  --username TEXT     Specify a username for the fetch actor. Otherwise it is
                      automatically generated
  --force             Used to override the old configuration file
  --help              Show this message and exit.