Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to enforce PAT for HTTPS GIT CLI traffic?

davemedley
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 14, 2019

As a Bitbucket Server admin I was surprised on the limited options for securing HTTPS. We want to have HTTPS on an internet facing domain and both HTTPS and SSH on an internal domain. For browser traffic we use SAML authentication (requiring a plugin) to secure users over the net using Multi-factor Auth. The expectation was that we can restrict HTTPS CLI users to requiring a Personal Access Token, ergo enforcing that a user must use a secure browser session to obtain the PAT before getting a shot at the CLI.

However, it seems basic auth still works on HTTPS (no token required). Surely this is a security flaw. We are left with only switching off the CLI over HTTPS... or is there a way to run the HTTPS for CLI on a different port to the browser traffic? Either way, not really liking the lack of settings in this space. Of course this comes about as the git cli can't support SAML tokens.

 

Does anyone have any insight into this issue?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events