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

[8.18] [Synthetics] Fix tls alert data !! (#212758) #213317

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

shahzad31
Copy link
Contributor

Backport

This will backport the following commits from main to 8.18:

Questions ?

Please refer to the Backport tool documentation

### Summary
This PR improves and fixes the TLS alert data handling in the Synthetics
plugin. Key updates include:

### Code changes

1. **Request Body Updates**:
   - Added `agent.name`.
- Changed optional chaining to direct property access for
`ping.monitor.name`, `ping.monitor.id`, and `ping.observer.name`.
   - Added `ping.agent.name`.

2. **Cert Type Adjustments**:
- Added fields: `monitorName`, `monitorId`, `monitorType`, `locationId`,
`locationName`, `@timestamp`, `hostName`.

3. **Observer Codec**:
   - Ensured `name` and `geo.name` are required fields.

4. **Monitor Type and Ping Type**:
   - Added `name` to `MonitorType`.
   - Moved `@timestamp` to required fields in `PingType`.

7. **Message Utils**:
- Adjusted `getCertSummary` and `getTLSAlertDocument` so that we can
properly generate alert document

(cherry picked from commit 80f4aab)

# Conflicts:
#	x-pack/solutions/observability/plugins/synthetics/common/requests/get_certs_request_body.ts
#	x-pack/solutions/observability/plugins/synthetics/server/alert_rules/tls_rule/types.ts
@shahzad31 shahzad31 requested a review from kibanamachine as a code owner March 6, 2025 07:21
@shahzad31 shahzad31 enabled auto-merge (squash) March 6, 2025 07:21
@botelastic botelastic bot added the Team:obs-ux-management Observability Management User Experience Team label Mar 6, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #7 / dashboard app - esql controls dashboard - add a value type ES|QL control should handle properly a query to retrieve the values that return more than one column

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
synthetics 792.0KB 792.1KB +81.0B

@shahzad31 shahzad31 merged commit b05d493 into elastic:8.18 Mar 6, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:obs-ux-management Observability Management User Experience Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants