Skip to content

Commit d230101

Browse files
Add comment to elasticsearch struct
1 parent 5a58740 commit d230101

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

internal/pkg/agent/configuration/fleet_server.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ type FleetServerOutputConfig struct {
3232
Elasticsearch Elasticsearch `config:"elasticsearch" yaml:"elasticsearch"`
3333
}
3434

35-
// Elasticsearch is the configuration for elasticsearch.
35+
// Elasticsearch is the configuration for fleet-server's connection to elasticsearch.
36+
// Note that these keys may be injected into policy output by fleet-server.
37+
// The following TLS options may be set in bootstrap:
38+
// - VerificationMode
39+
// - CAs
40+
// - CATrustedFingerprint
41+
// - CertificateConfig.Certificate AND CertificateConfig.Key
42+
// If an attribute is added to this struct, or another TLS attribute is passed ensure that it is handled as part of the bootstrap config handler in fleet-server/internal/pkg/server/agent.go
3643
type Elasticsearch struct {
3744
Protocol string `config:"protocol" yaml:"protocol"`
3845
Hosts []string `config:"hosts" yaml:"hosts"`

0 commit comments

Comments
 (0)