Skip to content

Commit 5ca2b26

Browse files
committed
add security note
1 parent 0535385 commit 5ca2b26

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
2+
# Gitbucket-Pages-Plugin
3+
14
This plugin provides *Project Pages* for
25
[GitBucket](https://github.com/gitbucket/gitbucket).
36

4-
Notes:
7+
## Notes
58

69
- view static web page in `gh-pages` branch at
710
`<gitbucket base url>/<user>/<project>/pages/`
@@ -14,13 +17,25 @@ Notes:
1417
- might be incompatible with absolute urls (eg: you use github project
1518
pages and assume your pages will aways live under `/<project/`)
1619

17-
Installation:
20+
## Installation
1821

1922
- download from [releases](https://github.com/yaroot/gitbucket-pages-plugin/releases)
2023
- move the jar file to `<gitbucket_home>/plugins/` (`gitbucket_home` defaults to `~/.gitbucket`)
2124
- restart gitbucket and enjoy
2225

23-
Version compatibility:
26+
## Version compatibility
2427

2528
- 0.1: tested with gitbucket 3.9
2629

30+
## Security
31+
32+
The simplistic design of this plugin suffers from XSS vulnerability,
33+
you **have to** trust your users.
34+
Or if you're really panic, nginx could be used (or any other front proxy).
35+
Suppose you use `gitbucket.local` for hosting gitbucket and
36+
`pages.local` for hosting pages:
37+
38+
- redirect `/[^/]+/[^/]+/pages.*` under `gitbucket.local` ot use
39+
`pages.local`
40+
- restrict `pages.local` to only have access to pages url above
41+

0 commit comments

Comments
 (0)