Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.

Commit 13147bc

Browse files
readme
1 parent e1bb26e commit 13147bc

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,48 @@
11
# GitHhub Pages Basic Auth Proxy by comSysto
22

33
## 1. Introduction
4+
45
A simple python based proxy to secure github pages via a small cloud-proxy-instance.
56

6-
:bangbang: THIS IS WORK IN PROGRESS. PRE-ALPHA :bangbang:
7+
:bangbang: **THIS IS WORK IN PROGRESS. PRE-ALPHA** :bangbang:
78

89
### 1.1 Who needs this?
910

10-
If you have a private github repository.
11-
If you have a `gh-pages` branch in that repository.
12-
And if you want to secure the gh-pages page via basic auth, then this proxy is for you
13-
11+
* If you have a GitHub organization account with organization members.
12+
* If you have a private organization github repository.
13+
* If you have a `gh-pages` branch in that repository.
14+
* And if you want to secure the gh-pages page via basic auth, then this proxy is for you.
15+
** Only members of the GitHub organization and users you specify manually will have access
16+
1417
### 1.2 What it will do
1518

1619
![](./doc/basic-proxy.png)
1720

1821
* Proxy between GitHub Pages and User
19-
* Ask for Authentication
22+
* Ask for Authentication (github credentials)
2023
* Only proxy through if user is member of GitHub Organization or in list of users allowed to access
2124

2225
### 1.3 How is this secure?
2326

2427
* Basically `gh-pages` URLs are public
25-
* BUT if you create a directory in your `gh-pages` branch which is called `ibjsda67d79gds8a9sd88` and proxy to this dir, it will be secure as long as no one knows this "obfuscator-dir"
28+
* BUT if you create a directory in your `gh-pages` branch which is called `086e41eb6ff7a50ad33ad742dbaa2e70b75740c4950fd5bbbdc71981e6fe88e3` and proxy to this dir, it will be secure as long as no one knows this "obfuscator-dir"
2629

2730
## 2. Installation
2831

2932
We will do demo setup for the following scenario:
3033

3134
* GitHub Page we want to secure:
3235
* https://comsysto.github.io/github-pages-basic-auth-proxy/086e41eb6ff7a50ad33ad742dbaa2e70b75740c4950fd5bbbdc71981e6fe88e3/
33-
* (this is a gh-pages branch of a public repo. In real scenario this would be a private repo)
34-
* Contents of gh-pages: https://github.com/...
36+
* This is a gh-pages branch of a public repo. In real scenario this would be a private repo and no one could guess the obfuscator-dirname.
37+
* Contents of gh-pages: https://github.com/comsysto/github-pages-basic-auth-proxy/tree/gh-pages
3538
* Proxy-URL we want to use:
3639
* https://my-secure-github-page.comsysto.com/
37-
* This is a `ec2.micro` Instance on AWS.
40+
* This is a `ec2.micro` Instance on AWS which is configured as described below.
3841

3942
### 2.1 Prerequisites
4043

41-
* You will need nginx and python.
44+
* You will need nginx and python 3.
45+
* optional a ssl certificate
4246

4347
### 2.2 nginx setup
4448

0 commit comments

Comments
 (0)