Skip to content

Versionadded tags for https_user and https_pass args new in 2015.5.0 - #23983

Merged
rallytime merged 1 commit into
saltstack:2015.5from
rallytime:versionadded_git_options
May 20, 2015
Merged

rallytime merged 1 commit into
saltstack:2015.5from
rallytime:versionadded_git_options

Conversation

@rallytime

Copy link
Copy Markdown
Contributor

No description provided.

rallytime referenced this pull request May 20, 2015
- Overview

This commit adds support for HTTP Basic Auth user and passwords when cloning
a git repository. Restrictions are placed to ensure Basic Auth is only used
when accessing remote repositories over HTTPS.

Support for updating remotes is included for user/password/uri changes.

Submodule support is not maintained, as those are outside the scope of my
initial need :)

This has a terrific tendency to leak credentials in the clear due to logging
in the cmd.run set of tools.

- Motivation

Specifically, GitHub's HTTPS access layer has some niceties not available when
using the SSH protocol. See https://help.github.com/articles/which-remote-url-should-i-use/#cloning-with-https-recommended

It is nice to enforce read-only access to repositories from remote hosts.

Also, it is a lot cleaner to drop Passwords/Security Tokens in configurations
rather than PEM form private keys.
rallytime pushed a commit that referenced this pull request May 20, 2015
Versionadded tags for https_user and https_pass args new in 2015.5.0
@rallytime
rallytime merged commit ca7729d into saltstack:2015.5 May 20, 2015
@rallytime
rallytime deleted the versionadded_git_options branch May 20, 2015 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant