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

[META] Multiple Datasources Support for Security Dashboards Plugin #1794

Closed
8 tasks done
derek-ho opened this issue Feb 22, 2024 · 4 comments · Fixed by #1888
Closed
8 tasks done

[META] Multiple Datasources Support for Security Dashboards Plugin #1794

derek-ho opened this issue Feb 22, 2024 · 4 comments · Fixed by #1888
Labels
enhancement New feature or request triaged

Comments

@derek-ho
Copy link
Collaborator

derek-ho commented Feb 22, 2024

Sub Issues

What solution would you like?
Support for multiple datasources in security dashboards plugin

What alternatives have you considered?
None

Do you have any additional context?
Original issue is: #1782, but I do not have edit access to that issue, so creating this meta issue to track the sub issues that need to be completed before we can mark #1782 as completed.

@derek-ho derek-ho added enhancement New feature or request untriaged labels Feb 22, 2024
@derek-ho
Copy link
Collaborator Author

Background/Test setup:

Add the following setting into opensearch_dashboards.yml :

data_source.enabled: true // enables multiple datasource feature

server.host: "0.0.0.0"
opensearch.hosts: ["https://localhost:9200"]
opensearch.ssl.verificationMode: none
opensearch.username: "kibanaserver"
opensearch.password: "kibanaserver"
opensearch.requestHeadersWhitelist: [ authorization,securitytenant ]
opensearch_security.multitenancy.enabled: true
opensearch_security.multitenancy.tenants.preferred: ["Private", "Global"]
opensearch_security.readonly_mode.roles: ["kibana_read_only"]
# Use this setting if you are running opensearch-dashboards without https
opensearch_security.cookie.secure: false

Setup Remote Cluster without Auth
TODO: add steps here

Setup Remote Cluster with Basic Auth
TODO: add steps here

Setup Remote Cluster with AWSSigV4 Auth
TODO: add steps here

Limitations/Assumptions P0:

  • No auth, basic auth, sigv4 auth support (no saml, oidc, proxy, multiple, jwt)

Data source connection picker

In [#5717](https://github.com/opensearch-project/OpenSearch-Dashboards/issues/5717), we introduced a picker to select data connection. This picker is within the data source plugin bundle, and when loaded, it will fetch data source connection which is a type of saved object and then populate the available data connections as single selected options in the drop down.

In order to consume this picker from a plugin, follow the steps as below:

1. in the opensearch_dashboards.json file, add dataSource as required bundle, eg. "requiredBundles": ["dataSourceManagement"]
2. import the component in the file where this picker is needed, eg. import { ClusterSelector } from '../../data_source_management/public'
3. this picker exposes onSelectedDataSource which can be used to get the selected option from the picker component

@derek-ho
Copy link
Collaborator Author

[Triage] part of the meta to add support for multiple datasources

@derek-ho
Copy link
Collaborator Author

Working on the branch: feature/supporting-multiple-datasources

@derek-ho
Copy link
Collaborator Author

derek-ho commented Mar 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged
Projects
None yet
1 participant