Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generation of cloudflare_access_application #736

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hur
Copy link

@hur hur commented Aug 16, 2024

Fixes #734

The Cloudflare API response for ListAccessApplications seems to contain much more policy-related data than is necessary to generate the Terraform manifests, which only require the policy IDs. writeAttrLine panics on this data as it is of unexpected format.

This PR remaps the policy data to only keep the IDs of the policies associated with each application.

I have tested this locally, but have not added any unit tests as they seem to require API key access for specific zones/accounts for the regeneration part. Happy to add some if there's any guidelines on the process.

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.

panic: interface conversion: interface {} is bool, not string when generating cloudflare_access_application
1 participant