-
Notifications
You must be signed in to change notification settings - Fork 915
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
[Chore] --security
for snapshot and OSD server
#5451
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5451 +/- ##
==========================================
- Coverage 66.98% 66.95% -0.04%
==========================================
Files 3293 3293
Lines 63281 63285 +4
Branches 10061 10061
==========================================
- Hits 42389 42370 -19
- Misses 18451 18470 +19
- Partials 2441 2445 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
8eed647
to
25fc270
Compare
package.json
Outdated
@@ -64,6 +64,8 @@ | |||
"build": "scripts/use_node scripts/build --all-platforms", | |||
"start": "scripts/use_node scripts/opensearch_dashboards --dev", | |||
"start:docker": "scripts/use_node scripts/opensearch_dashboards --dev --opensearch.hosts=$OPENSEARCH_HOSTS --opensearch.ignoreVersionMismatch=true --server.host=$SERVER_HOST", | |||
"start:security": "scripts/use_node scripts/opensearch_dashboards --dev --security", | |||
"start:security:default": "export OPENSEARCH_USERNAME=kibanaserver && export OPENSEARCH_PASSWORD=kibanaserver && scripts/use_node scripts/opensearch_dashboards --dev --security", |
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.
I’m not comfortable with this. Where is this default defined? Is it something we use in CI or is it a default for OS?
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.
Yeah I was uncomfortable with this. It is the demo user for OpenSearch Dashboards defined by the OpenSearch Security plugin:
https://github.com/opensearch-project/security/blob/main/config/internal_users.yml#L27
Add the ability to run: ``` yarn opensearch snapshot --security ``` which will start the OpenSearch cluster with the security plugin. And add the ability to run: ``` yarn start:security ``` which will start the OpenSearch Dashboards server if the security plugin is available. This is only intended for demo and local purposes. Issue: n/a Signed-off-by: Kawika Avilla <[email protected]>
f89bf8a
to
15d8962
Compare
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.
LGTM
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.
Verified and it works well!
> 3. Wait a few seconds while the plugin is installed, configured, and OpenSearch starts up. | ||
|
||
Then within another window. You can start: | ||
|
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.
Should we also add a step here to clone the dashboard-security repo under /plugins
?
Add the ability to run: ``` yarn opensearch snapshot --security ``` which will start the OpenSearch cluster with the security plugin. And add the ability to run: ``` yarn start:security ``` which will start the OpenSearch Dashboards server if the security plugin is available. This is only intended for demo and local purposes. Issue: n/a Signed-off-by: Kawika Avilla <[email protected]> (cherry picked from commit 2e7a2ba) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Add the ability to run: ``` yarn opensearch snapshot --security ``` which will start the OpenSearch cluster with the security plugin. And add the ability to run: ``` yarn start:security ``` which will start the OpenSearch Dashboards server if the security plugin is available. This is only intended for demo and local purposes. Issue: n/a Signed-off-by: Kawika Avilla <[email protected]>
Add the ability to run: ``` yarn opensearch snapshot --security ``` which will start the OpenSearch cluster with the security plugin. And add the ability to run: ``` yarn start:security ``` which will start the OpenSearch Dashboards server if the security plugin is available. This is only intended for demo and local purposes. Issue: n/a Signed-off-by: Kawika Avilla <[email protected]>
Add the ability to run: ``` yarn opensearch snapshot --security ``` which will start the OpenSearch cluster with the security plugin. And add the ability to run: ``` yarn start:security ``` which will start the OpenSearch Dashboards server if the security plugin is available. This is only intended for demo and local purposes. Issue: n/a (cherry picked from commit 2e7a2ba) Signed-off-by: Kawika Avilla <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Add the ability to run:
which will start the OpenSearch cluster with the security plugin.
And add the ability to run:
which will start the OpenSearch Dashboards server if the security plugin is available.
This is only intended for demo and local purposes.
Issue:
n/a
Description
Issues Resolved
Screenshot
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration