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

[MD][PoC] based on simple encryption and decryption strategies #1804

Closed
2 tasks done
Tracked by #1733
noCharger opened this issue Jun 25, 2022 · 0 comments
Closed
2 tasks done
Tracked by #1733

[MD][PoC] based on simple encryption and decryption strategies #1804

noCharger opened this issue Jun 25, 2022 · 0 comments
Assignees
Labels
dashboards anywhere label for dashboards anywhere multiple datasource multiple datasource project

Comments

@noCharger
Copy link
Contributor

noCharger commented Jun 25, 2022

Description

Two main features:

  • Save credential (username, password) via API,
  • Store encrypted information on metadata index

Code

elastic-analytics#1

Test

Cli command and output:

curl --include -XPOST localhost:5601/api/saved_objects/credential \
    -H "Content-Type: application/json" \
    -H "osd-xsrf: true" \
    -d'{"attributes": {"credential_name": "test-credential-2", "user_name": "louis", "password": "abcd"}}'
HTTP/1.1 200 OK
osd-name: 88665a1d4119.ant.amazon.com
content-type: application/json; charset=utf-8
cache-control: private, no-cache, no-store, must-revalidate
content-length: 805
Date: Sat, 25 Jun 2022 03:47:08 GMT
Connection: keep-alive
Keep-Alive: timeout=120

{"type":"credential","id":"7c42ab60-f439-11ec-8934-e9ce406d7ec9","attributes":{"credential_name":"test-credential-2","user_name":"louis","password":"AgV4zWF85l7iqS6pZbmARHsxAcPOk6FSLwWJ7aTDW9ydnBYAXwABABVhd3MtY3J5cHRvLXB1YmxpYy1rZXkAREF6TWhWSjFVTjY3bFRZWFROVEgzZkNIRndXWjd2RityMTZjdWphd3pEMGszbEpKcm5MalVZSGpCN2FOcGNxRGFmZz09AAEADWFlcy1uYW1lc3BhY2UAHGFlcy1uYW1lAAAAgAAAAAzdNZqWGaqd8jjhxFsAMEJu8HkAnXz/EsPSw8ff3+lISA0JAiRGhnViL5jDArcAkvOA5Pxjn9AWuw5tVhRjBgIAABAA5o7ye3D/GeeXXcIKl3PZz9Ye2ZpX0cBE+gekw66xIsqghprhw/lhnJkB3Ar7JXXy/////wAAAAEAAAAAAAAAAAAAAAEAAAAE9WVy/Uq/WFDNgrew2ECI37nD3fcAZjBkAjBSnsdRlLUMrvMbdQYG2NlHRNr8KWW6t7VJiM+vCoSbll5eW/WA6M9ROb7qGyMidaICMAdp8pilRjr9s0/lh44OLQHAJb1VNXbM1etbvAKAoIcBkLBfV1iQDec3GncM4CdNHw=="},"references":[],"updated_at":"2022-06-25T03:47:07.669Z","version":"WzUsMV0="}%  

Saved object on Opensearch cluster

        "_index" : ".kibana_3",
        "_id" : "credential:7c42ab60-f439-11ec-8934-e9ce406d7ec9",
        "_score" : 1.0,
        "_source" : {
          "credential" : {
            "credential_name" : "test-credential-2",
            "user_name" : "louis",
            "password" : "AgV4zWF85l7iqS6pZbmARHsxAcPOk6FSLwWJ7aTDW9ydnBYAXwABABVhd3MtY3J5cHRvLXB1YmxpYy1rZXkAREF6TWhWSjFVTjY3bFRZWFROVEgzZkNIRndXWjd2RityMTZjdWphd3pEMGszbEpKcm5MalVZSGpCN2FOcGNxRGFmZz09AAEADWFlcy1uYW1lc3BhY2UAHGFlcy1uYW1lAAAAgAAAAAzdNZqWGaqd8jjhxFsAMEJu8HkAnXz/EsPSw8ff3+lISA0JAiRGhnViL5jDArcAkvOA5Pxjn9AWuw5tVhRjBgIAABAA5o7ye3D/GeeXXcIKl3PZz9Ye2ZpX0cBE+gekw66xIsqghprhw/lhnJkB3Ar7JXXy/////wAAAAEAAAAAAAAAAAAAAAEAAAAE9WVy/Uq/WFDNgrew2ECI37nD3fcAZjBkAjBSnsdRlLUMrvMbdQYG2NlHRNr8KWW6t7VJiM+vCoSbll5eW/WA6M9ROb7qGyMidaICMAdp8pilRjr9s0/lh44OLQHAJb1VNXbM1etbvAKAoIcBkLBfV1iQDec3GncM4CdNHw=="
          },
          "type" : "credential",
          "references" : [ ],
          "updated_at" : "2022-06-25T03:47:07.669Z"
        }
      },
@noCharger noCharger self-assigned this Jun 25, 2022
@noCharger noCharger added dashboards anywhere label for dashboards anywhere multiple datasource multiple datasource project labels Jun 25, 2022
@noCharger noCharger changed the title PoC based on simple encryption and decryption strategies [PoC] based on simple encryption and decryption strategies Jun 25, 2022
@kavilla kavilla changed the title [PoC] based on simple encryption and decryption strategies [MD][PoC] based on simple encryption and decryption strategies Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboards anywhere label for dashboards anywhere multiple datasource multiple datasource project
Projects
None yet
Development

No branches or pull requests

1 participant