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

Redact clone url during clone errors. #618

Merged
merged 1 commit into from
May 7, 2019
Merged

Redact clone url during clone errors. #618

merged 1 commit into from
May 7, 2019

Conversation

lkysow
Copy link
Member

@lkysow lkysow commented May 7, 2019

If there was an error during cloning, we would sometimes print the clone
credentials to the pull request and in the Atlantis logs. This change
ensures we print the redacted clone url.

We also change the redacted clone url to contain "username:"
so that if users see the redacted url in logs, they'll know we were
using a credentialed form and so if they try to replicate with curl
they'll know to substitute the correct credentials.

Fixes #615

If there was an error during cloning, we would sometimes print the clone
credentials to the pull request and in the Atlantis logs. This change
ensures we print the redacted clone url.

We also change the redacted clone url to contain "username:<redacted>"
so that if users see the redacted url in logs, they'll know we were
using a credentialed form and so if they try to replicate with curl
they'll know to substitute the correct credentials.
@lkysow lkysow force-pushed the redact-cloneurl branch from e9c2210 to d0308a5 Compare May 7, 2019 13:15
@codecov
Copy link

codecov bot commented May 7, 2019

Codecov Report

Merging #618 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #618      +/-   ##
==========================================
+ Coverage   72.15%   72.17%   +0.02%     
==========================================
  Files          61       61              
  Lines        4629     4633       +4     
==========================================
+ Hits         3340     3344       +4     
  Misses       1044     1044              
  Partials      245      245
Impacted Files Coverage Δ
server/events/models/models.go 74.6% <100%> (+0.61%) ⬆️
server/events/working_dir.go 75% <100%> (+0.3%) ⬆️

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 4ccb694...d0308a5. Read the comment docs.

@lkysow lkysow merged commit c1c01ea into master May 7, 2019
@lkysow lkysow deleted the redact-cloneurl branch May 7, 2019 13:20
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.

Atlantis posts Bitbucket token when there is a connection error
1 participant