-
Notifications
You must be signed in to change notification settings - Fork 6
feat(specs): Add new security and device profile specs #719
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
Merged
kklimonda-cl
merged 10 commits into
PaloAltoNetworks:main
from
repl-dheeraj-v:feature/new-security-profiles
May 25, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
50ef484
feat(specs): Add new security and device profile specs
repl-dheeraj-v 002f802
fix(examples): Add missing Terraform examples and fix renamed data fi…
repl-dheeraj-v 84a1757
ci: trigger workflow
repl-dheeraj-v eafbb5d
feat(specs): Add specs, tests and examples for email, snmp and decryp…
kklimonda-cl 9ff9465
fix(specs): Remove sslv3 from decryption profile ssl-protocol-settings
repl-dheeraj-v 5e18c0c
fix(specs): Revert data-filtering profile rename and remove unverifie…
repl-dheeraj-v 929c2ff
fix(examples): Remove unsupported description field from decryption p…
repl-dheeraj-v 8b82071
fix(examples): Rename snmp trap profile example to match generated re…
repl-dheeraj-v b239283
feat(specs): Pull administrator spec and tests updates from reviewer …
repl-dheeraj-v 905edcb
feat(provider): Add administrator custom password hashing implementation
repl-dheeraj-v File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
assets/terraform/examples/resources/panos_administrator/resource.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| resource "panos_administrator" "example" { | ||
| location = { | ||
| panorama = {} | ||
| } | ||
| name = "admin-user" | ||
| authentication_profile = "my-auth-profile" | ||
|
|
||
| permissions = { | ||
| role_based = { | ||
| superuser = true | ||
| } | ||
| } | ||
| } |
26 changes: 26 additions & 0 deletions
26
assets/terraform/examples/resources/panos_decryption_profile/resource.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| resource "panos_decryption_profile" "example" { | ||
| location = { | ||
| shared = {} | ||
| } | ||
| name = "my-decryption-profile" | ||
|
|
||
| ssl_forward_proxy = { | ||
| block_expired_certificate = true | ||
| block_untrusted_issuer = true | ||
| block_unknown_cert = true | ||
| block_unsupported_version = true | ||
| block_unsupported_cipher = true | ||
| restrict_cert_exts = true | ||
| } | ||
|
|
||
| ssl_protocol_settings = { | ||
| min_version = "tls1-2" | ||
| max_version = "max" | ||
| keyxchg_algo_rsa = true | ||
| keyxchg_algo_ecdhe = true | ||
| enc_algo_aes_128_gcm = true | ||
| enc_algo_aes_256_gcm = true | ||
| auth_algo_sha256 = true | ||
| auth_algo_sha384 = true | ||
| } | ||
| } |
62 changes: 15 additions & 47 deletions
62
assets/terraform/examples/resources/panos_email_server_profile/resource.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,50 +1,18 @@ | ||
| resource "panos_template" "example" { | ||
| location = { panorama = {} } | ||
| name = "example-template" | ||
| } | ||
|
|
||
| # Email server profile forwarding security logs to a corporate SMTP relay | ||
| # with authenticated SMTP and custom log format strings. | ||
| resource "panos_email_server_profile" "example" { | ||
| location = { | ||
| template = { | ||
| name = panos_template.example.name | ||
| } | ||
| } | ||
|
|
||
| name = "security-alerts-email" | ||
|
|
||
| servers = [ | ||
| { | ||
| name = "corporate-smtp" | ||
| display_name = "Corporate SMTP Relay" | ||
| from = "panos-alerts@corp.example.com" | ||
| to = "security-team@corp.example.com" | ||
| and_also_to = "noc@corp.example.com" | ||
| gateway = "smtp.corp.example.com" | ||
| protocol = "SMTP" | ||
| port = 587 | ||
|
|
||
| # Use Login authentication with SMTP credentials | ||
| authentication_type = "Login" | ||
| username = "panos-svc" | ||
| password = "Str0ngP@ssw0rd!" | ||
| } | ||
| ] | ||
|
|
||
| # Custom format strings for log types relevant to security operations. | ||
| # These override the default PAN-OS email log format. | ||
| format = { | ||
| traffic = "$receive_time,$serial,$type,$subtype,$src,$dst,$proto,$action" | ||
| threat = "$receive_time,$serial,$type,$subtype,$src,$dst,$threat_name,$severity" | ||
| system = "$receive_time,$serial,$type,$subtype,$severity,$opaque" | ||
| url = "$receive_time,$serial,$type,$subtype,$src,$dst,$url" | ||
| wildfire = "$receive_time,$serial,$type,$subtype,$src,$dst,$threat_name,$filetype" | ||
| location = { | ||
| vsys = { | ||
| name = "vsys1" | ||
| } | ||
| } | ||
| name = "my-email-server-profile" | ||
|
|
||
| # Escape backslashes and double-quotes in log field values | ||
| escaping = { | ||
| escape_character = "\\" | ||
| escaped_characters = "\"" | ||
| } | ||
| } | ||
| servers = [ | ||
| { | ||
| name = "email-server-1" | ||
| from = "panos@example.com" | ||
| to = "alerts@example.com" | ||
| gateway = "smtp.example.com" | ||
| port = 25 | ||
| } | ||
| ] | ||
| } |
20 changes: 20 additions & 0 deletions
20
assets/terraform/examples/resources/panos_snmptrap_profile/resource.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| resource "panos_snmptrap_profile" "example" { | ||
| location = { | ||
| vsys = { | ||
| name = "vsys1" | ||
| } | ||
| } | ||
| name = "my-snmp-trap-profile" | ||
|
|
||
| version = { | ||
| v2c = { | ||
| servers = [ | ||
| { | ||
| name = "snmp-server-1" | ||
| manager = "192.0.2.1" | ||
| community = "public" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } |
11 changes: 11 additions & 0 deletions
11
assets/terraform/internal/provider/administrator_custom.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package provider | ||
|
|
||
| import ( | ||
| "context" | ||
|
|
||
| "github.com/PaloAltoNetworks/pango/util" | ||
| ) | ||
|
|
||
| func administratorCreatePasswordHash(ctx context.Context, client util.PangoClient, password string) (string, error) { | ||
| return client.RequestPasswordHash(ctx, password) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.