Commit Graph
33 Commits
Author SHA1 Message Date
Antoni Company 9882d534af fix: commit overhaul (#6915)
- Removed scope exclusion for "standard commit".
  - If 'device-and-networks' is excluded (previous behaviour), a certificate for Panorama (always outside of a template) will not be committed (imported to the config but never applied to Panorama). Therefore, panos.sh was only working for certificates used in templates and applied to devices, but not for the Panorama certificate itself.
  - According to the official documentation and the XML API Browser, there is no 'policy-and-objects' that can be excluded.
  - Although it is not mandatory that the user account is solely dedicated to replace certificates and to perform no other type of operations, it is recommended. If such recommendation is applied, the only changes being committed would be in relation to certificates. Therefore, it should be safe not to exclude any scopes.
- Changed the order for "force commit" from '<commit><partial><force>' (unofficial) to '<commit><force><partial>' (official). Both work, but it is recommended to use what is part of the official documentation and/or XML API Browser.
- Removed unofficial 'policy-and-objects' from commented out code (see above).
- Replaced 'exclude' with 'excluded' from commented out code, as per the official documentation. Both work, but see above.
- Replaced 'acmekeytest' with $_panos_user in the commented out code.

Official documentation: https://docs.paloaltonetworks.com/ngfw/api/pan-os-xml-api-request-types-and-actions/commit
XML API Browser: https://<PANOS HOST>/api
2026-04-20 11:28:17 +02:00
David Gallay 6a60695549 Allowing panos deploy-hook to only depend on PANOS_KEY.
Previous version add bugs that were not properly using the _api_key.

It also enforced to provide PANOS_USER and PANOS_PASSWORD which can be very constraining.

PANOS_KEY now has precedence. If not provided, the script falls back to PANOS_USER and PANOS_PASSWORD.
2026-02-03 10:51:42 +01:00
Antoni Company 46a2608783 fix: Renamed filaname to certname
- Changed filename to certname to better reflect the actual issue at hand.
- Restored _cdomain variable to its original place for clarity.
2025-11-22 09:22:45 +00:00
Antoni Company 3d3053f427 feat: Add custom filename for panos 2025-11-20 10:06:37 +00:00
asauerwein fdb1e8c2e4 fix usage of H1 header
change to while loop

use global variable for loop

fix if statement to be sh compliant

shfmt
2025-08-20 18:37:25 +02:00
asauerwein 5b02e86334 add template_stack option to push to device 2025-08-20 17:47:36 +02:00
neil c51104f956 fix format 2024-03-31 20:33:57 +02:00
asauerwein 4fcddd1893 add template option 2024-03-31 09:16:21 +02:00
sg1888 1984f44ffe Shell formatting 2023-07-18 20:18:12 +00:00
sg1888 02de281e40 Removed unused variable 2023-07-18 20:15:46 +00:00
sg1888 ae035deb92 Fixed shell check errors 2023-07-18 20:10:31 +00:00
sg1888 edd1b60c3d Removed ability to specify API key to facilitate future multiple host functionality. 2023-07-18 19:43:47 +00:00
sg1888 b556908cab Modified ECC file test 2023-07-12 00:03:21 +00:00
sg1888 e69a19db5c Incorporated partial commit to address issue #4198 2023-07-11 23:56:41 +00:00
sg1888 d86414febb Excluded scopes for api key test 2023-07-11 23:41:24 +00:00
sg1888 126df9647b Modified keytest to perform a partial empty commit 2023-05-24 18:51:57 +00:00
sg1888 2e2e7cd054 Added ability to force commit to firewall. Username is now also mandatory 2023-05-17 20:06:06 +00:00
sg1888 0ebc9f7a44 Fixed typo 2023-05-15 01:46:21 +00:00
sg1888 a8fba65cbd Cleaned up verbiage. Added ability to store / update user variable. Added ability to use user/pass OR key 2023-05-15 01:43:54 +00:00
sg1888 7623025b90 Fixes for POSIX sh shell 2023-04-24 18:45:50 +00:00
sg1888 df753e2619 Added functionality to save and reuse API key 2023-04-12 22:00:53 +00:00
sg1888 cbb7082afd Fixed bug with wildcard certs and ecc keys 2023-03-31 00:33:44 +00:00
Brian Torres-Gil 0453d656d6 fix(deploy/panos): data format improvements
It was discovered in testing that PAN-OS < 9.0 has slightly different
requirements for the multipart/form-data format and requires the `type`
parameter to be passed in the URL. These corrections should work for all
PAN-OS versions.
2020-03-24 20:01:51 -07:00
Paul Nguyen 21450a08c2 Fixed 6 character requirement. 2020-02-13 18:01:27 -08:00
Paul Nguyen c355b25bb1 Fixed line formatting 2020-02-12 15:00:23 -08:00
Paul Nguyen 1fe3d80838 Updated to use saveconf function and base64encode. 2020-02-12 14:57:31 -08:00
Paul Nguyen 930e16b64a fix gitdiff 2020-02-11 22:50:05 -08:00
Paul Nguyen 2077a70d03 Fixing gitdiff 2020-02-11 22:44:51 -08:00
Paul Nguyen cbdb8bd9b9 Fixing gitdiff 2020-02-11 22:34:55 -08:00
Paul Nguyen 5dcb417676 ShellCheck fixes 2020-02-11 22:26:48 -08:00
Paul Nguyen 71bc993e3d Fixed Shellchecks 2020-02-11 22:23:10 -08:00
Paul Nguyen c2812896f8 Update deployer 2020-02-11 18:15:10 -08:00
Paul Nguyen d9a9695fe0 Deploy certificates to Palo Alto Network Firewalls 2020-02-05 14:29:01 -08:00