Skip to content

Allow Async Google Operators to accept impersonation_chain and delegate_to parameters for authentication #703

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

Merged
merged 12 commits into from
Dec 2, 2022

Conversation

bharanidharan14
Copy link
Contributor

@bharanidharan14 bharanidharan14 commented Oct 6, 2022

Google operators ignore authentication parameters impersonation_chain which supports connecting with google cloud API without any authentication key by using impersonation chain authentication. These parameters are supported by their sync version operators, So now made a fix to the async Operators to support impersonation_chain and delegate_to other type authentication params.

Closes: #651

@bharanidharan14 bharanidharan14 changed the title Add Async Google Operator with impersonation_chain param Add Async Google Operator and trigger to accept impersonation_chain and delegate_to param Oct 6, 2022
@codecov
Copy link

codecov bot commented Oct 7, 2022

Codecov Report

Base: 98.50% // Head: 98.46% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (3a8d5fa) compared to base (e9864f2).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #703      +/-   ##
==========================================
- Coverage   98.50%   98.46%   -0.04%     
==========================================
  Files          87       87              
  Lines        4746     4753       +7     
==========================================
+ Hits         4675     4680       +5     
- Misses         71       73       +2     
Impacted Files Coverage Δ
...stronomer/providers/google/cloud/hooks/bigquery.py 99.09% <100.00%> (+0.01%) ⬆️
...nomer/providers/google/cloud/operators/bigquery.py 100.00% <100.00%> (ø)
...nomer/providers/google/cloud/operators/dataproc.py 98.82% <100.00%> (ø)
...onomer/providers/google/cloud/triggers/bigquery.py 93.90% <100.00%> (+0.06%) ⬆️
...onomer/providers/google/cloud/triggers/dataproc.py 100.00% <100.00%> (ø)
...mer/providers/amazon/aws/hooks/redshift_cluster.py 95.94% <0.00%> (-2.71%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bharanidharan14 bharanidharan14 changed the title Add Async Google Operator and trigger to accept impersonation_chain and delegate_to param Add Async Google Operator and trigger to accept impersonation_chain and delegate_to param Oct 7, 2022
@bharanidharan14 bharanidharan14 marked this pull request as ready for review October 7, 2022 09:25
@bharanidharan14 bharanidharan14 changed the title Add Async Google Operator and trigger to accept impersonation_chain and delegate_to param [WIP]: Add Async Google Operator and trigger to accept impersonation_chain and delegate_to param Oct 7, 2022
Copy link
Collaborator

@phanikumv phanikumv left a comment

Choose a reason for hiding this comment

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

need the integration test DAG to contain examples of using the impersonation_chain and delegate_to params

Copy link
Contributor

@pankajastro pankajastro left a comment

Choose a reason for hiding this comment

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

Just interested to know how we are testing this.

@bharanidharan14 bharanidharan14 force-pushed the gcs-authentication-651 branch 2 times, most recently from 73ee033 to 5ffce3f Compare November 29, 2022 09:50
@bharanidharan14 bharanidharan14 changed the title [WIP]: Add Async Google Operator and trigger to accept impersonation_chain and delegate_to param Add Async Google Operator and trigger to accept impersonation_chain and delegate_to param Nov 29, 2022
@bharanidharan14 bharanidharan14 force-pushed the gcs-authentication-651 branch 2 times, most recently from da34334 to 316283a Compare November 30, 2022 06:30
Copy link
Collaborator

@phanikumv phanikumv left a comment

Choose a reason for hiding this comment

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

why are you changing snowflake provider in this PR? It looks like your PR changes for Snowflake came into this PR - which needs to be corrected

@bharanidharan14
Copy link
Contributor Author

why are you changing snowflake provider in this PR? It looks like your PR changes for Snowflake came into this PR - which needs to be corrected

Yes snowflake changes are not related to these PR changes, reverting it back

@bharanidharan14
Copy link
Contributor Author

why are you changing snowflake provider in this PR? It looks like your PR changes for Snowflake came into this PR - which needs to be corrected

@phanikumv can you review now

@bharanidharan14
Copy link
Contributor Author

@rajaths010494 @pankajkoti can you review this PR

@phanikumv phanikumv changed the title Add Async Google Operator and trigger to accept impersonation_chain and delegate_to param Allow Async Google Operators to accept impersonation_chain and delegate_to parameters for authentication Dec 2, 2022
Copy link
Collaborator

@phanikumv phanikumv left a comment

Choose a reason for hiding this comment

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

please add example dag for dataproc operator as well as you changed the dataproc operator

@bharanidharan14 bharanidharan14 merged commit 9853f6c into main Dec 2, 2022
@bharanidharan14 bharanidharan14 deleted the gcs-authentication-651 branch December 2, 2022 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Google Operators don't support all authentication parameters
4 participants