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.x] [Fleet] Default new agentless-only integration setup technology to agentless (#197500) #207092

Closed
wants to merge 3 commits into from

Conversation

jillguyonnet
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…entless (elastic#197500)

## Summary

Closes elastic#193007

This change ensures that when installing agentless-only integrations in
the UI, the "Setup technology" dropdown menu defaults to "Agentless".

I also added a quick dev doc to capture the local setup needed to test
agentless.

### How to test

1\. Add the following to `kibana.dev.yml`:
```yml
# Emulate cloud
xpack.cloud.id: "123456789"

# Enable agentless experimental feature flag in Fleet
xpack.fleet.enableExperimental: ['agentless']
# Agentless Fleet config
xpack.fleet.agentless.enabled: true
xpack.fleet.agentless.api.url: 'https://api.agentless.url/api/v1/ess'
xpack.fleet.agentless.api.tls.certificate: './config/node.crt'
xpack.fleet.agentless.api.tls.key: './config/node.key'
xpack.fleet.agentless.api.tls.ca: './config/ca.crt'
```

2\. Go to the integrations catalog, tick "Display beta integrations" and
add the "Add Elastic Connectors" integration. The "Setup technology"
dropdown menu should default to "Agentless". It should still be possible
to select "Agent-based".

![Screenshot 2024-10-24 at 12 18
12](https://github.com/user-attachments/assets/33244e5b-4393-4204-84fe-748557453d29)

3\. Add the "Cloud Security Posture Management (CSPM)" integration. The
"Setup technology" dropdown menu (under "Advanced options") should
default to "Agent-based". It should still be possible to select
"Agentless".

![Screenshot 2024-10-24 at 12 18
42](https://github.com/user-attachments/assets/75b41f3a-9c80-4751-a44a-e2bd0e0b4c5a)

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 4d1b599)

# Conflicts:
#	x-pack/platform/plugins/shared/fleet/dev_docs/local_setup/agentless.md
#	x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.test.ts
#	x-pack/platform/plugins/shared/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/single_page_layout/hooks/setup_technology.ts
@jillguyonnet jillguyonnet enabled auto-merge (squash) January 17, 2025 15:15
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Jan 17, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@jillguyonnet
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #1 / When on the package policy create page Submit page With agentless Cloud available should create agent policy and package policy when in cloud and agentless API url is set
  • [job] [logs] Jest Tests #1 / When on the package policy create page Submit page With agentless Cloud available should create agent policy and package policy when in cloud and agentless API url is set
  • [job] [logs] Jest Tests #1 / When on the package policy create page Submit page With agentless Cloud available should create agentless agent policy and package policy when in cloud and agentless API url is set
  • [job] [logs] Jest Tests #1 / When on the package policy create page Submit page With agentless Cloud available should create agentless agent policy and package policy when in cloud and agentless API url is set

History

@jillguyonnet
Copy link
Contributor Author

This was initially required to unblock #206985 which was since resolved.

auto-merge was automatically disabled January 21, 2025 14:35

Pull request was closed

@jillguyonnet jillguyonnet deleted the backport/8.x/pr-197500 branch January 21, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants