Skip to content

[Agent] Enforce TLS connection for enrolling or checking in. #16736

@ph

Description

@ph

Currently, it's possible to enroll the Agent without using a TLS connection, you only need to use the "HTTP" protocol when enrolling. Since the Agent can be effectively controlled by a remote kibana instance we want to enforce the requirement of TLS and refuse to enroll if the Kibana endpoint doesn't have TLS enabled.

It should fail when using the following to enroll

agent enroll http://localhost:5901 <enroll_key>

You can disable the TLS requirement by using the -insecure, using this flag should warn the user that the connection is insecure and this flag should not be used in production.

agent enroll -insecure http://localhost:5901 <enroll_key>

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions