Commit Graph

102 Commits (8f9895acaf43c0141269956aa174d91b7346d5a4)

Author SHA1 Message Date
Joe Chen 8f9895acaf
fix(db): sanitize user full name after find (#7353) 2023-02-14 21:46:09 +08:00
Joe Chen 2a375007ee
fix(repo): be tolerant to implicit submodules (#7352) 2023-02-14 14:46:29 +08:00
Joe Chen b34ee73497
feat(ssh): support dynamic list of algorithms (#7345) 2023-02-12 13:10:41 +08:00
Joe Chen 3a28168d41
fix(backup): skip "data" in the custom directory (#7343) 2023-02-12 00:14:51 +08:00
Vamsi Atluri ef1fe1bb3b
conf: add new config option for default branch name (#7291)
Co-authored-by: Vamsi Atluri <me@vamc19.dev>
Co-authored-by: Joe Chen <jc@unknwon.io>
2023-02-11 16:37:24 +08:00
Joe Chen ae20d03aec
refactor(db): migrate `UpdateUser` off `user.go` (#7267) 2022-11-27 19:36:10 +08:00
Mateusz Reszka 742bc36edd
api: support put content (#7114)
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-10-22 23:52:48 +08:00
Yang Liu b9f5cfddc1
auth: enable authentication by token from password (#7198)
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-10-22 21:25:36 +08:00
Joe Chen 50e5766867
build: remove support of Go 1.17 (#7177) 2022-10-09 23:12:03 +08:00
Joe Chen a43b933c90
go: update required version to be 1.17 and add 1.19 to CI (#7129)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-08-08 13:56:50 +08:00
Joe Chen ad796b8ba5
CHANGELOG: cut entries for 0.12.10 (#7119)
[skip ci]
2022-08-02 10:43:14 +08:00
Joe Chen db82024fc7
netutil: allow using `*` to match any hostname (#7111) 2022-07-25 21:38:15 +08:00
liuxhit 05a6a9d6e9
docker: support adding extra options to backup command (#7060)
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-07-17 14:52:35 +08:00
Joe Chen a8e43f63a1
locale: sync from Crowdin (#7082) 2022-06-26 11:09:33 +08:00
Joe Chen 97ccb365ec
webhook: validate against hostname instead of full URL (#7075) 2022-06-25 20:36:05 +08:00
Joe Chen d6c6b901f0
CHANGELOG: cut entries for 0.12.9 (#7024)
[skip ci]
2022-06-07 21:30:42 +08:00
Joe Chen 9bf748b6c4
http: clean request path from Git endpoints (#7022) 2022-06-07 21:11:36 +08:00
Joe Chen 2ca014250f
pathutil: check both styles of `os.PathSeparator` (#7020) 2022-06-07 20:34:46 +08:00
E99p1ant a328e7ccc4
access_token: encrypt access token with SHA256 (#7008)
* access_token: encrypt access token with SHA256

* revert list access token

* fix lint

* generate schemadoc

* add database migrations

* fix tests

* fix tests

* add test case for access token golden

* fix test in postgres

* `Sha256` -> `SHA256`

* Use GORM for migration

* task generate-schemadoc

* Use unique

* change migration name

* allow read

* task generate-schemadoc

* add changelog

* fix lint error

* update changelog

* remove Debug

* add comments

Co-authored-by: Joe Chen <jc@unknwon.io>
2022-06-05 13:34:21 +08:00
E99p1ant 155cae1de8
issues: sanitize `DisplayName` (#7009)
* issues: display issue poster’s `Name` instead of `DisplayName`

* sanitize display name

* update changelog
2022-06-05 00:53:15 +08:00
Joe Chen 38aff73251
repo_editor: check both styles of `os.PathSeparator` in all systems (#7005) 2022-06-04 13:11:29 +08:00
Joe Chen 75e10445ca
http: fix non-sense `NotFound` call (#7003) 2022-06-04 10:44:54 +08:00
Joe Chen 09ddb8761f
repo: remove hard-coded branch name in init (#6999) 2022-06-03 17:14:21 +08:00
Joe Chen c0941f4631
CHANGELOG: cut entries for 0.12.8 (#6992)
[skip ci]
2022-05-31 16:47:13 +08:00
Joe Chen 5414ae14a9
CHANEGLOG: add missing entry for #6988 (#6990)
[skip ci]
2022-05-31 15:48:40 +08:00
Joe Chen 7885f454a4
webhook: revalidate local hostname before each delivery (#6988) 2022-05-31 15:17:17 +08:00
Joe Chen 90bc752297
repo_editor: prohibit move files to to `.git` directory (#6986) 2022-05-31 15:10:00 +08:00
Joe Chen d7bda9ac0e
build: remove Makefile and update Docker build steps (#6980) 2022-05-29 19:45:25 +08:00
Joe Chen e51e016834
CHANGELOG: cut entries for 0.12.7 (#6931)
[skip ci]
2022-05-05 16:09:17 +08:00
Joe Chen a76aff36d0
CHANGELOG: add entry for #6926 (#6928) 2022-05-05 15:57:32 +08:00
Joe Chen 0778db4228
CHANGELOG: add missing entries (#6899)
[skip ci]
2022-04-06 21:30:55 +08:00
Joe Chen f36eeedbf8
CHANGELOG: cut entries for 0.12.6 (#6858)
[skip ci]
2022-03-19 14:06:23 +08:00
Joe Chen 39f64a1371
go: update required version to be 1.16 (#6850) 2022-03-16 12:18:27 +08:00
Joe Chen 714383a063
conf: add allowlist for accessing local network (#6842) 2022-03-14 22:06:08 +08:00
Joe Chen bd12d46e79
CHANGELOG: cut entries for 0.12.5 (#6830)
[skip ci]
2022-03-11 15:04:12 +08:00
ysf 940a7da9d1
security: fix improper PAM authorization handling (#6819)
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-03-08 20:02:01 +08:00
Michael Rowley 242deca524
security: fix SSRF in repository migration (#6812)
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-03-08 11:34:53 +08:00
shuyue 7c893a58da
markdown: support rendering Mermaid diagrams (#6776)
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-03-05 19:23:08 +08:00
Simone Cattaneo 6d77712b1b
dep: update github.com/go-ldap/ldap to v3 (#6763)
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-02-26 18:43:51 +08:00
Joe Chen e6c5633f58
CHANGELOG: cut entries for 0.12.4 (#6733)
[skip ci]
2022-01-17 09:21:59 +08:00
Joe Chen 5e43fa92ff
markup: use default link formation when no format in metas (#6723) 2022-01-13 10:13:36 +08:00
zvrh a9be4de5a5
database: add PostgreSQL custom schema support (#6695)
Co-authored-by: Homura37 <git@gvip.xyz>
Co-authored-by: Homura <16538800+Homura37@users.noreply.github.com>
Co-authored-by: Joe Chen <jc@unknwon.io>
2022-01-05 22:02:33 +08:00
ᴜɴᴋɴᴡᴏɴ 509a392272
locale: sync from Crowdin (#6510)
* locale: sync from Crowdin

* Fix tests
2021-02-27 18:48:10 +08:00
ᴜɴᴋɴᴡᴏɴ 0ff888c989
CHANGELOG: make entries more informational (#6445) 2020-12-06 01:09:38 +08:00
Eduardo Bacchi Kienetz c875950c43
ssh: allow setting allowed MAC algorithms for built-in server (#6435)
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
2020-12-04 21:52:26 +08:00
stypr cd469f7a1d
repo: disallow urlencoded new lines in git protocol paths (#6420)
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
2020-11-27 18:52:42 +08:00
Matheus Mosca 997ba0fef0
context: add X-Frame-Options header (#6411)
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
2020-11-11 12:17:43 +08:00
Rubén de Celis Hernández 053695b63d
Update CHANGELOG.md (#6389) 2020-10-26 17:50:36 +08:00
ᴜɴᴋɴᴡᴏɴ b60e2c65d3
CHANGELOG: cut entries for 0.12.3 (#6374) 2020-10-07 22:37:15 +08:00
ᴜɴᴋɴᴡᴏɴ ca3330cecd
lfs: ask client to always send the same value for the HTTP header (#6369) 2020-10-04 18:40:39 +08:00