-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Redshift connection breaking change with IAM authentication #31551
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Upgrading to the latest amazon provider broke my existing DAG which uses redshift connection , I would consider it as a bug which would need quick resolution
|
i am curious how user encountered this problem. it looks like |
I agree with @dstandish, this change is b/c, where the method is not invoked if you don't provide the "iam" extra with a True value. |
The "iam" parameter is not being set to false by default - Line 551 in 5ae9728
|
that's interesting, and, maybe not the best choice (particularly given that it looks like it would blow up, since host is not populated), but it's just an example connection. and, looks like it was probably released at same time as this [new] feature. don't get me wrong, i think we should make the code better, but just doesn't seem, strictly speaking, to be a breaking change -- whatever that's worth. |
I'm removing the priority label. Issues that are locallized to a specific operator in a specific provider are not considered urgent as the radius of the issue is not big. cc @o-nikolas @shubham22 @cjames23 WDYT about the issue? |
@dstandish @hussein-awala @phanikumv When user passes the following as part of redshift connection, it would break:
The following image shows that the Even though the
Following is the test we did.
Thanks @pankajkoti for your support with the connection details we use in astro-sdk and debugging. Conclusion:This is a bug in the current implementation for all users when |
Indeed, |
@sunank200 is already working on fixing this ! |
@hussein-awala I am already working on this PR |
👌 |
yes, along with being a bug, I will consider it as a breaking change as users like us would not have set |
I don't agree, IMO this is just a new broken feature, setting |
If the new feature is broken and does not have an effect outside the scope of the feature, I believe it's fine. But it is affecting existing running DAGs too because the earlier setup connection has Curious to understand why having to alter the connection/configuration by having to set Also, setting |
@pankajkoti breaking change is breaking something that works correctly before the change, in our case, if someone has an old redshift connection, it will be without the extra |
@hussein-awala okay thanks. For us, it's an automated script which creates connection. But let me test it sometime soon across provider versions that if there is an existing connection with iam:true with a non-default The iam:true is required by redshift_connector library and the field was getting used before too I believe and it's not a new one introduced as part of this feature. |
Apache Airflow version
2.6.1
What happened
This PR introduced the get_iam_token method in
redshift_sql.py
. This is the breaking change as introduces the check foriam
in extras, and it's set to False by default.Error log:
What you think should happen instead
It should have backward compatibility
How to reproduce
Run an example DAG for redshift with the AWS IAM profile given at hook initialization to retrieve a temporary password to connect to Amazon Redshift.
Operating System
mac-os
Versions of Apache Airflow Providers
No response
Deployment
Astronomer
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: