PaloAltoNetworks / PaloAltoNetworks/pan-os-python
Add support for Security Profiles
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 400
- Forks
- 199
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem?
I am unable to create a complete firewall security policy solely via pan-os-python because it is
missing support for Security Profiles. The SDK supports Profile Groups but this is not enough to
build a comprehensive policy with the SDK.
Describe the solution you'd like
I would like to have the ability to create, modify, and delete all types of Security Profiles:
- Vulnerability
- Antivirus
- Anti-spyware
- URL-filtering
- File blocking
- Data filtering
- Wildfire
There should be individual classes for all these types of profiles under panos.objects
Describe alternatives you've considered
The current alternatives are to pre-create the required objects manually (which ruins
the whole idea of having and managing policy-as-a-code), or to use XML API "patches" (which
ruins the elegance of object-oriented programming with the SDK).
Additional context
We are building a next-gen risk-based web-filtering policy for our firm. It leverages a lot of PAN-OS/pan-os-python
features (amongst others) such as Security and Decryption rules, Application Groups and Filters, Custom URL categories,
Tags, EDLs and Profile Groups. The latter one operates with some 15 different individual Security Profiles.
The policy is being designed to be portable so that we were able to deploy it to different device groups and
different Panorama instances as well as standalone firewalls. Thus, a need for the manual creation of any policy elements (such as Security Profiles) becomes a significant shortcoming of the solution.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the existing Profile Group support under panos.objects and the SDK's patterns for managing PAN-OS objects. Define the scope for individual classes covering Vulnerability, Antivirus, Anti-spyware, URL-filtering, File blocking, Data filtering, and Wildfire profiles; done means each can be created, modified, and deleted through the SDK.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100