Skip to content

[code42-363] Add Else to Download File playbook and upgrade docker file #8814

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
merged 366 commits into from
Sep 15, 2020

Conversation

antazoey
Copy link
Contributor

@antazoey antazoey commented Sep 3, 2020

XSOAR Partner?

  • The title must be in the following format: [YOUR_PARTNER_ID] short description.

Status

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

Related Issues

Issue from slack partner channel.

Description

Adds missing else case to the Code42 Download File Playbook, formats the playbook. These changes also update the py42 dockerfile and use the newly available constants.

Screenshots

Paste here any images that will help the reviewer

Minimum version of Demisto

  • 5.0.0
  • 5.5.0
  • 6.0.0

Does it break backward compatibility?

  • Yes
    • Further details:
  • No

Must have

  • Tests
  • Documentation

Copy link
Contributor

@reutshal reutshal left a comment

Choose a reason for hiding this comment

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

Hi @unparalleled-js!
Overall looking great.
When can we schedule a quick demo with you?
@mayagoldb FYI

@reutshal reutshal added the ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. label Sep 9, 2020
@content-bot
Copy link
Collaborator

content-bot commented Sep 9, 2020

@mayagoldb mayagoldb self-requested a review September 9, 2020 11:05
@reutshal reutshal added ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. and removed ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. labels Sep 9, 2020
@antazoey
Copy link
Contributor Author

antazoey commented Sep 9, 2020

Hi @unparalleled-js!
Overall looking great.
When can we schedule a quick demo with you?
@mayagoldb FYI

Early mornings my time is 15:00 - 17:00 Israel time, which is good for me, any day.
Note that it will be a simple demo. The only changes are bug fixes and a formerly-missing Else condition

@reutshal reutshal added ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. and removed ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. labels Sep 13, 2020
@mayagoldb
Copy link
Contributor

@unparalleled-js
Comments about the playbook:

  1. The else case you should add is for the Is Code42 Integration Active?, so if the integration is not active it will finish the playbook's run. In the PR you added a link from the trigger to the end task which should be removed.

@antazoey
Copy link
Contributor Author

@unparalleled-js
Comments about the playbook:

  1. The else case you should add is for the Is Code42 Integration Active?, so if the integration is not active it will finish the playbook's run. In the PR you added a link from the trigger to the end task which should be removed.

Whoops! Okay, it is correct now.

