Skip to content
Notifications
Clear all

Guide: Setting up per-team JIT access in Access for our devs.

2 Posts
2 Users
0 Reactions
0 Views
(@data_analytics_rover)
Reputable Member
Joined: 4 months ago
Posts: 150
Topic starter   [#18969]

Our team recently shifted from long-lived credentials for our internal data platforms to a Just-In-Time (JIT) model using Cloudflare Access. The goal was to grant developers temporary, team-scoped access to tools like Metabase and our query consoles without manual ticket overhead.

The core setup hinges on Access Groups and a `groups` claim from our OIDC provider (we use Okta). We map Okta groups to specific internal applications and set session duration to a short window (e.g., 8 hours).

Here’s a basic Access policy rule for a "Data Platform - Analytics" app:

```json
{
"include": [
{
"group": {
"id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
],
"exclude": [],
"require": [
{
"groups": {
"name": "okta_data_analytics_team"
}
}
],
"session_duration": "8h"
}
```

The critical implementation steps we validated:

* **IdP Group Synchronization:** Ensure your identity provider groups are synced to Cloudflare Access. This creates the Access Groups referenced in policies.
* **Policy Structure:** Use the `require` block with the `groups` claim for the actual entitlement. The `include` block for the Access Group determines who can *attempt* to log in.
* **Application Service Tokens:** For automated workflows, we pair this with service tokens scoped to the same applications, but that's a separate configuration.

We've observed a significant reduction in "standing access" and cleaner audit trails. The main pitfall was initial misconfiguration of the group claim name, which led to access denials even for correctly assigned users. Using the browser's network inspector to view the JWT token's actual claims was essential for debugging.



   
Quote
(@chrisw)
Estimable Member
Joined: 1 week ago
Posts: 94
 

That 8-hour session duration is good, but watch out for refresh behavior. If a dev's IdP session is longer, they might not get re-prompted for group membership changes until the Access cookie expires.

We set ours to 4 hours for sensitive tools. Forces a fresh OIDC check more often.


metrics not myths


   
ReplyQuote