-
Notifications
You must be signed in to change notification settings - Fork 324
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
Bloodhound / Opensearch #4261
Draft
supersven
wants to merge
8
commits into
develop
Choose a base branch
from
supersven/bloodhound-opensearch
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Bloodhound / Opensearch #4261
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4f58498
Upgrade Bloodhound to latest master (unreleased)
supersven 706815d
Use OpenSearch 1.3 in CI
supersven d24c8cd
Use OpenSearch 1.3 for local integration tests
supersven 055f700
Add changelog entry
supersven 557f6c7
Ensure the document is created (not e.g. updated)
supersven ba54bec
Delete Kibana Helm chart
supersven 17d3d0d
Add comment about username/password in integration tests
supersven 1230a33
Replace error throwing with parsing failures
supersven 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
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,10 @@ | ||
Switch from ElasticSearch 6.8 to OpenSearch 1.3 (we're testing with OpenSearch | ||
1.3.19.) Please note that the APIs of ElasticSearch 6.8 and OpenSearch 1.3 are | ||
not compatible. I.e., either a migration is required | ||
(https://opensearch.org/docs/latest/upgrade-to/) or the indexes need to be | ||
rebuilt from scratch. The latter is done automatically when the | ||
`elasticsearch-index-create` job of the `elasticsearch-index` Helm chart faces | ||
an OpenSearch instance where Wire's indexes are missing. Alternatively, this can | ||
be started manually; see | ||
https://docs.wire.com/developer/reference/elastic-search.html#refill-es-documents-from-cassandra | ||
. Depending on the amount of users in the database, this may take long. |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
3 changes: 3 additions & 0 deletions
3
deploy/dockerephemeral/docker/opensearch/opensearch-security/action_groups.yml
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,3 @@ | ||
_meta: | ||
type: "actiongroups" | ||
config_version: 2 |
6 changes: 6 additions & 0 deletions
6
deploy/dockerephemeral/docker/opensearch/opensearch-security/allowlist.yml
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,6 @@ | ||
_meta: | ||
type: "allowlist" | ||
config_version: 2 | ||
|
||
config: | ||
enabled: false |
17 changes: 17 additions & 0 deletions
17
deploy/dockerephemeral/docker/opensearch/opensearch-security/config.yml
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,17 @@ | ||
_meta: | ||
type: "config" | ||
config_version: 2 | ||
|
||
config: | ||
dynamic: | ||
authc: | ||
basic_internal_auth_domain: | ||
description: "Authenticate using HTTP basic against the internal users database" | ||
http_enabled: true | ||
transport_enabled: true | ||
order: 1 | ||
http_authenticator: | ||
type: basic | ||
challenge: true | ||
authentication_backend: | ||
type: internal |
12 changes: 12 additions & 0 deletions
12
deploy/dockerephemeral/docker/opensearch/opensearch-security/internal_users.yml
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,12 @@ | ||
_meta: | ||
type: "internalusers" | ||
config_version: 2 | ||
|
||
# User: elastic | ||
# Password: changeme | ||
mdimjasevic marked this conversation as resolved.
Show resolved
Hide resolved
|
||
elastic: | ||
hash: "$2y$12$GRc68jkEX1m4uQpTVbwURu79xHxZ7vsbyEctOAADQwPjlhYS4LJVa" | ||
reserved: true | ||
description: "Wire User" | ||
backend_roles: | ||
- index_manager |
3 changes: 3 additions & 0 deletions
3
deploy/dockerephemeral/docker/opensearch/opensearch-security/nodes_dn.yml
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,3 @@ | ||
_meta: | ||
type: "nodesdn" | ||
config_version: 2 |
3 changes: 3 additions & 0 deletions
3
deploy/dockerephemeral/docker/opensearch/opensearch-security/roles.yml
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,3 @@ | ||
_meta: | ||
type: "roles" | ||
config_version: 2 |
9 changes: 9 additions & 0 deletions
9
deploy/dockerephemeral/docker/opensearch/opensearch-security/roles_mapping.yml
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,9 @@ | ||
_meta: | ||
type: "rolesmapping" | ||
config_version: 2 | ||
|
||
all_access: | ||
reserved: false | ||
backend_roles: | ||
- index_manager | ||
description: "Map index_manager to full_access" |
3 changes: 3 additions & 0 deletions
3
deploy/dockerephemeral/docker/opensearch/opensearch-security/tenants.yml
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,3 @@ | ||
_meta: | ||
type: "tenants" | ||
config_version: 2 |
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,45 @@ | ||
cluster.name: opensearch-cluster | ||
|
||
# Bind to all interfaces because we don't know what IP address Docker will assign to us. | ||
network.host: 0.0.0.0 | ||
|
||
# Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again. | ||
discovery.type: single-node | ||
|
||
path.data: /usr/share/opensearch/data | ||
|
||
# WARNING: This is not a production-ready config! (Good enough for testing, | ||
# though.) | ||
plugins: | ||
security: | ||
ssl: | ||
transport: | ||
pemcert_filepath: certs/tls.crt | ||
pemkey_filepath: certs/tls.key | ||
pemtrustedcas_filepath: certs/ca.crt | ||
enforce_hostname_verification: false | ||
http: | ||
enabled: true | ||
pemcert_filepath: certs/tls.crt | ||
pemkey_filepath: certs/tls.key | ||
pemtrustedcas_filepath: certs/ca.crt | ||
allow_unsafe_democertificates: true | ||
allow_default_init_securityindex: true | ||
audit.type: internal_opensearch | ||
restapi: | ||
roles_enabled: ["all_access", "security_rest_api_access"] | ||
system_indices: | ||
enabled: true | ||
indices: | ||
[ | ||
".opendistro-alerting-config", | ||
".opendistro-alerting-alert*", | ||
".opendistro-anomaly-results*", | ||
".opendistro-anomaly-detector*", | ||
".opendistro-anomaly-checkpoints", | ||
".opendistro-anomaly-detection-state", | ||
".opendistro-reports-*", | ||
".opendistro-notifications-*", | ||
".opendistro-notebooks", | ||
".opendistro-asynchronous-search-response*", | ||
] |
8 changes: 8 additions & 0 deletions
8
deploy/dockerephemeral/docker/opensearch/opensearch_dashboards.yml
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,8 @@ | ||
opensearch.hosts: [https://opensearch:9200] | ||
opensearch.ssl.verificationMode: none | ||
opensearch.username: elastic | ||
opensearch.password: changeme | ||
|
||
# Use this setting if you are running opensearch-dashboards without https | ||
opensearch_security.cookie.secure: false | ||
server.host: '0.0.0.0' |
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
Oops, something went wrong.
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.
dashboard! neat! is there a good place to mention that so people might notice?
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.
The Developer how-to's[sic] seem to be a good place: https://github.com/wireapp/wire-server/pull/4261/files#diff-9d61e022388a68889ab4d5f60ae707d533693274a2c21540162c00e9e528f497R215