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

Disable HTTP cloning #50

Merged
merged 3 commits into from
Nov 7, 2016
Merged

Disable HTTP cloning #50

merged 3 commits into from
Nov 7, 2016

Conversation

thibaultmeyer
Copy link
Contributor

Relative to #2583, this Pull Request allow administrator to disable any Git interactions by HTTP protocol.

[repository]
DISABLE_HTTP_GIT = true

image

image

@codecov-io
Copy link

Current coverage is 2.18% (diff: 100%)

Merging #50 into master will not change coverage

@@            master       #50   diff @@
========================================
  Files           31        31          
  Lines         7508      7508          
  Methods          0         0          
  Messages         0         0          
  Branches         0         0          
========================================
  Hits           164       164          
  Misses        7327      7327          
  Partials        17        17          

Powered by Codecov. Last update 42a744d...e54dec7

@tboerger tboerger added this to the 1.0.0 milestone Nov 3, 2016
@tboerger tboerger added the type/enhancement An improvement of existing functionality label Nov 3, 2016
@tboerger
Copy link
Member

tboerger commented Nov 3, 2016

the idea behind this enhancement is to deny HTTP protocol (regardless it was used with or without secure layer). So if you set DISABLE_HTTP_GIT= true in your app.ini file, you will be only able to use Git by SSH protocol (very useful on local /intranet usage).

I know, but since you are touching the code anyway you can also fix that broken part :)

@thibaultmeyer
Copy link
Contributor Author

thibaultmeyer commented Nov 3, 2016

I don't see what is broken ? Their are no extra check needed. the variable $.CloneLink.HTTPS contain the HTTP version or the HTTPS depending of what is configured on app.ini

image

@tboerger
Copy link
Member

tboerger commented Nov 3, 2016

I don't see what is broken ? Their are no extra check needed. the variable $.CloneLink.HTTPS contain the HTTP version or the HTTPS depending of what is configured on app.ini

Ok, if that is the case I'm fine with it. I have not checked that case.

@tboerger
Copy link
Member

tboerger commented Nov 3, 2016

LGTM

@DblK
Copy link
Member

DblK commented Nov 3, 2016

Just a rebase and squash commits and I will approuve this one.

@thibaultmeyer
Copy link
Contributor Author

You could choose "Rebase and Merge" during the merge process : https://github.com/blog/2243-rebase-and-merge-pull-requests

@tboerger tboerger added type/feature Completely new functionality. Can only be merged if feature freeze is not active. topic/ui Change the appearance of the Gitea UI and removed type/enhancement An improvement of existing functionality labels Nov 3, 2016
@tboerger
Copy link
Member

tboerger commented Nov 3, 2016

bildschirmfoto 2016-11-03 um 22 09 54

This is something I don't want to do. Just rebase the code with latest master, push it with --force and it gets merged.

@strk strk modified the milestones: 1.1.0, 1.0.0 Nov 6, 2016
@jhasse
Copy link

jhasse commented Nov 7, 2016

I'm curious: Why would I want to do this?

@strk
Copy link
Member

strk commented Nov 7, 2016

LGTM

@xinity xinity merged commit be5607e into go-gitea:master Nov 7, 2016
@xinity xinity modified the milestones: 1.0.0, 1.1.0 Nov 7, 2016
@tboerger tboerger added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Nov 29, 2016
lunny pushed a commit to lunny/gitea that referenced this pull request Feb 7, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants