You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2015/11/23 22:53:11 UTC

[jira] [Commented] (MRELEASE-931) m2 release plugin shows SCM git password if fatal occured during git push

    [ https://issues.apache.org/jira/browse/MRELEASE-931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15023160#comment-15023160 ] 

Michael Osipov commented on MRELEASE-931:
-----------------------------------------

Doing `mvn release:prepare -Dusername=myuser -Dpassword=mypassword` is a security is as anyone calling {{ps}}, {{top}}, {{htop}} can see your password. You are highly advised to put that in your {{settings.xml}}. Moreover, the new HTTP RFCs (not HTTP/2) clearly forbid the password in the URL.

One should probably rethink how passwords are handles in MRELEASE.

> m2 release plugin shows SCM git password if fatal occured during git push
> -------------------------------------------------------------------------
>
>                 Key: MRELEASE-931
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-931
>             Project: Maven Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5.3
>         Environment: RHEL6, Windows
>            Reporter: Vasilii Ruzov
>
> I'm running
> mvn release:prepare -Dusername=myuser -Dpassword=mypassword
> and see lines in output:
> {quote}[INFO] Executing: cmd.exe /X /C "git push https://myuser:********@myserver.com:8081/scm/project/project.git refs/heads/master:refs/heads/master"
> {quote}
> but if for some reason git push failed(e.g. I made a mistake typing password) then I see in log
> {quote}
> [ERROR] fatal: unable to access 'https://myuser:mypassword@myserver.com:8081/scm/project/project.git/': SSL certificate problem: self signed certificate in certificate chain
> {quote}
> So I see *PLAINTEXT* password. As I use this step on Teamcity it causes security problems when someone else can see my password if build failed. I tried both on Linux and Windows machines.
> I use maven-release-plugin version 2.5.3.
> http://stackoverflow.com/questions/33831383/maven-release-plugin-shows-plaintext-password-on-git-push-error



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)