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

fix: don't log username/password in binary mirror proxy URLs #1758

Merged
merged 5 commits into from
Oct 5, 2023

Conversation

EverlastingBugstopper
Copy link
Contributor

Previously, when using the APOLLO_ROVER_DOWNLOAD_HOST environment variable to override the download location of a plugin binary, Rover would log the entire URL to stdout, potentially leaking username and password authentication details if they were included in the URL. Now, Rover strips that information from the URLs before printing the download location. If Rover is not able to strip that information (likely due to an invalid URL), then it doesn't try to print the sanitized URL at all, instead opting to continue onwards (likely towards an error sending a request to an invalid URL).

@EverlastingBugstopper EverlastingBugstopper self-assigned this Oct 2, 2023
@EverlastingBugstopper EverlastingBugstopper added the fix 🩹 fixes a bug label Oct 2, 2023
@EverlastingBugstopper EverlastingBugstopper added this to the vNext milestone Oct 2, 2023
@EverlastingBugstopper EverlastingBugstopper force-pushed the avery/remove-auth-from-urls branch from 60d007d to 69128fd Compare October 2, 2023 19:00
@EverlastingBugstopper EverlastingBugstopper enabled auto-merge (squash) October 5, 2023 15:02
@EverlastingBugstopper EverlastingBugstopper merged commit fb6805e into main Oct 5, 2023
@EverlastingBugstopper EverlastingBugstopper deleted the avery/remove-auth-from-urls branch October 5, 2023 15:16
EverlastingBugstopper added a commit that referenced this pull request Oct 5, 2023
# [0.20.0] - 2023-10-05

## 🚀 Features

- **Persisted Queries is now GA - @glasser, #1756**

The `rover persisted-queries publish` command is now out of the public
preview phase and has entered general availability. Check out [the
documentation](https://www.apollographql.com/docs/graphos/operations/persisted-queries)
for this enterprise feature.

## 🐛 Fixes

- **Better message for a subgraph published with no changes - @bonnici,
#1757**

`rover subgraph publish` now logs a message to `stdout` when a subgraph
was published and there were no changes to the schema.

- **Don't log username/password if `APOLLO_ROVER_DOWNLOAD_HOST` includes
authentication in the URL - @EverlastingBugstopper, #1758**

Previously, when using the `APOLLO_ROVER_DOWNLOAD_HOST` environment
variable to override the download location of a plugin binary, Rover
would log the entire URL to stdout, potentially leaking username and
password authentication details if they were included in the URL. Now,
Rover strips that information from the URLs before printing the download
location. If Rover is not able to strip that information (likely due to
an invalid URL), then it doesn't try to print the sanitized URL at all.

## 📚 Documentation

- **Improve wording of persisted queries documentation - @Meschreiber,
#1760**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 🩹 fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants