-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable the Cloud Security Posture Kibana plugin (#767)
* add to kibana.yml * remove newline * add 80 config file * fix license * use symlinks * Revert "use symlinks" This reverts commit 1faa0bd. * virtual files * use semver * fix static * retrigger stuck CI * add configuration variant map * use old semver * fix static check
- Loading branch information
Showing
6 changed files
with
167 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
server.name: kibana | ||
server.host: "0.0.0.0" | ||
|
||
elasticsearch.hosts: [ "http://elasticsearch:9200" ] | ||
elasticsearch.serviceAccountToken: "AAEAAWVsYXN0aWMva2liYW5hL2VsYXN0aWMtcGFja2FnZS1raWJhbmEtdG9rZW46b2x4b051SWNRa0tYMHdXazdLWmFBdw" | ||
|
||
monitoring.ui.container.elasticsearch.enabled: true | ||
|
||
xpack.fleet.registryUrl: "http://package-registry:8080" | ||
xpack.fleet.agents.enabled: true | ||
xpack.fleet.agents.elasticsearch.hosts: ["http://elasticsearch:9200"] | ||
xpack.fleet.agents.fleet_server.hosts: ["http://fleet-server:8220"] | ||
|
||
xpack.encryptedSavedObjects.encryptionKey: "12345678901234567890123456789012" | ||
|
||
xpack.fleet.packages: | ||
- name: system | ||
version: latest | ||
- name: elastic_agent | ||
version: latest | ||
- name: fleet_server | ||
version: latest | ||
xpack.fleet.agentPolicies: | ||
- name: Elastic-Agent (elastic-package) | ||
id: elastic-agent-managed-ep | ||
is_default: true | ||
is_managed: false | ||
namespace: default | ||
monitoring_enabled: | ||
- logs | ||
- metrics | ||
package_policies: | ||
- name: system-1 | ||
id: default-system | ||
package: | ||
name: system | ||
- name: Fleet Server (elastic-package) | ||
id: fleet-server-policy | ||
is_default_fleet_server: true | ||
is_managed: false | ||
namespace: default | ||
package_policies: | ||
- name: fleet_server-1 | ||
id: default-fleet-server | ||
package: | ||
name: fleet_server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
// or more contributor license agreements. Licensed under the Elastic License; | ||
// you may not use this file except in compliance with the Elastic License. | ||
|
||
package stack | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
var tests = []struct { | ||
version string | ||
variant string | ||
}{ | ||
{"", "default"}, | ||
{"7", "default"}, | ||
{"7.0.0", "default"}, | ||
{"7.14.99-SNAPSHOT", "default"}, | ||
{"8", "80"}, | ||
{"8-0", "80"}, | ||
{"8.0.0-alpha", "80"}, | ||
{"8.0.0", "80"}, | ||
{"8.0.33", "80"}, | ||
{"8.0.33-beta", "80"}, | ||
{"8.1-0", "80"}, | ||
{"8.1", "80"}, | ||
{"8.1-alpha", "80"}, | ||
{"8.1.0-alpha", "80"}, | ||
{"8.1.0", "80"}, | ||
{"8.1.58", "80"}, | ||
{"8.1.99-beta", "80"}, | ||
{"8.1.999-SNAPSHOT", "80"}, | ||
{"8.2-0", "8x"}, | ||
{"8.2", "8x"}, | ||
{"8.2.0-alpha", "8x"}, | ||
{"8.2.0", "8x"}, | ||
{"8.2.58", "8x"}, | ||
{"8.2.99-gamma", "8x"}, | ||
{"8.2.777-SNAPSHOT+arm64", "8x"}, | ||
{"8.5", "8x"}, | ||
{"9", "default"}, | ||
} | ||
|
||
func TestSelectStackVersion(t *testing.T) { | ||
for _, tt := range tests { | ||
t.Run(tt.version, func(t *testing.T) { | ||
selected := selectStackVersion(tt.version) | ||
assert.Equal(t, tt.variant, selected) | ||
}) | ||
} | ||
} |