Skip to content
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

Adding security installation information #20231130 #6605

Merged
Changes from 5 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
f0447a8
additing security installation page #20231130
AntonEliatra Mar 6, 2024
a576b43
Update security-installation.md
AntonEliatra Mar 6, 2024
116e2d9
Update security-installation.md
AntonEliatra Mar 6, 2024
f87895f
Update security-installation.md
AntonEliatra Mar 6, 2024
160427c
Update security-installation.md
AntonEliatra Mar 7, 2024
7b7c3d4
Update _security/configuration/security-installation.md
AntonEliatra Mar 12, 2024
5225ac3
Update _security/configuration/security-installation.md
AntonEliatra Mar 12, 2024
7184980
Update _security/configuration/security-installation.md
AntonEliatra Mar 12, 2024
d4ac83f
Update _security/configuration/security-installation.md
AntonEliatra Mar 12, 2024
854a51d
Update _security/configuration/security-installation.md
AntonEliatra Mar 12, 2024
5577a3a
Update _security/configuration/security-installation.md
AntonEliatra Mar 12, 2024
6166746
Update _security/configuration/security-installation.md
AntonEliatra Mar 12, 2024
43249c1
Update _security/configuration/security-installation.md
AntonEliatra Mar 12, 2024
ed05ca2
Update _security/configuration/security-installation.md
AntonEliatra Mar 12, 2024
785a439
renaming to enabling security
AntonEliatra Mar 12, 2024
74385c7
additing security installation page #20231130
AntonEliatra Mar 13, 2024
615edff
additing security installation page #20231130
AntonEliatra Mar 13, 2024
f9b8a17
additing security installation page #20231130
AntonEliatra Mar 13, 2024
3c8536d
additing security installation page #20231130
AntonEliatra Mar 13, 2024
f96f81e
Update enabling-security.md
Naarcha-AWS Mar 14, 2024
c9d49c6
Update enabling-security.md
Naarcha-AWS Mar 14, 2024
abcd8e5
moving security installation page #20231130
AntonEliatra Mar 15, 2024
b409fd9
moving security installation page #20231130
AntonEliatra Mar 15, 2024
c1af7ce
Update disable-enable-security.md
Naarcha-AWS Mar 18, 2024
3ebeac9
Update disable-enable-security.md
Naarcha-AWS Mar 18, 2024
c4471b4
Update disable-enable-security.md
Naarcha-AWS Mar 19, 2024
9494cdf
Apply suggestions from code review
Naarcha-AWS Mar 19, 2024
2f55274
Merge branch 'main' into adding-security-installation-page
Naarcha-AWS Mar 19, 2024
53d9834
Apply suggestions from code review
Naarcha-AWS Mar 20, 2024
b35d86b
fixes on security disable-enable page
AntonEliatra Mar 22, 2024
381f39c
Merge branch 'main' into adding-security-installation-page
Naarcha-AWS Mar 22, 2024
910c777
Made some updates to the structure
hdhalter Mar 27, 2024
54dbf5e
Merge branch 'main' into adding-security-installation-page
Naarcha-AWS Mar 27, 2024
2f2946a
Apply suggestions from code review
Naarcha-AWS Mar 27, 2024
be77d13
Apply suggestions from code review
Naarcha-AWS Mar 27, 2024
1189abd
Apply suggestions from code review
Naarcha-AWS Mar 27, 2024
d22c12b
fixes on security disable-enable page
AntonEliatra Mar 27, 2024
233d6ba
adding link for installation method on security installation page
AntonEliatra Mar 27, 2024
c2900e2
Update disable-enable-security.md
hdhalter Mar 28, 2024
c7e1562
Update _security/configuration/disable-enable-security.md
AntonEliatra Mar 29, 2024
39b7700
Update _security/configuration/disable-enable-security.md
AntonEliatra Mar 29, 2024
ff00e95
Update _security/configuration/disable-enable-security.md
AntonEliatra Mar 29, 2024
ac2585c
Update _security/configuration/disable-enable-security.md
AntonEliatra Mar 29, 2024
ace8202
Update disable-enable-security.md
AntonEliatra Mar 29, 2024
7044593
Apply suggestions from code review
Naarcha-AWS Mar 29, 2024
4422a9d
Merge branch 'main' into adding-security-installation-page
Naarcha-AWS Mar 29, 2024
5fa5323
Merge branch 'main' into adding-security-installation-page
Naarcha-AWS Apr 3, 2024
f045f81
Update disable-enable-security.md
AntonEliatra Apr 4, 2024
cfdaef5
Apply suggestions from code review
AntonEliatra Apr 4, 2024
f0bd141
Apply suggestions from code review
Naarcha-AWS Apr 4, 2024
2aebcaa
Merge branch 'main' into adding-security-installation-page
Naarcha-AWS Apr 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions _security/configuration/security-installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
layout: default
title: Security installation
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
parent: Configuration
nav_order: 60
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
---

# Security installation
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved

Default version of OpenSearch comes with Security features pre-installed, however if this was [disabled]({{site.url}}{{site.baseurl}}/security/configuration/disable/) or OpenSearch Minimum was installed, this page goes through the steps of installing Security features.
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved

Full cluster restart is necessary to enable security features
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
{: .label .label-red }

## Installation steps for prod cluster

1. Disable shard allocation and stop all nodes
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
You need to disable in order to prevent shards moving around when the cluster is restarted.
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
```json
PUT "http://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d '{
"transient": {
"cluster.routing.allocation.enable": "none"
}
}'
```
{% include copy-curl.html %}
2. Install plugin on all nodes
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
```bash
bin/opensearch-plugin install opensearch-security
```
{% include copy.html %}
3. Add necessary configuration to opensearch.yml for TLS encryption
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
[Configuration]({{site.url}}{{site.baseurl}}/install-and-configure/configuring-opensearch/security-settings/) details different settings which need to be configured
4. Create OPENSEARCH_INITIAL_ADMIN_PASSWORD variable
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
5. Restart the nodes and reenable shard allocation
AntonEliatra marked this conversation as resolved.
Show resolved Hide resolved
```json
PUT "http://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d '{
"transient": {
"cluster.routing.allocation.enable": "all"
}
}'
```
{% include copy-curl.html %}
Loading