Skip to content

[Smithy 643] Update elasticsearch client version - #1113

Merged
ptzianos merged 2 commits into
mainfrom
smithy-643-update-elasticsearch-client-version
Oct 13, 2025
Merged

[Smithy 643] Update elasticsearch client version#1113
ptzianos merged 2 commits into
mainfrom
smithy-643-update-elasticsearch-client-version

Conversation

@senglezou

@senglezou senglezou commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

Run with smithyctl

Versions Detection:

{"time":"2025-10-09T15:54:08.127031754Z","level":"INFO","msg":"detected elasticsearch server version","version":"9.1.5","major":"9"}
{"time":"2025-10-09T15:54:08.127084254Z","level":"INFO","msg":"elasticsearch server is v9, upgrading to v9 client"}
{"time":"2025-10-08T13:42:28.665225096Z","level":"INFO","msg":"found finding","sdk_version":"unset","instance_id":"95491a67-0095-4929-b95b-17583c6df9e3","component_name":"elasticsearch","component_type":"reporter","num_findings":5,"finding":"{\"activityId\":\"ACTIVITY_ID_CREATE\",\"activityName\":\"ACTIVITY_ID_CREATE\",\"categoryName\":\"CATEGORY_UID_FINDINGS\",\"categoryUid\":\"CATEGORY_UID_FINDINGS\",\"className\":\"CLASS_UID_VULNERABILITY_FINDING\",\"classUid\":\"CLASS_UID_VULNERABILITY_FINDING\",\"confidence\":\"CONFIDENCE_ID_HIGH\",\"confidenceId\":\"CONFIDENCE_ID_HIGH\",\"count\":1,\"enrichments\":[{\"name\":\"custom-annotation\",\"provider\":\"custom-annotation-enricher\",\"type\":\"custom-annotation-enricher\"}],\"findingInfo\":{\"createdTime\":\"1759930947\",\"createdTimeDt\":\"2025-10-08T13:42:27.600810013Z\",\"dataSources\":[\"{\\\"targetType\\\":\\\"TARGET_TYPE_REPOSITORY\\\", \\\"uri\\\":{\\\"uriSchema\\\":\\\"URI_SCHEMA_FILE\\\", \\\"path\\\":\\\"file://server/router.go\\\"}, \\\"fileFindingLocationData\\\":{\\\"startLine\\\":55, \\\"endLine\\\":59, \\\"startColumn\\\":3, \\\"endColumn\\\":3}, \\\"sourceCodeMetadata\\\":{\\\"repositoryUrl\\\":\\\"https://github.com/sqreen/go-dvwa\\\", \\\"reference\\\":\\\"master\\\"}}\"],\"desc\":\"Original Description: Errors unhandled.\\n Help: Errors unhandled.\\nSeverity: LOW\\nConfidence: HIGH\\n\",\"firstSeenTime\":\"1759930947\",\"firstSeenTimeDt\":\"2025-10-08T13:42:27.600810013Z\",\"lastSeenTime\":\"1759930947\",\"lastSeenTimeDt\":\"2025-10-08T13:42:27.600810013Z\",\"modifiedTime\":\"1759930947\",\"modifiedTimeDt\":\"2025-10-08T13:42:27.600810013Z\",\"productUid\":\"gosec\",\"title\":\"Errors unhandled.\",\"uid\":\"G104\"},\"message\":\"Original Description: Errors unhandled.\\n Help: Errors unhandled.\\nSeverity: LOW\\nConfidence: HIGH\\n\",\"metadata\":{\"eventCode\":\"G104\",\"product\":{\"name\":\"gosec\"},\"uid\":\"82789bf5-8cac-52d1-b318-2ee39b89862c\"},\"severity\":\"SEVERITY_ID_MEDIUM\",\"severityId\":\"SEVERITY_ID_MEDIUM\",\"startTime\":\"1759930947\",\"status\":\"STATUS_ID_NEW\",\"statusId\":\"STATUS_ID_NEW\",\"time\":\"1759930947\",\"timeDt\":\"2025-10-08T13:42:27.600810013Z\",\"typeName\":\"Create\",\"typeUid\":\"200201\",\"vulnerabilities\":[{\"affectedCode\":[{\"endLine\":59,\"file\":{\"name\":\"server/router.go\",\"path\":\"file://server/router.go\"},\"startLine\":55}],\"cwe\":{\"caption\":\"The software does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the software.\",\"srcUrl\":\"https://cwe.mitre.org/data/definitions/703.html\",\"uid\":\"703\"},\"desc\":\"Original Description: Errors unhandled.\\n Help: Errors unhandled.\\nSeverity: LOW\\nConfidence: HIGH\\n\",\"firstSeenTime\":\"1759930947\",\"firstSeenTimeDt\":\"2025-10-08T13:42:27.600810013Z\",\"fixAvailable\":false,\"isFixAvailable\":false,\"lastSeenTime\":\"1759930947\",\"lastSeenTimeDt\":\"2025-10-08T13:42:27.600810013Z\",\"severity\":\"SEVERITY_ID_MEDIUM\",\"title\":\"Errors unhandled.\",\"vendorName\":\"gosec\"}]}"}

@senglezou
senglezou force-pushed the smithy-643-update-elasticsearch-client-version branch from d730722 to 390d297 Compare October 8, 2025 14:10
Comment thread components/reporters/elasticsearch/cmd/main.go
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go
Comment thread components/reporters/elasticsearch/component.yaml
@senglezou
senglezou force-pushed the smithy-643-update-elasticsearch-client-version branch 2 times, most recently from 5b4e8e8 to 9f64732 Compare October 10, 2025 08:43
Comment thread components/reporters/elasticsearch/README.md Outdated
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go Outdated
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go Outdated
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go Outdated
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go Outdated
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go Outdated
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go Outdated
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go Outdated
@senglezou
senglezou force-pushed the smithy-643-update-elasticsearch-client-version branch from 9f64732 to 56f988e Compare October 10, 2025 13:00
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go
Comment thread components/reporters/elasticsearch/internal/reporter/reporter.go
@ptzianos
ptzianos force-pushed the smithy-643-update-elasticsearch-client-version branch from 56f988e to b24c1b7 Compare October 13, 2025 09:56
@ptzianos
ptzianos merged commit 628cda7 into main Oct 13, 2025
6 of 7 checks passed
@ptzianos
ptzianos deleted the smithy-643-update-elasticsearch-client-version branch October 13, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants