[GH-ISSUE #6058] Export Policies for Documentation #11540

Closed
opened 2026-08-05 01:29:58 -04:00 by saavagebueno · 3 comments
Owner

Originally created by @securebitsorg on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/6058

Does your feature request address a specific issue? Please describe it.
Exporting policies for documentation purposes, for example, for ISO 27001 or NIS2.

Describe the desired solution
A clear and concise description of what should happen.

Describe alternatives you have considered
A clear and concise description of all alternative solutions or features you have considered.

Additional context
According to ISO 27001 and NIS2, organizations are required to document rules and configurations for firewalls, routing, etc., as well as any changes made to them. Therefore, it would be very useful if there were a simple way to export policies, for example as a CSV file.
Thank you very much for this great project!

Beste Grüße

Marcel

Originally created by @securebitsorg on GitHub (May 4, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/6058 **Does your feature request address a specific issue? Please describe it.** Exporting policies for documentation purposes, for example, for ISO 27001 or NIS2. **Describe the desired solution** A clear and concise description of what should happen. **Describe alternatives you have considered** A clear and concise description of all alternative solutions or features you have considered. **Additional context** According to ISO 27001 and NIS2, organizations are required to document rules and configurations for firewalls, routing, etc., as well as any changes made to them. Therefore, it would be very useful if there were a simple way to export policies, for example as a CSV file. Thank you very much for this great project! Beste Grüße Marcel
saavagebueno added the feature-request label 2026-08-05 01:29:58 -04:00
Author
Owner

@Blackclaws commented on GitHub (May 5, 2026):

I'm fairly certain that the API already supports that. Its just the dashboard that doesn't expose an export button. But a simple program could just call the API with a service account API token and parse the policy info into a CSV file. If you do it on a cronjob you can even create diffs and reports on changes weekly.

<!-- gh-comment-id:4379455832 --> @Blackclaws commented on GitHub (May 5, 2026): I'm fairly certain that the API already supports that. Its just the dashboard that doesn't expose an export button. But a simple program could just call the API with a service account API token and parse the policy info into a CSV file. If you do it on a cronjob you can even create diffs and reports on changes weekly.
Author
Owner

@skpiller commented on GitHub (May 5, 2026):

As Blackclaws mentioned, here is the link to the documentation: https://docs.netbird.io/api/resources/policies#list-all-policies

You can simply parse (everything) it to a json:

curl -X GET https://NETBIRD-URL/api/policies
-H 'Accept: application/json'
-H 'Authorization: Token TOKEN' | jq >> output.policies

<!-- gh-comment-id:4380358057 --> @skpiller commented on GitHub (May 5, 2026): As Blackclaws mentioned, here is the link to the documentation: https://docs.netbird.io/api/resources/policies#list-all-policies You can simply parse (everything) it to a _json_: curl -X GET https://NETBIRD-URL/api/policies \ -H 'Accept: application/json' \ -H 'Authorization: Token TOKEN' | jq >> _output.policies_
Author
Owner

@securebitsorg commented on GitHub (May 5, 2026):

Thank you very much for your reply!

<!-- gh-comment-id:4383026324 --> @securebitsorg commented on GitHub (May 5, 2026): Thank you very much for your reply!
Sign in to join this conversation.
No Label feature-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#11540