pyramid_cloudflare_access
Introduction
Installation
Just do
pip install pyramid_cloudflare_access
or
easy_install pyramid_cloudflare_access
Compatibility
pyramid_cloudflare_access runs with pyramid>=1.7 and python>=3.6. Other versions might also work.
Review Apps skip the Cloudflare Access check, as their domains are dynamic and as such can’t be configured in Cloudflare dashboard in advance. *.herokuapp.com is skipped by default. To name the hostnames yourself, for example on Fly.io:
pyramid_cloudflare_access.bypass_hosts = fly.dev
Several are allowed, whitespace separated:
pyramid_cloudflare_access.bypass_hosts =
herokuapp.com
fly.dev
Setting this replaces the default rather than adding to it, so an app that has left Heroku can have *.herokuapp.com verified like any other hostname.
A bypassed hostname is served without authentication, so protect it another way, such as the IP allowlist in pyramid_heroku.herokuapp_access. This matters most on platforms that route by TLS SNI rather than by Host, because there the Host header is whatever the caller sends.
Usage
Add Cloudfalre config to a production.ini:
pyramid_cloudflare_access.policy_audience = "my_audience" pyramid_cloudflare_access.team = "https://team.cloudfare-access.com"
More information can be found at https://developers.cloudflare.com/cloudflare-one/identity/users/validating-json#python-example
Usage example for the tween:
def main(global_config, **settings):
config = Configurator(settings=settings)
config.include('pyramid_cloudflare_access')
return config.make_wsgi_app()
Releasing
Update CHANGES.rst.
Update pyproject.toml version.
Run poetry check.
Run poetry publish --build.
We’re hiring!
At Niteo we regularly contribute back to the Open Source community. If you do too, we’d like to invite you to join our team!
Metadata
Release files for pyramid_cloudflare_access 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyramid_cloudflare_access-1.3.1.tar.gz | 7.9 kB | Without provenance | Details for pyramid_cloudflare_access-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyramid_cloudflare_access-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for pyramid_cloudflare_access-1.3.1-py3-none-any.whl |
Total release size: 17.0 kB
Release files / pyramid_cloudflare_access-1.3.1.tar.gz
| Download URL | pyramid_cloudflare_access-1.3.1.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba0ced8a3f3fbf2a55aaa42af549ff4c993ea5e868e26245fec09b033ed39b35
|
|
BLAKE2b-256 checksum How to use checksums |
cf739a3579481623d6802b939d3987955c7c09fa1f13d7fdec1d9bcb45f78d38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.15 Darwin/25.6.0
|
Release files / pyramid_cloudflare_access-1.3.1-py3-none-any.whl
| Download URL | pyramid_cloudflare_access-1.3.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66aa5f7584f23af13ed87ecca5741d5e5232aab698637021a278da3154445c8b
|
|
BLAKE2b-256 checksum How to use checksums |
9161a914dba3fe6728c19aa2fafcf4f61b456218dd431ded7a5f86e6182cd26e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.15 Darwin/25.6.0
|
Security for pyramid_cloudflare_access 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.