Hi everyone! I’m new here and honestly a bit nervous to post, but I've been working with Cloudflare Access for a few months now and I'm excited to share something I built.
I found myself writing the same Access policies over and over for different teams and SaaS apps (like Google Workspace, GitHub, Salesforce, etc.). It gets tricky remembering the exact JWT claims or identity provider settings. So, I started compiling my successful policies into a simple snippet library.
It’s just a GitHub repo with Markdown files. Each snippet includes:
- A brief description of the use case (e.g., "Allow only members of a specific GitHub team")
- The full Access policy JSON
- Any important notes about required IdP configuration
- Common pitfalls I ran into (like mismatched attribute names)
For example, the Salesforce one was surprisingly finicky with the SAML assertions. Having this library saved me so much time during onboarding.
I’m wondering:
- Has anyone else done something similar?
- Are there any common SaaS apps or scenarios you think I should add?
- I’d love feedback on the structure—is there anything missing that would make these snippets more useful for a team?
I’m still learning, so any advice would be amazing! The repo is public, and I’m happy to share the link if that’s allowed.