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

[Marketplace Contribution] Akamai WAF - Content Pack Update #30111

Merged

Conversation

content-bot
Copy link
Collaborator

Original External PR

external pull request

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Contributor

@davistonehub

Notes

To whom it may concern, FIS is using Cloud-based Dev instance offered by Palo and all the development work is carried out via Dev's Web Interface.
Debug log of the execution for each command will be provided as review reference instead of Demo Video Link.

Video Link

Short demo video of the Pack usage. Speeds up the review. Optional but recommended. Use a video sharing service such as Google Drive or YouTube.

* "contribution update to pack "Akamai WAF""

* Update Akamai_WAF.py

Added [0] to line entry_context.append(raw_response.get('siteShieldMaps'))
human_readable.append(raw_response.get('siteShieldMaps'))

* Update Akamai_WAF.py

1) Added additional validations when all "enrollment_path", "enrollment_id", "change_id" are all blank.
2) Added Dateparer for input dates

* Update Akamai_WAF.yml

Added output for both commands:
akamai-get-cps-enrollment-deployment
akamai-get-cps-change-status
Added additional description for both arguments:
enrollment_id
change_id

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/ReleaseNotes/2_0_8.md

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Akamai_WAF.yml

Updated "akamai-update-cps-enrollment-schedule" command's Arguments to predefined value.

* Update Akamai_WAF.yml

Updated "akamai-update-cps-enrollment" commmand's Arguments.

* Update Akamai_WAF.yml

Updated command outputs descriptions and types.

* Update Akamai_WAF.yml

Updated Command Output descriptions and types

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* updated the yml according to master

---------

Co-authored-by: davistonehub <111578758+davistonehub@users.noreply.github.com>
Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>
@content-bot content-bot added Contribution Thank you! Contributions are always welcome! Xsoar Support Level Indicates that the contribution is for XSOAR supported pack Internal PR labels Oct 10, 2023
@RotemAmit RotemAmit requested review from RotemAmit and removed request for omerKarkKatz October 16, 2023 14:16
@RotemAmit RotemAmit assigned RotemAmit and unassigned omerKarkKatz Oct 16, 2023
@ShirleyDenkberg ShirleyDenkberg self-assigned this Oct 22, 2023
Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml Outdated Show resolved Hide resolved
Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml Outdated Show resolved Hide resolved
Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml Outdated Show resolved Hide resolved
Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml Outdated Show resolved Hide resolved
Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml Outdated Show resolved Hide resolved
Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml Outdated Show resolved Hide resolved
Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml Outdated Show resolved Hide resolved
Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml Outdated Show resolved Hide resolved
- ***akamai-update-cps-enrollment***
- ***akamai-update-cps-enrollment-schedule***
- ***akamai-get-cps-change-status***
- Updated the ***akamai-update-change*** with a new parameter named "key_algorithm" to allow "ECDSA" format in addition to "RSA"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Updated the ***akamai-update-change*** with a new parameter named "key_algorithm" to allow "ECDSA" format in addition to "RSA"
- Updated the ***akamai-update-change*** comman with a new parameter named "key_algorithm" to allow "ECDSA" format in addition to "RSA".

Packs/Akamai_WAF/ReleaseNotes/2_0_9.md Outdated Show resolved Hide resolved
@ShirleyDenkberg
Copy link
Contributor

@RotemAmit After implementing doc comments in the yml file, regenerate the integration readme.
Doc review completed.

@RotemAmit
Copy link
Contributor

After adding unit tests to all of the new commands in this contribution, the coverage is 22.8%.
This is the only failure in the code.pan.run step.

@ShahafBenYakir ShahafBenYakir merged commit cdb5f84 into master Oct 23, 2023
19 of 21 checks passed
@ShahafBenYakir ShahafBenYakir deleted the contrib/xsoar-contrib_davistonehub-contrib-Akamai_WAF-1 branch October 23, 2023 14:34
sapirshuker pushed a commit that referenced this pull request Dec 21, 2023
* [Marketplace Contribution] Akamai WAF - Content Pack Update (#29671)

* "contribution update to pack "Akamai WAF""

* Update Akamai_WAF.py

Added [0] to line entry_context.append(raw_response.get('siteShieldMaps'))
human_readable.append(raw_response.get('siteShieldMaps'))

* Update Akamai_WAF.py

1) Added additional validations when all "enrollment_path", "enrollment_id", "change_id" are all blank.
2) Added Dateparer for input dates

* Update Akamai_WAF.yml

Added output for both commands:
akamai-get-cps-enrollment-deployment
akamai-get-cps-change-status
Added additional description for both arguments:
enrollment_id
change_id

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/ReleaseNotes/2_0_8.md

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Akamai_WAF.yml

Updated "akamai-update-cps-enrollment-schedule" command's Arguments to predefined value.

* Update Akamai_WAF.yml

Updated "akamai-update-cps-enrollment" commmand's Arguments.

* Update Akamai_WAF.yml

Updated command outputs descriptions and types.

* Update Akamai_WAF.yml

Updated Command Output descriptions and types

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.yml

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* Update Packs/Akamai_WAF/Integrations/Akamai_WAF/Akamai_WAF.py

Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* updated the yml according to master

---------

Co-authored-by: davistonehub <111578758+davistonehub@users.noreply.github.com>
Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>

* README.md

* format of yml file and pre-commit

* added test_get_cps_enrollment_deployment_command_production

* pre-commit changes and first test updates

* updated the dates, mypy updates and docker image update

* fixed trailing whitespaces

* updated the dates issue to be a function, more test

* final tests

* test_try_parsing_date

* doc-review changes

* readme and docker image update

* fixed a test and release notes

---------

Co-authored-by: xsoar-bot <67315154+xsoar-bot@users.noreply.github.com>
Co-authored-by: davistonehub <111578758+davistonehub@users.noreply.github.com>
Co-authored-by: RotemAmit <ramit@paloaltonetworks.com>
Co-authored-by: okarkkatz <okarkkatz@paloaltonetworks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contribution Thank you! Contributions are always welcome! docs-approved ForceMerge Internal PR post-demo Xsoar Support Level Indicates that the contribution is for XSOAR supported pack
Projects
None yet
7 participants