-
Notifications
You must be signed in to change notification settings - Fork 118
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
Enable the Cloud Security Posture Kibana plugin #767
Merged
mtojek
merged 14 commits into
elastic:main
from
eyalkraft:enable-cloud-securty-posture-kibana-plugin
Apr 5, 2022
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7473d7a
add to kibana.yml
eyalkraft 896be85
remove newline
eyalkraft da82e1f
Merge branch 'main' into enable-cloud-securty-posture-kibana-plugin
eyalkraft d4ec8bf
add 80 config file
eyalkraft d8f79cc
fix license
eyalkraft 1faa0bd
use symlinks
eyalkraft f3dc19d
Revert "use symlinks"
eyalkraft 569c710
virtual files
eyalkraft 1153a98
use semver
eyalkraft 4d2c446
fix static
eyalkraft 1479d39
retrigger stuck CI
eyalkraft c44413f
add configuration variant map
eyalkraft 898bd70
use old semver
eyalkraft cb91746
fix static check
eyalkraft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) | ||
}) | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, you can convert these if-conditions into a
configurationVariantMap
(key: constraint, value: config variant).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done