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

Db2 source: discover only permitted tables #9875

Merged
merged 8 commits into from
Feb 1, 2022

Conversation

sashaNeshcheret
Copy link
Contributor

@sashaNeshcheret sashaNeshcheret commented Jan 28, 2022

What

User without permissions could discover tables and schemas

How

During discovery we keep only tables that was fetched with right select permissions

Recommended reading order

  1. x.java

Pre-merge Checklist

Expand the relevant checklist and delete the others.

New Connector

Community member or Airbyter

  • Community member? Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • docs/SUMMARY.md
    • docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
    • docs/integrations/README.md
    • airbyte-integrations/builds.md
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • Credentials added to Github CI. Instructions.
  • /test connector=connectors/<name> command is passing.
  • New Connector version released on Dockerhub by running the /publish command described here
  • After the connector is published, connector added to connector index as described here
  • Seed specs have been re-generated by building the platform and committing the changes to the seed spec files, as described here

Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Secrets in the connector's spec are annotated with airbyte_secret
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Code reviews completed
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • Changelog updated in docs/integrations/<source or destination>/<name>.md including changelog. See changelog example
  • PR name follows PR naming conventions

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • Credentials added to Github CI. Instructions.
  • /test connector=connectors/<name> command is passing.
  • New Connector version released on Dockerhub by running the /publish command described here
  • After the new connector version is published, connector version bumped in the seed directory as described here
  • Seed specs have been re-generated by building the platform and committing the changes to the seed spec files, as described here

Connector Generator

  • Issue acceptance criteria met
  • PR name follows PR naming conventions
  • If adding a new generator, add it to the list of scaffold modules being tested
  • The generator test modules (all connectors with -scaffold in their name) have been updated with the latest scaffold by running ./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates then checking in your changes
  • Documentation which references the generator is updated as needed.

@github-actions github-actions bot added the area/connectors Connector related issues label Jan 28, 2022
@sashaNeshcheret sashaNeshcheret changed the title db2 source: discover only permitted tables DRAFT: db2 source: discover only permitted tables Jan 28, 2022
@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets January 31, 2022 10:38 Inactive
…b2-user-permissions

# Conflicts:
#	airbyte-integrations/connectors/source-db2/src/test-integration/java/io/airbyte/integrations/io/airbyte/integration_tests/sources/Db2SourceAcceptanceTest.java
@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets January 31, 2022 10:45 Inactive
@sashaNeshcheret sashaNeshcheret changed the title DRAFT: db2 source: discover only permitted tables Db2 source: discover only permitted tables Jan 31, 2022
@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets January 31, 2022 10:55 Inactive
Copy link
Contributor

@etsybaev etsybaev left a comment

Choose a reason for hiding this comment

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

Please do not forget to pass the PR's checklist

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 1, 2022

/test connector=connectors/source-db2

🕑 connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1777811587
✅ connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1777811587
No Python unittests run

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 1, 2022 10:54 Inactive
Copy link
Contributor

@alexandr-shegeda alexandr-shegeda left a comment

Choose a reason for hiding this comment

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

LGTM. we can proceed with publishing and merging without airbyte review

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 1, 2022

/test connector=connectors/source-db2-strict-encrypt

🕑 connectors/source-db2-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1778144737
✅ connectors/source-db2-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1778144737
No Python unittests run

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 1, 2022 12:11 Inactive
@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Feb 1, 2022
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 1, 2022

/test connector=connectors/source-db2-strict-encrypt

🕑 connectors/source-db2-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1778347280
✅ connectors/source-db2-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1778347280
No Python unittests run

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 1, 2022

/test connector=connectors/source-db2

🕑 connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1778347386
✅ connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1778347386
No Python unittests run

@sashaNeshcheret sashaNeshcheret temporarily deployed to more-secrets February 1, 2022 12:57 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 1, 2022 12:58 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 1, 2022 12:58 Inactive
@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 1, 2022

/publish connector=connectors/source-db2

🕑 connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1778556045
✅ connectors/source-db2 https://github.com/airbytehq/airbyte/actions/runs/1778556045

@sashaNeshcheret
Copy link
Contributor Author

sashaNeshcheret commented Feb 1, 2022

/publish connector=connectors/source-db2-strict-encrypt

🕑 connectors/source-db2-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1778558226
✅ connectors/source-db2-strict-encrypt https://github.com/airbytehq/airbyte/actions/runs/1778558226

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 1, 2022 13:38 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 1, 2022 13:38 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets February 1, 2022 13:38 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source DB2: Schemas and tables where the connected user doesn't have privileges appear on Airbyte UI
4 participants