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

Toggle off and on set -x when DOCKER_TOKEN is used #13293

Merged
merged 4 commits into from
May 27, 2022

Conversation

noahkawasaki-airbyte
Copy link
Contributor

@noahkawasaki-airbyte noahkawasaki-airbyte commented May 27, 2022

What

This is why I'm not a fan of merging set -x into a repo :(

Toggling it on and off whenever the DOCKER_TOKEN is used.

How

Describe the solution

Recommended reading order

  1. x.java
  2. y.python

@noahkawasaki-airbyte
Copy link
Contributor Author

@noahkawasaki-airbyte noahkawasaki-airbyte temporarily deployed to more-secrets May 27, 2022 21:20 Inactive
@noahkawasaki-airbyte noahkawasaki-airbyte temporarily deployed to more-secrets May 27, 2022 21:22 Inactive
@github-actions github-actions bot added the area/connectors Connector related issues label May 27, 2022
@noahkawasaki-airbyte
Copy link
Contributor Author

noahkawasaki-airbyte commented May 27, 2022

/publish connector=connectors/source-faker run-tests=false

🕑 connectors/source-faker https://github.com/airbytehq/airbyte/actions/runs/2398834087
🚀 Successfully published connectors/source-faker
❌ Couldn't auto-bump version for connectors/source-faker

@noahkawasaki-airbyte
Copy link
Contributor Author

/publish connector=connectors/source-faker run-tests=false auto-bump-version=true

@evantahler
Copy link
Contributor

We do use DOCKER_PASSWORD in a few other scripts, but not via curl (e.g. docker login --username airbytebot --password "${DOCKER_PASSWORD}"). I don't think this outputs anything sensitive

@noahkawasaki-airbyte noahkawasaki-airbyte temporarily deployed to more-secrets May 27, 2022 21:24 Inactive
@noahkawasaki-airbyte
Copy link
Contributor Author

Yeah, more importantly they are actual Github Secrets so GHA knows to mask them. The reason the tokens were an issue was because they are created during runtime..

@evantahler
Copy link
Contributor

@noahkawasaki-airbyte
Copy link
Contributor Author

I dont see set -x in that file anywhere so that one should not be a problem. But I guess there is still a risk that someone adds in later

@evantahler
Copy link
Contributor

evantahler commented May 27, 2022

Yeah, more importantly they are actual Github Secrets so GHA knows to mask them. The reason the tokens were an issue was because they are created during runtime..

Fascinating! if we set an empty secret would github have masked the output even if we change the value in the script later?

@codecov
Copy link

codecov bot commented May 27, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@fed651b). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 6680540 differs from pull request most recent head 3bff0cf. Consider uploading reports for the commit 3bff0cf to get more accurate results

@@            Coverage Diff            @@
##             master   #13293   +/-   ##
=========================================
  Coverage          ?   96.07%           
=========================================
  Files             ?        2           
  Lines             ?       51           
  Branches          ?        0           
=========================================
  Hits              ?       49           
  Misses            ?        2           
  Partials          ?        0           

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 fed651b...3bff0cf. Read the comment docs.

@noahkawasaki-airbyte
Copy link
Contributor Author

That might be the solution actually, yeah.

@noahkawasaki-airbyte
Copy link
Contributor Author

Confirmed this removes logging of tokens

@github-actions github-actions bot removed the area/connectors Connector related issues label May 27, 2022
@noahkawasaki-airbyte noahkawasaki-airbyte merged commit 0fd866c into master May 27, 2022
@noahkawasaki-airbyte noahkawasaki-airbyte deleted the noah/docker-token-fix branch May 27, 2022 21:40
jscottpolevault pushed a commit to jscottpolevault/airbyte that referenced this pull request Jun 1, 2022
* Toggle off and on set -x when DOCKER_TOKEN is used
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.

2 participants