@reutshal reutshal added ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. and removed ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. labels Sep 15, 2020
@reutshal reutshal merged commit 4b216a2 into demisto:contrib/code42_master Sep 15, 2020
reutshal added a commit that referenced this pull request Sep 17, 2020
* [code42-363] Add Else to Download File playbook and upgrade docker file (#8814)

* Current file

* Add fetch + new commands to test playbook

* Delete unused pb

* corrections

* SavE

* Handle str results

* Save

* New cmd outputs results

* Save

* Command results

* Add missing CL entries

* Client create user

* Save

* Fix final test

* Save

* Use readable outputs var

* Gen yml

* Put back CaseID and alias UserID

* Gen yml

* Add new commands

* Put back CL

* Save

* Add type

* Gen readme

* Unblock and reactivate

* Finish adding commands

* PR feedback + refactor

* Format

* Gen yml

* Handle no results for detection list get alls

* Fix tests

* Use get as much as possible, per feedback

* Add simple playbooks

* Lint

* Fix from validate command

* Put back name

* More straightening up

* Clean up

* Share exception

* Format

* Save

* Make params required

* Save

* Remove unneeded try catches

* gen yml

* Test dwnld file

* Shared errors

* Anomalize

* Add links to image

* save

* Chunks

* Lint

* lint

* lint

* Download file pb

* Remove params from a test that arent used

* Update exil pb

* Playbooks

* Add missing cl

* Use correct checksum from incident

* Add evidence and ignore errors for file download

* Remove outputs

* Fix description

* Fix ID

* Fix validation errorS

* Fix validation errors

* Fix validation error

* Fix validation error

* Removed integration file - not supposed to be there i guess

* Update release notes and fix validation::

* Remove breaking  change i guess

* make username not required to keep back compat :(

* unify

* remove debug stmnts

* unify

* Fix playbook

* Fix validation errors

* anonimize ips

* readme

* WIP

* Use enum

* Add outside trusted domains to predefined exposure type list for fetch

* Slight refactor

* Rename var

* Not files

* Remove integ file

* Undo accident

* changelog fix

* Call isinstance only once

* Simplify command

* Empty committ

* added commands departingemployee-get and highriskemployee-get

* Use filename

* Flake8

* Remove test ips

* Conform to comma delimited

* List opts

* Fix tests

* Test code improvements

* added tests

* refactor

* Added documentation and changelog

* legal hold remove

* gen docs

* remove rel import

* client tests

* finish tests

* put back examples

* remove itegration.yml

* fix description

* add changelog

* fix typo

* fix empty or None matter name

* add missing decorators

* remove itegration.yml

* remove itegration.yml

* Added command yaml

* Save

* _ to -

* Remove playbooks

* hr last 30 days

* Save

* Fix to say comma delim instead of space

* add outputs and generate docs

* remove itegration.yml

* Remove paid content

* Update search alerts

* Test

* fix tests

* Filter type param to de get all

* Add support for exposure type exists criteria when no exposure type is specified

* remove check for mattername

* Address PR Feedback

* Missing test

* adjust test

* Remove alert search from pr

* Remove readme changes

* Remove unused import

* Add leaving today option

* Default value enforcements

* fix lint error

* Resolve conflicts

* Flake8

* Case conform

* Put back?

* fix mock

* fix lint errors

* To search for all exposure types specify all option

* Fix

* Update docker image and master

* Added changelog

* update docker image

* bump py42 docker container

* fix test

* fix ci

* Update Packs/Code42/ReleaseNotes/2_0_1.md

Co-authored-by: reut shalem <[email protected]>

* [code42-636] Bump py42 dependency docker container (#8257)

* bump py42 docker container

* fix test

* fix ci

* Update Packs/Code42/ReleaseNotes/2_0_1.md

Co-authored-by: reut shalem <[email protected]>

Co-authored-by: reut shalem <[email protected]>

* Add desc to email

* Update readme

* Match descs

* [code42-636] Improve documentation examples (#8305)

* Remove whitespace in yml

* Gen yml

* Main

* Tags

* Handle unsupported ets better

* Fix comment

* Gen yml

* New fields

* Update views

* Handle test command better

* Gen yml

* Adjust comment

* lint

* gen yml

* savE

* Test outputs

* Use test id

* move and use file events mapping

* Create details widget

* Save

* Add params

* Add results param

* Fix hr add desc

* Handle list risk tags for 2 cmds{

* Update descs

* Handle none possibilities for dict gets

* Current file

* Add fetch + new commands to test playbook

* Delete unused pb

* corrections

* SavE

* Handle str results

* Save

* New cmd outputs results

* Save

* Command results

* Add missing CL entries

* Client create user

* Save

* Fix final test

* Save

* Use readable outputs var

* Gen yml

* Put back CaseID and alias UserID

* Gen yml

* Add new commands

* Put back CL

* Save

* Add type

* Gen readme

* Unblock and reactivate

* Finish adding commands

* PR feedback + refactor

* Format

* Gen yml

* Handle no results for detection list get alls

* Fix tests

* Use get as much as possible, per feedback

* Add simple playbooks

* Lint

* Fix from validate command

* Put back name

* More straightening up

* Clean up

* Share exception

* Format

* Save

* Make params required

* Save

* Remove unneeded try catches

* gen yml

* Test dwnld file

* Shared errors

* Anomalize

* Add links to image

* save

* Chunks

* Lint

* lint

* lint

* Download file pb

* Remove params from a test that arent used

* Update exil pb

* Playbooks

* Add missing cl

* Use correct checksum from incident

* Add evidence and ignore errors for file download

* Remove outputs

* Fix description

* Fix ID

* Fix validation errorS

* Fix validation errors

* Fix validation error

* Fix validation error

* Removed integration file - not supposed to be there i guess

* Update release notes and fix validation::

* Remove breaking  change i guess

* make username not required to keep back compat :(

* unify

* remove debug stmnts

* unify

* Fix playbook

* Fix validation errors

* anonimize ips

* readme

* WIP

* Use enum

* Add outside trusted domains to predefined exposure type list for fetch

* Slight refactor

* Rename var

* Not files

* Remove integ file

* Undo accident

* changelog fix

* Call isinstance only once

* Simplify command

* Empty committ

* added commands departingemployee-get and highriskemployee-get

* Use filename

* Flake8

* Remove test ips

* Conform to comma delimited

* List opts

* Fix tests

* Test code improvements

* added tests

* refactor

* Added documentation and changelog

* legal hold remove

* gen docs

* remove rel import

* client tests

* finish tests

* put back examples

* remove itegration.yml

* fix description

* add changelog

* fix typo

* fix empty or None matter name

* add missing decorators

* remove itegration.yml

* remove itegration.yml

* Added command yaml

* Save

* _ to -

* Remove playbooks

* hr last 30 days

* Save

* Fix to say comma delim instead of space

* add outputs and generate docs

* remove itegration.yml

* Remove paid content

* Update search alerts

* Test

* fix tests

* Filter type param to de get all

* Add support for exposure type exists criteria when no exposure type is specified

* remove check for mattername

* Address PR Feedback

* Missing test

* adjust test

* Remove alert search from pr

* Remove readme changes

* Remove unused import

* Add leaving today option

* Default value enforcements

* fix lint error

* Resolve conflicts

* Flake8

* Case conform

* Put back?

* fix mock

* fix lint errors

* To search for all exposure types specify all option

* Fix

* Update docker image and master

* Added changelog

* update docker image

* bump py42 docker container

* fix test

* fix ci

* Update Packs/Code42/ReleaseNotes/2_0_1.md

Co-authored-by: reut shalem <[email protected]>

* Add desc to email

* Update readme

* Match descs

Co-authored-by: Alan Grgic <[email protected]>
Co-authored-by: Kiran Chaudhary <[email protected]>
Co-authored-by: Kiran Chaudhary <[email protected]>
Co-authored-by: reut shalem <[email protected]>

* Use mapping

* Update docker container

* Reuse code and renames

* Test source code case

* bumped docker version

* Fix test

* Release notes (#32)

* Update release notes

* CL

* Copy cl entry to rn

* Remove unused method

* Delete tmp file

* Code42/update py42 dep (#34)

* Update docker tag

* Use FileCategory constants

* Use Detection List filter constants

* Update release notes

* Update release notes

* Format playbook

* Correct release notes

* Remove unneeded s from release notes, typo

* Handle lowercase pdf

* Handle all cases better

* Handle all the cases

* Remove commented out code

* Lessen coment

* Update release notes

* Rm extra space in release notes

* Put else statement on correct Task

Co-authored-by: Alan Grgic <[email protected]>
Co-authored-by: Kiran Chaudhary <[email protected]>
Co-authored-by: Kiran Chaudhary <[email protected]>
Co-authored-by: reut shalem <[email protected]>
Co-authored-by: syaakovi <[email protected]>
Co-authored-by: ShahafBenYakir <[email protected]>

* Update 2_0_4.md

* Update 2_0_4.md

Co-authored-by: Juliya Smith <[email protected]>
Co-authored-by: Alan Grgic <[email protected]>
Co-authored-by: Kiran Chaudhary <[email protected]>
Co-authored-by: Kiran Chaudhary <[email protected]>
Co-authored-by: syaakovi <[email protected]>
Co-authored-by: ShahafBenYakir <[email protected]>
Co-authored-by: roysagi <[email protected]>
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 ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants