Skip to content

TYCHON Initial Agent Upload#6701

Closed
joeperuzzi wants to merge 50 commits intoelastic:mainfrom
joeperuzzi:tychon_agentless
Closed

TYCHON Initial Agent Upload#6701
joeperuzzi wants to merge 50 commits intoelastic:mainfrom
joeperuzzi:tychon_agentless

Conversation

@joeperuzzi
Copy link

@joeperuzzi joeperuzzi commented Jun 26, 2023

Enhancement

What does this PR do?

This is TYCHON's initial push of its Agentless Beta plugin code base, the software this has been integrated with is a licensed product but the sample JSON files represent a single-line response. This is being released initially as Beta as the product has only been tested using local repo's and QA needs to test from hosted Github code.

Checklist

  • [X ] I have reviewed tips for building integrations and this pull request is aligned with them.
  • [ X ] I have verified that all data streams collect metrics or logs.
  • [ X ] I have added an entry to my package's changelog.yml file.
  • [ X ] I have verified that Kibana version constraints are current according to guidelines.

How to test this PR locally

Use the sample data to ingest data into the Elastic Agent Pipelines. The provided dashboards shall validate that data is being transferred.

@elasticmachine
Copy link

elasticmachine commented Jun 26, 2023

💔 Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-08-24T22:39:27.929+0000

  • Duration: 6 min 42 sec

Steps errors 1

Expand to view the steps failures

Checks and builds Go sources
  • Took 0 min 24 sec . View more details here
  • Description: mage -debug check

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@jamiehynds jamiehynds added the New Integration Issue or pull request for creating a new integration package. label Jun 27, 2023
Copy link
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

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

This will need to have a line added to .github/CODEOWNERS

/packages/tychon @elastic/security-external-integrations

(in alphabetical position)

There are no tests, are you able to add these?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please delete this file. It is not needed since the file in the root of the repo cover the code here.

@@ -0,0 +1,6 @@
# newer versions go on top
- version: "0.0.10"
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
- version: "0.0.10"
- version: "0.0.1"

joeperuzzi and others added 6 commits June 28, 2023 07:19
Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com>
Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com>
Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com>
Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com>
@joeperuzzi joeperuzzi requested a review from a team as a code owner June 28, 2023 11:27
joeperuzzi and others added 10 commits June 28, 2023 07:29
….hbs

Co-authored-by: Dan Kortschak <90160302+efd6@users.noreply.github.com>
Changed {{#each paths as |path i|}} to {{#each paths as |path|}} per efd6 request
Added new line to end per efd6 request.
Updated ecs.version per efd6 request
Added new line to end per efd6 request
Added descriptions to names.
Removed Asset Identification and updated exported field for tychon_cve
@@ -1,93 +0,0 @@
Elastic License 2.0
Copy link
Member

Choose a reason for hiding this comment

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

Why are we removing this license here?

Copy link
Author

Choose a reason for hiding this comment

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

@jsoriano the comment above suggested we remove the file:

packages/tychon/LICENSE.txt
Outdated
Contributor
@efd6 efd6 yesterday
Please delete this file. It is not needed since the file in the root of the repo cover the code here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong LICENSE.txt. The file in root needs to stay, I was asking to remove the file that was added in this PR.

Copy link
Author

Choose a reason for hiding this comment

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

License file was added back in

Copy link
Contributor

Choose a reason for hiding this comment

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

This is still not right. The LICENSE.txt in the root needs to exist, the LICENSE.txt file in packages/tychon/LICENSE.txt should not exist. Please do git mv packages/tychon/LICENSE.txt . && git commit -m "replace license file" in the root of the repo.

Copy link
Author

Choose a reason for hiding this comment

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

moved to the root of the package, hopefully, this is correct :)

@andrewkroh andrewkroh added the Integration:tychon TYCHON Agentless (Partner supported) label Jun 29, 2023
@cla-checker-service
Copy link

cla-checker-service bot commented Jul 18, 2023

💚 CLA has been signed

@skidmoco
Copy link

❌ Author of the following commits did not sign a Contributor Agreement: , , , , , , , , , , , , , , , , , , , , , , , , , f67356b, f6c27ea, 86439db, f5734d8, aa3e668

Please, read and sign the above mentioned agreement if you want to contribute to this project

I have read and signed agreement

@efd6
Copy link
Contributor

efd6 commented Jul 18, 2023

@skidmoco Please check that the email address you have used to sign the CLA matches the email address in your commits.

@joeperuzzi
Copy link
Author

@efd6 what is the status of this PR? We have customers waiting on this plugin, is there any way we can jump on a call or something to get this plugin approved and pushed? Is there a faster process?

dynamic_fields:
"@timestamp": ".*"
event.ingested: ".*"

No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix these so that they have a final newline, not a final space. There are other cases throughout. (the *-expected.json should not be altered).

Suggested change

Comment on lines +47 to +53
source: if(ctx.vulnerability?.result == 'fail'){
ctx.event.outcome = "failure"
}else if(ctx.vulnerability?.result == 'pass'){
ctx.event.outcome = "success"
}else{
ctx.event.outcome = "unknown"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use the YAML pipe syntax for scripts as shown here.

Comment on lines +54 to +55
- script:
source: ctx.host.mac = ctx.host.mac.replace(':','-')
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be done with a gsub.

json:
keys_under_root: true
expand_keys: true

No newline at end of file
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

- append:
field: error.message
value: '{{{ _ingest.on_failure_message }}}'

No newline at end of file
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

dynamic_fields:
"@timestamp": ".*"
event.ingested: ".*"

No newline at end of file
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

{{/if}}
json:
keys_under_root: true
expand_keys: true No newline at end of file
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
expand_keys: true
expand_keys: true

- append:
field: error.message
value: '{{{ _ingest.on_failure_message }}}'

No newline at end of file
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

{{/if}}
json:
keys_under_root: true
expand_keys: true No newline at end of file
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
expand_keys: true
expand_keys: true

- append:
field: error.message
value: '{{{ _ingest.on_failure_message }}}'

No newline at end of file
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

@efd6
Copy link
Contributor

efd6 commented Aug 6, 2023

/test

tychon1 and others added 16 commits August 8, 2023 17:42
	modified:   packages/tychon/changelog.yml
	modified:   packages/tychon/data_stream/tychon_cve/_dev/test/test-cve.json-config.yml
	modified:   packages/tychon/data_stream/tychon_cve/elasticsearch/ingest_pipeline/default.yml
	modified:   packages/tychon/data_stream/tychon_cve/fields/ecs.yml
	modified:   packages/tychon/data_stream/tychon_cve/fields/fields.yml
	modified:   packages/tychon/data_stream/tychon_epp/_dev/test/pipeline/test-epp.json-config.yml
	modified:   packages/tychon/data_stream/tychon_epp/elasticsearch/ingest_pipeline/default.yml
	modified:   packages/tychon/data_stream/tychon_epp/fields/ecs.yml
	modified:   packages/tychon/data_stream/tychon_epp/fields/fields.yml
	modified:   packages/tychon/data_stream/tychon_epp/manifest.yml
	modified:   packages/tychon/data_stream/tychon_stig/_dev/test/pipeline/test-stig.json-config.yml
	modified:   packages/tychon/data_stream/tychon_stig/elasticsearch/ingest_pipeline/default.yml
	modified:   packages/tychon/data_stream/tychon_stig/fields/ecs.yml
	modified:   packages/tychon/data_stream/tychon_stig/fields/fields.yml
	modified:   packages/tychon/data_stream/tychon_stig/manifest.yml
	modified:   packages/tychon/data_stream/tychon_stig/manifest.yml
	modified:   packages/tychon/changelog.yml
@efd6
Copy link
Contributor

efd6 commented Aug 24, 2023

/test

Copy link
Contributor

@bhapas bhapas left a comment

Choose a reason for hiding this comment

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

Please note that comment applies to all pipeline files

value: "{{id}}"
- set:
field: tychon.ipv4
value: "{{host.ipv4}}"
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
value: "{{host.ipv4}}"
- set:
field: tychon.ipv4
copy_from: host.ipv4
ignore_empty_value: true

This way you don't have empty/null values into tychon.ipv4

@joeperuzzi
Copy link
Author

We have a new, much larger version of this integration being released in the coming days, I'm closing this PR as the change causes this version to be obsolete and will be pushed to a new PR before this one can be completed.

@joeperuzzi joeperuzzi closed this Aug 25, 2023
@efd6 efd6 mentioned this pull request Oct 9, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration:tychon TYCHON Agentless (Partner supported) New Integration Issue or pull request for creating a new integration package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants