Skip to content

Fixes 11068: mysql & postgres iam auth - #11937

Merged
ayush-shah merged 35 commits into
mainfrom
issue-11068
Jun 16, 2023
Merged

ayush-shah merged 35 commits into
mainfrom
issue-11068

Conversation

@ayush-shah

@ayush-shah ayush-shah commented Jun 9, 2023 •

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #11068

This PR adds IAM auth, supports fetching of metadata from AWS RDS instances.
we currently support the same for Mysql and Postgres.

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@cypress

cypress Bot commented Jun 9, 2023 •

Copy link
Copy Markdown

5 failed tests on run #24116 ↗︎

5 253 54 0 Flakiness 0

Details:

redefine var as Constant
Project: openmetadata Commit: 79f41a34fa
Status: Failed Duration: 32:20 💡
Started: Jun 16, 2023 6:05 AM Ended: Jun 16, 2023 6:37 AM
Failed  AddNewService/snowflake.spec.js • 4 failed tests • Tests with database mysql

View Output Video

Test Artifacts
Snowflake Ingestion > add and ingest data Output Screenshots Video
Snowflake Ingestion > Update table description and verify description after re-run Output Screenshots Video
Snowflake Ingestion > Edit and validate owner Output Screenshots Video
Snowflake Ingestion > delete created service Output Screenshots Video
Failed  Flow/EditEntityLineage.spec.js • 1 failed test • Tests with database mysql

View Output Video

Test Artifacts
Entity Details Page > Edit lineage should work for pipelines entity Output Screenshots Video

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@github-actions

github-actions Bot commented Jun 9, 2023

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@github-actions

github-actions Bot commented Jun 13, 2023 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 52%
53.33% (21883/41035) 30.05% (8720/29015) 33.82% (2582/7635)

@github-actions

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@github-actions

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@ayush-shah

Copy link
Copy Markdown
Member Author

Converting to draft as CYpress UI needs modifications

chirag-madlani
chirag-madlani previously approved these changes Jun 15, 2023

@chirag-madlani chirag-madlani left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good

mohityadav766
mohityadav766 previously approved these changes Jun 15, 2023

def _add_password(url, connection, attr) -> str:
# A helper function that adds the password to the url if it exists
password = getattr(connection, attr, None)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

would be good to have some hints on the arguments. Also the name attr is not quite clear on what we want to do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this could use a docstring as well

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

makes sense, let me make it more readable.

pmbrull
pmbrull previously approved these changes Jun 16, 2023
@sonarqubecloud

Copy link
Copy Markdown

[open-metadata-airflow-apis] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarqubecloud

Copy link
Copy Markdown

[open-metadata-ui] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud

Copy link
Copy Markdown

[open-metadata-ingestion] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

80.8% 80.8% Coverage
0.0% 0.0% Duplication

@sonarqubecloud

Copy link
Copy Markdown

[OpenMetadata-Platform] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

This branch had an error being deployed

1 failed deployment
test — 79f41a34 Deployed Jun 16, 2023 by ayush-shah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding databases to OM using IAM role-based authentication

4 participants