-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add testing steps for running with identity enabled and security plug…
…in installed Signed-off-by: Craig Perkins <[email protected]>
- Loading branch information
Showing
5 changed files
with
69 additions
and
4 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,64 @@ | ||
## Testing with Security Plugin installed | ||
|
||
Assemble a local distribution of core: | ||
|
||
``` | ||
./gradlew localDistro | ||
``` | ||
|
||
Navigate to the platform specific distribution: | ||
|
||
``` | ||
cd distribution/archives/<platform>/build/install/opensearch-<version>-SNAPSHOT | ||
``` | ||
|
||
### Assemble the Security Plugin | ||
|
||
Checkout the security repo: https://github.com/opensearch-project/security | ||
|
||
Run gradlew assemble: | ||
|
||
``` | ||
./gradlew assemble | ||
``` | ||
|
||
### Install the Security Plugin | ||
|
||
In the root directory of the local distribution built in core, run: | ||
|
||
``` | ||
./bin/opensearch-plugin install --verbose file:<path-to-opensearch-security>/build/distributions/opensearch-security-<version>-SNAPSHOT.zip | ||
``` | ||
|
||
to install the security plugin. Answer yes to the prompt. The step above may require the use of `sudo` | ||
|
||
Navigate to the security plugin tools directory: | ||
|
||
``` | ||
cd plugins/opensearch-security/tools | ||
``` | ||
|
||
and run the install_demo_configuration script: | ||
|
||
``` | ||
./install_demo_configuration.sh | ||
``` | ||
|
||
and answer yes to all prompts. | ||
|
||
Go back up to the root directory by running: `cd ../../..` | ||
|
||
and open the `opensearch.yml` file: | ||
|
||
``` | ||
vim config/opensearch.yml | ||
``` | ||
|
||
and enter the following lines: | ||
|
||
``` | ||
identity.enabled: true | ||
identity.auth_manager_class: org.opensearch.identity.authmanager.internal.InternalAuthenticationManager | ||
``` | ||
|
||
Note that `identity.auth_manager_class` is optional and will default to the InternalAuthenticationManager. Use this setting if you would like to use a non-default AuthenticationManager. |
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