Skip to main content

No project description provided

Project description

cattle_grid

cattle_grid is meant to simplify handling authentication in server to server communication of the Fediverse. cattle_grid checks the HTTP signatures based on the headers. For this public keys are retrieved and cached.

For installation instructions see the documentation.

Development

One can run the pytest tests via

poetry install
poetry run pytest

Development with Fediverse pasture

In your Funfedi.dev directory (see here for details), run

cd fediverse-pasture
docker compose --file pasture.yml up pasture_verify_actor

Now in the cattle grid directory, run

poetry run python -mcattle_grid.config --actor_id http://cattle_grid/actor

to create a cattle_grid.toml file. Then start the docker containers via

docker compose up

By opening http://localhost:2909/?actor_uri=jskitten@cattle_grid_demo, you should then be able to view the verify actor result. By refreshing the page and inspecting the log files, you can also check that the requests only ran once.

Running GUI tests with the pasture

Start mastodon accessible through your browser

cd fediverse-pasture
docker compose --file mastodon42.yml --profile nginx up

See Fun Fediverse Development for instructions.

Then you can open mastodon42web and lookup jskitten@cattle_grid_demo. When you send a message to this kitten, it should reply with a meow, e.g.

Kitten meows

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

cattle_grid-0.0.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

cattle_grid-0.0.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cattle_grid-0.0.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.6 Linux/5.15.0-89-generic

File hashes

Hashes for cattle_grid-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9a13bd9f95e7406db46d71ed6d5c56518f1080b04378585c304f9d9ab74c00d4
MD5 d10fe892048939b822566d87b2d1e3ae
BLAKE2b-256 30c0d9a99637adf2d28b22b1a93858d11a3a30d5cb2f5d0cc026706d6ba4e492

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cattle_grid-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.6 Linux/5.15.0-89-generic

File hashes

Hashes for cattle_grid-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff732d81da33afed73e1342629497b63b9e43d2c1ac91f406b0c9602628c4334
MD5 70c5edc914669be1de8f567b2e093a3e
BLAKE2b-256 8ce9937988d333ce81a40cbf6ef3bd961d423b166d9daec067acd58414abdb70

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