This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
SafeURL
helper method to GitRemoteConfig
During the development of the (secure) Git HTTPS credential feature, I did not take the response of the `GitRepoConfig` API method into account. As a direct result, the `fluxctl sync` command still exposes the full Git URL in the logs. This commit embeds the `git.Remote` in the `GitRemoteConfig` structure, so that we can re-use the `SafeURL` helper of this structure in the `fluxctl` code. To ensure the JSON representation stays the same, a JSON struct tag has been added to the `git.Remote` URL field.
- Loading branch information
Showing
4 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters