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

[Playground] Adds revised PLAYGROUND_SHORT_TERM_DESIGN.md to the repo #22

Merged
merged 9 commits into from
Jun 20, 2022

Conversation

huyaboo
Copy link
Member

@huyaboo huyaboo commented Jun 17, 2022

Description

Added a revised design document for the OpenSearch Playgrounds Site (short term phase) based upon feedback given during the design review meeting.

Issues Resolved

Resolves #9

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

DESIGN.md Outdated

## Proposal

To address this need, a demo website we call Playground was proposed that
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please normalize the name which comments in the issue? #9 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, the demo site is now named as "OpenSearch Playground."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also added some more information taken from the team review.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is design based on short term, can we add some information for the title and design content. thanks

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please change the file to PLAYGROUND_SHORT_TERM_DESIGN.md ? we will add PLAYGROUND_LONG_TERM_DESIGN.md later on.

Copy link
Member Author

@huyaboo huyaboo Jun 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Are there any more changes I should make before I commit my changes?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. All looks good to me.

Copy link
Member

@seraphjiang seraphjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huyaboo would you work with @Flyingliuhub to determine what's right location for this doc
by following below guide
https://github.com/opensearch-project/dashboards-anywhere/blob/main/docs/DOCUMENTATION_GUIDE.md

@kristenTian kristenTian self-requested a review June 17, 2022 23:10
@Flyingliuhub
Copy link
Member

@huyaboo Please follow this guide to save you design doc https://github.com/opensearch-project/dashboards-anywhere/blob/main/docs/DOCUMENTATION_GUIDE.md, and make a good name instead of DESIGN.md

Copy link
Member

@Flyingliuhub Flyingliuhub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huyaboo DESIGN.md - name is too generic, could you please provide a good name? thanks

@Flyingliuhub
Copy link
Member

Description

Added a revised outline of the initial phase of this project

Can you provide more detail in the Description? Thanks

@@ -0,0 +1,225 @@
[-](url) Start Date: 2022-06-09
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove additional space here. thanks

opendistro_security_anonymous:
reserved: true
cluster_permissions:
- 'cluster_monitor'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's kind of permission here for cluster_monitor ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This permission was required so that the user in Dev Tools can make some queries like GET _cat/indices.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/opensearch-project/security/blob/d0e06aa3def41402c121963e74147e40d1246741/src/test/resources/legacy/securityconfig_v6/migration/action_groups.yml#L109, you are give all the permission under cluster_monitor. as I said the previous comments, this is design doc, not implement document. you still need to add helm's opensearch and opensearch dashboard to config folder and it will be used for deployment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So do I just delete the sample configurations for all my files? I understand that this document is for design and so that is why I just outlined some changes I have made.

- 'indices:monitor/settings/get'
- 'indices:monitor/stats'
- 'indices:data/read*'
- 'indices:admin/get'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is the sample data indices permission? you need to add all the configuration file to different PR, it is kind of implementation, which will be used for deployment.

Copy link
Member Author

@huyaboo huyaboo Jun 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this design document just outlines my changes to the default configurations. I will make another PR to add config files.

where is the sample data indices permission?

@Flyingliuhub I'm not sure what you mean by this. I've been able to add sample data from admin's side and see the visualizations/dashboard on the anonymous user's side without the anonymous user adding the data.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after install sample data, it will create couple indices, do you have permission to see the data in the dashboards without add those ? maybe I'm wrong here
- 'opensearch_dashboards_sample_data_logs'
- 'opensearch_dashboards_sample_data_flights'
- 'opensearch_dashboards_sample_data_ecommerce'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be perhaps because I used "*" in my index patterns that I was able to access all 3 indices? Is the anonymous user allowed to read all of the indices?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to avoid * in the role, it is implement detail, nothing related with design, the design should highlight the change, you don't need to add detail here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I have removed some implementation details from the doc. Now it just displays a sample change and not the full change.

@huyaboo huyaboo changed the title Added revised DESIGN.md to the repo [Playground Doc]Adds revised PLAYGROUND_DESIGN.md to the repo Jun 17, 2022
@huyaboo huyaboo changed the title [Playground Doc]Adds revised PLAYGROUND_DESIGN.md to the repo [Playground Doc] Adds revised PLAYGROUND_DESIGN.md to the repo Jun 17, 2022
@seraphjiang seraphjiang changed the title [Playground Doc] Adds revised PLAYGROUND_DESIGN.md to the repo [Playground] Adds revised PLAYGROUND_DESIGN.md to the repo Jun 18, 2022
@huyaboo huyaboo requested a review from Flyingliuhub June 20, 2022 15:51
@huyaboo huyaboo dismissed Flyingliuhub’s stale review June 20, 2022 15:51

I changed the .md name to PLAYGROUND_DESIGN.

@huyaboo huyaboo dismissed seraphjiang’s stale review June 20, 2022 15:56

PLAYGROUND_DESIGN.md is moved to /docs/playground

@huyaboo huyaboo changed the title [Playground] Adds revised PLAYGROUND_DESIGN.md to the repo [Playground] Adds revised PLAYGROUND_DESIGN.md (short term) to the repo Jun 20, 2022
@Flyingliuhub Flyingliuhub added the playgroud playground project label label Jun 20, 2022
@huyaboo huyaboo changed the title [Playground] Adds revised PLAYGROUND_DESIGN.md (short term) to the repo [Playground] Adds revised PLAYGROUND_SHORT_TERM_DESIGN.md to the repo Jun 20, 2022
@huyaboo huyaboo merged commit e7a2495 into main Jun 20, 2022
@huyaboo huyaboo deleted the huynguyendesign branch June 20, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
playgroud playground project label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OpenSearch Playground: PROPOSAL] Demo Site for OpenSearch/OpenSearch Dashboards
4 participants