Skip to content

feat: Add Zero Trust Access Policies, Identity Providers, Device Profiles, and Access Users resource support#6

Open
jesb1n wants to merge 4 commits intoarafato:mainfrom
jesb1n:main
Open

feat: Add Zero Trust Access Policies, Identity Providers, Device Profiles, and Access Users resource support#6
jesb1n wants to merge 4 commits intoarafato:mainfrom
jesb1n:main

Conversation

@jesb1n
Copy link

@jesb1n jesb1n commented Mar 21, 2026

Testing

Tested against a live Cloudflare account. All resources were discovered, displayed, and successfully removed.

Access Policies & Identity Providers:

> ./bin/cf-nuke nuke --mode account -k $YOUR_ACCOUNT_GLOBAL_TOKEN -u $YOUR_EMAIL -a $YOUR_ACCOUNT_ID -c ./config.yaml --no-dry-run
Scan completed in 10s: Found 5 resources in total in account 123456789: To be removed 5, Filtered 0
┌────────────────────┬──────────────────────────────────────┬────────┐
│      PRODUCT       │              ID / NAME               │ STATUS │
├────────────────────┼──────────────────────────────────────┼────────┤
│ ZTAccessPolicy     │ Allow emails: 04/09/2025             │ Ready  │
│ ZTAccessPolicy     │ MFA by DUO                           │ Ready  │
│ ZTAccessPolicy     │ Core                                 │ Ready  │
│ ZTIdentityProvider │ Zoho                                 │ Ready  │
│ ZTIdentityProvider │ 533138aa-014c-4fd6-95f7-5f9870f2fa76 │ Ready  │
└────────────────────┴──────────────────────────────────────┴────────┘

Status: 5 resources in total. Removed 0, In-Progress 0, Filtered 0, Failed 0

Executing actual nuke operation... do you really want to continue (yes/no)?
yes
Nuke operation confirmed.
┌────────────────────┬──────────────────────────────────────┬─────────┐
│      PRODUCT       │              ID / NAME               │ STATUS  │
├────────────────────┼──────────────────────────────────────┼─────────┤
│ ZTAccessPolicy     │ Allow emails: 04/09/2025             │ Removed │
│ ZTAccessPolicy     │ MFA by DUO                           │ Removed │
│ ZTAccessPolicy     │ Core                                 │ Removed │
│ ZTIdentityProvider │ Zoho                                 │ Removed │
│ ZTIdentityProvider │ 533138aa-014c-4fd6-95f7-5f9870f2fa76 │ Removed │
└────────────────────┴──────────────────────────────────────┴─────────┘

Status: 5 resources in total. Removed 5, In-Progress 0, Filtered 0, Failed 0
Process finished.

Device Profiles (dry run):

> ./bin/cf-nuke nuke --mode account -k $YOUR_ACCOUNT_GLOBAL_TOKEN -u $YOUR_EMAIL -a $YOUR_ACCOUNT_ID -c ./config.yaml
Scan completed in 11s: Found 1 resources in total in account 123456789: To be removed 1, Filtered 0
┌─────────────────┬───────────────────────────────────────┬────────┐
│     PRODUCT     │               ID / NAME               │ STATUS │
├─────────────────┼───────────────────────────────────────┼────────┤
│ ZTDeviceProfile │ Onboarding Device profile: 04/09/2025 │ Ready  │
└─────────────────┴───────────────────────────────────────┴────────┘

Status: 1 resources in total. Removed 0, In-Progress 0, Filtered 0, Failed 0

Dry run complete.

Device Profiles (actual nuke):

> ./bin/cf-nuke nuke --mode account -k $YOUR_ACCOUNT_GLOBAL_TOKEN -u $YOUR_EMAIL -a $YOUR_ACCOUNT_ID -c ./config.yaml --no-dry-run
Scan completed in 12s: Found 1 resources in total in account 123456789: To be removed 1, Filtered 0
┌─────────────────┬───────────────────────────────────────┬────────┐
│     PRODUCT     │               ID / NAME               │ STATUS │
├─────────────────┼───────────────────────────────────────┼────────┤
│ ZTDeviceProfile │ Onboarding Device profile: 04/09/2025 │ Ready  │
└─────────────────┴───────────────────────────────────────┴────────┘

Status: 1 resources in total. Removed 0, In-Progress 0, Filtered 0, Failed 0

Executing actual nuke operation... do you really want to continue (yes/no)?
yes
Nuke operation confirmed.
┌─────────────────┬───────────────────────────────────────┬─────────┐
│     PRODUCT     │               ID / NAME               │ STATUS  │
├─────────────────┼───────────────────────────────────────┼─────────┤
│ ZTDeviceProfile │ Onboarding Device profile: 04/09/2025 │ Removed │
└─────────────────┴───────────────────────────────────────┴─────────┘

Status: 1 resources in total. Removed 1, In-Progress 0, Filtered 0, Failed 0
Process finished.

@jesb1n
Copy link
Author

jesb1n commented Mar 21, 2026

Hi @arafato , Can you please check this PR ?

@jesb1n jesb1n changed the title feat: Add Zero Trust Access Policies, Identity Providers, and Device Profiles resource support feat: Add Zero Trust Access Policies, Identity Providers, Device Profiles, and Access Users resource support Mar 21, 2026
@jesb1n
Copy link
Author

jesb1n commented Mar 21, 2026

Added support for Access user:

> ./bin/cf-nuke nuke --mode account -k $YOUR_ACCOUNT_GLOBAL_TOKEN -u $YOUR_EMAIL -a $YOUR_ACCOUNT_ID -c ./config.yaml --no-dry-run
Scan completed in 9s: Found 2 resources in total in account 123456789: To be removed 2, Filtered 0
┌──────────────┬───────────────────────────┬────────┐
│   PRODUCT    │         ID / NAME         │ STATUS │
├──────────────┼───────────────────────────┼────────┤
│ ZTAccessUser │ xxxxxxxxxxxxxx            │ Ready  │
│ ZTAccessUser │ xxxxxxxxxxxxxxxxxxxxxxxxx │ Ready  │
└──────────────┴───────────────────────────┴────────┘

Status: 2 resources in total. Removed 0, In-Progress 0, Filtered 0, Failed 0

[SCAN ISSUES] 2 warnings/errors occurred during scan. See cf-nuke-scan-20260321-172531.log for details.
Executing actual nuke operation... do you really want to continue (yes/no)?
yes
Nuke operation confirmed.
┌──────────────┬───────────────────────────┬─────────┐
│   PRODUCT    │         ID / NAME         │ STATUS  │
├──────────────┼───────────────────────────┼─────────┤
│ ZTAccessUser │ xxxxxxxxxxxxxx            │ Removed │
│ ZTAccessUser │ xxxxxxxxxxxxxxxxxxxxxxxxx │ Removed │
└──────────────┴───────────────────────────┴─────────┘

Status: 2 resources in total. Removed 2, In-Progress 0, Filtered 0, Failed 0
Process finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant