Skip to content

Add validation for missing host and cluster/workgroup identifier in aws iam token retrieval#61965

Open
justinpakzad wants to merge 3 commits intoapache:mainfrom
justinpakzad:fix/postgres-hook-host-clusid-none-handling
Open

Add validation for missing host and cluster/workgroup identifier in aws iam token retrieval#61965
justinpakzad wants to merge 3 commits intoapache:mainfrom
justinpakzad:fix/postgres-hook-host-clusid-none-handling

Conversation

@justinpakzad
Copy link
Contributor


Added validation/handling in the PostgresHook get_aws_iam_token() method for situations where host and cluster-identifier/workgroup-name are not provided. Added additional test cases as well.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@justinpakzad
Copy link
Contributor Author

Seems to be an unrelated test that's failing.

Copy link
Contributor

@SameerMesiah97 SameerMesiah97 left a comment

Choose a reason for hiding this comment

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

I have left a few comments.

@justinpakzad justinpakzad force-pushed the fix/postgres-hook-host-clusid-none-handling branch from 99f9fc4 to 1e5d2a1 Compare February 17, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants