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

[BUG] Data Source Connection Passwords Empty When Imported (export.ndjson) #4529

Open
c-neto opened this issue Jul 9, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working multiple datasource multiple datasource project

Comments

@c-neto
Copy link

c-neto commented Jul 9, 2023

I created an OpenSearch access in the Data Source menu, with tested and valid credentials.

I exported the created Data Sources objects in the OpenSearch-Dashboards > Stack Management > Saved objects > Export menu.

When I import the export.ndjson, and test the credentials, the connection not works. If I update the connection password with the same password that I configured before exporting the connection Object, the connection works.

To Reproduce

I created the docker-compose lab to reproduce this bug: https://github.com/c-neto/my-devops-labs/tree/main/opensearch/multi-data-source-import-bug

  1. Create a new tested and valid connection in the menu: OpenSearch-Dashboards > Stack Management > Data Sources menu (URI: /app/management/opensearch-dashboards/dataSources
  2. Export the Data Sources connection in the menu: OpenSearch-Dashboards > Stack Management > Saved objects > Export (URI: /app/management/opensearch-dashboards/objects)
  3. Delete the connections created in the step 1
  4. Import the Data Source Connections file exported in the step 2 in the menu: OpenSearch-Dashboards > Stack Management > Saved objects > Import (URI: /app/management/opensearch-dashboards/objects)
  5. Test connection (the problem is in here. It will show the popup with an error)
  6. Update the password with the same password tested and exported in step 1.
  7. Test connection (the connection will work).

Expected behavior

It is expected that the connection works when importing the Data Source connection, without updated the password.

OpenSearch Version

I tested OpenSearch in the 2.7 and 2.8 version.

Dashboards Version

I tested OpenSearch-Dashboards in the 2.7 and 2.8 version.

Screenshots





  • Status: 400
  • Method: POST
  • Payload:
{
  "id": "3ec0a370-1e16-11ee-81d5-07a982bf9281",
  "dataSourceAttr": {
    "endpoint": "https://opensearch-secondary.lab:9200",
    "auth": {
      "type": "username_password",
      "credentials": {
        "username": "admin",
        "password": ""
      }
    }
  }
}



Host/Environment:

  • OS: Fedora 35
  • Docker: 20.10.22
  • Browser: Mozilla Firefox 107.0
@c-neto c-neto added bug Something isn't working untriaged labels Jul 9, 2023
@zhongnansu zhongnansu added the multiple datasource multiple datasource project label Jul 10, 2023
@ananzh ananzh removed the untriaged label Jul 11, 2023
@zhongnansu
Copy link
Member

zhongnansu commented Jul 11, 2023

@augustoliks Thanks for submitting the issue. We have similar request before, please refer to my latest comment there, trying to keep discussion in one thread
#1728 (comment)

@zhongnansu
Copy link
Member

zhongnansu commented Apr 1, 2024

@c-neto The related topic is currently tracked in this issue #6115. Data source will not be exportable, and will be filtered out when exporting saved objects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working multiple datasource multiple datasource project
Projects
None yet
Development

No branches or pull requests

3 participants