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

[Workspace] Update default workspace permission and users config support wildcard #8617

Merged

Conversation

yubonluo
Copy link
Contributor

@yubonluo yubonluo commented Oct 17, 2024

Description

Update default workspace permission and support wildcard.

  1. Without configuring OSD admin in the config.yml, anyone will not be OSD admin.
  2. Support wildcard * in users config. With configuring * in the config.yml (opensearchDashboards.dashboardAdmin.users: ["*"]), anyone will be OSD admin.

Issues Resolved

Screenshot

Testing the changes

Changelog

  • refactor: [Workspace] Update default OSD admin config permission and support wildcard.

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: yubonluo <[email protected]>
…penSearch-Dashboards into 2.17/refactor-osd-admin-logic
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.94%. Comparing base (5c8b2e3) to head (0d27d7e).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8617   +/-   ##
=======================================
  Coverage   60.94%   60.94%           
=======================================
  Files        3790     3790           
  Lines       90306    90305    -1     
  Branches    14154    14154           
=======================================
+ Hits        55034    55039    +5     
+ Misses      31815    31809    -6     
  Partials     3457     3457           
Flag Coverage Δ
Linux_1 29.30% <100.00%> (+0.01%) ⬆️
Linux_2 56.39% <ø> (ø)
Linux_3 37.71% <ø> (ø)
Linux_4 29.91% <ø> (ø)
Windows_1 29.32% <100.00%> (+0.01%) ⬆️
Windows_2 56.34% <ø> (ø)
Windows_3 37.71% <ø> (ø)
Windows_4 29.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yubonluo yubonluo changed the title [Workspace] Update default workspace permission and support wildcard [Workspace] Update default workspace permission and users config support wildcard Oct 17, 2024
Signed-off-by: yubonluo <[email protected]>
Signed-off-by: yubonluo <[email protected]>
Signed-off-by: yubonluo <[email protected]>
@SuZhou-Joe SuZhou-Joe merged commit 1d6190d into opensearch-project:main Oct 17, 2024
68 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 17, 2024
…ort wildcard (#8617)

* Update default workspace permission and support wildcard

Signed-off-by: yubonluo <[email protected]>

* update the config yaml file

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR #8617 created/updated

* Changeset file for PR #8617 created/updated

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 1d6190d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Oct 17, 2024
…ort wildcard (#8617) (#8627)

* Update default workspace permission and support wildcard



* update the config yaml file



* Changeset file for PR #8617 created/updated

* Changeset file for PR #8617 created/updated

* optimize the code



* optimize the code



* optimize the code



* optimize the code



---------



(cherry picked from commit 1d6190d)

Signed-off-by: yubonluo <[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>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
amsiglan pushed a commit to amsiglan/OpenSearch-Dashboards that referenced this pull request Oct 19, 2024
…ort wildcard (opensearch-project#8617)

* Update default workspace permission and support wildcard

Signed-off-by: yubonluo <[email protected]>

* update the config yaml file

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR opensearch-project#8617 created/updated

* Changeset file for PR opensearch-project#8617 created/updated

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
sejli pushed a commit to sejli/OpenSearch-Dashboards that referenced this pull request Oct 21, 2024
…ort wildcard (opensearch-project#8617)

* Update default workspace permission and support wildcard

Signed-off-by: yubonluo <[email protected]>

* update the config yaml file

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR opensearch-project#8617 created/updated

* Changeset file for PR opensearch-project#8617 created/updated

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Qxisylolo pushed a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Oct 30, 2024
…ort wildcard (opensearch-project#8617)

* Update default workspace permission and support wildcard

Signed-off-by: yubonluo <[email protected]>

* update the config yaml file

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR opensearch-project#8617 created/updated

* Changeset file for PR opensearch-project#8617 created/updated

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants