Skip to content

[Cloud Connector] Add cloud_connectors config in Agentless API#215421

Merged
Omolola-Akinleye merged 11 commits intoelastic:mainfrom
Omolola-Akinleye:agentless-api-cloud-connector-config
Apr 22, 2025
Merged

[Cloud Connector] Add cloud_connectors config in Agentless API#215421
Omolola-Akinleye merged 11 commits intoelastic:mainfrom
Omolola-Akinleye:agentless-api-cloud-connector-config

Conversation

@Omolola-Akinleye
Copy link
Contributor

@Omolola-Akinleye Omolola-Akinleye commented Mar 20, 2025

Summary

This PR introduces a dynamic Cloud Connector configuration that allows flexibility in adding additional cloud provider settings, credentials, and other necessary fields. The updated structure ensures better extensibility while maintaining clarity.

cloud_connectors will under the AgentlessPolicy interface

{
  "cloud_connectors": {
    "target_csp": "aws",
    "enabled": true,
  }
}

@Omolola-Akinleye Omolola-Akinleye marked this pull request as ready for review March 31, 2025 15:33
@Omolola-Akinleye Omolola-Akinleye requested a review from a team as a code owner March 31, 2025 15:33
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --update'
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Mar 31, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@Omolola-Akinleye Omolola-Akinleye added backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes labels Mar 31, 2025
@Omolola-Akinleye Omolola-Akinleye self-assigned this Mar 31, 2025
);

logger.debug(`[Agentless API] Created an agentless agent ${response}`);
logger.info(`[Agentless API] Created an agentless agent ${response}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

should we change these back to debug?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I will change that! Thank you!

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

@Omolola-Akinleye Omolola-Akinleye merged commit 8299901 into elastic:main Apr 22, 2025
9 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #15 / Stateful Observability - Deployment-agnostic API integration tests Observability Alerting Custom Threshold rule CUSTOM_EQ - AVG - BYTES - FIRED Rule creation should set correct action variables

Metrics [docs]

✅ unchanged

History

cc @Omolola-Akinleye

akowalska622 pushed a commit to akowalska622/kibana that referenced this pull request May 29, 2025
…ic#215421)

## Summary
This PR introduces a dynamic Cloud Connector configuration that allows
flexibility in adding additional cloud provider settings, credentials,
and other necessary fields. The updated structure ensures better
extensibility while maintaining clarity.

`cloud_connectors` will under the [AgentlessPolicy
](https://github.com/elastic/kibana/blob/184d0a32adb2ec372c6427903d9269f813f04b6d/x-pack/platform/plugins/shared/fleet/common/types/models/agent_policy.ts#L47)
interface
``` json
{
  "cloud_connectors": {
    "target_csp": "aws",
    "enabled": true,
  }
}
```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants