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

[AIRFLOW-5705] Make AwsSsmSecretsBackend consistent with VaultBackend #7753

Merged
merged 2 commits into from
Mar 19, 2020

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented Mar 18, 2020

Make this PR consistent with #7741 to remove the redundant AIRFLOW_CONN from secret key

and add more tests


Issue link: AIRFLOW-5705

Make sure to mark the boxes below before creating PR: [x]

  • Description above provides context of the change
  • Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
  • Unit tests coverage for changes (not needed for documentation changes)
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].


In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

cc @dstandish

@kaxil kaxil requested review from ashb and potiuk March 18, 2020 00:57
@boring-cyborg boring-cyborg bot added area:secrets provider:amazon-aws AWS/Amazon - related issues labels Mar 18, 2020
@codecov-io
Copy link

codecov-io commented Mar 18, 2020

Codecov Report

Merging #7753 into master will decrease coverage by 0.84%.
The diff coverage is 67.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7753      +/-   ##
==========================================
- Coverage   86.96%   86.11%   -0.85%     
==========================================
  Files         920      921       +1     
  Lines       44436    44462      +26     
==========================================
- Hits        38644    38290     -354     
- Misses       5792     6172     +380     
Impacted Files Coverage Δ
airflow/providers/hashicorp/secrets/vault.py 62.33% <62.33%> (ø)
airflow/providers/amazon/aws/secrets/ssm.py 100.00% <100.00%> (+5.71%) ⬆️
airflow/secrets/__init__.py 97.61% <100.00%> (-0.06%) ⬇️
airflow/secrets/environment_variables.py 100.00% <100.00%> (ø)
...flow/providers/apache/cassandra/hooks/cassandra.py 21.51% <0.00%> (-72.16%) ⬇️
...w/providers/apache/hive/operators/mysql_to_hive.py 35.84% <0.00%> (-64.16%) ⬇️
airflow/kubernetes/volume_mount.py 44.44% <0.00%> (-55.56%) ⬇️
airflow/providers/postgres/operators/postgres.py 50.00% <0.00%> (-50.00%) ⬇️
airflow/providers/redis/operators/redis_publish.py 50.00% <0.00%> (-50.00%) ⬇️
airflow/kubernetes/volume.py 52.94% <0.00%> (-47.06%) ⬇️
... and 41 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 029c84e...9655c92. Read the comment docs.

@kaxil kaxil force-pushed the AwsSsmSecretsBackend-consistent branch from 6da2cde to 1d7fb99 Compare March 18, 2020 22:40
@kaxil kaxil force-pushed the AwsSsmSecretsBackend-consistent branch from 1d7fb99 to d4b310d Compare March 18, 2020 23:06
@kaxil kaxil changed the title [AIRFLOW-5705] Make AwsSsmSecretsBackend consistent with VaultBackend [AIRFLOW-5705][depends on AIRFLOW-7076] Make AwsSsmSecretsBackend consistent with VaultBackend Mar 18, 2020
Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

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

LGTM

@kaxil kaxil changed the title [AIRFLOW-5705][depends on AIRFLOW-7076] Make AwsSsmSecretsBackend consistent with VaultBackend [AIRFLOW-5705] Make AwsSsmSecretsBackend consistent with VaultBackend Mar 19, 2020
@kaxil kaxil force-pushed the AwsSsmSecretsBackend-consistent branch from 9655c92 to 5ba9497 Compare March 19, 2020 22:31
@kaxil kaxil merged commit a360024 into apache:master Mar 19, 2020
@kaxil kaxil deleted the AwsSsmSecretsBackend-consistent branch March 19, 2020 22:31
kaxil added a commit to astronomer/airflow that referenced this pull request Mar 30, 2020
kaxil added a commit to astronomer/airflow that referenced this pull request Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:secrets provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants