You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/web/repo
Jason Song 659055138b
Secrets storage with SecretKey encrypted (#22142)
Fork of #14483, but [gave up
MasterKey](https://github.com/go-gitea/gitea/pull/14483#issuecomment-1350728557),
and fixed some problems.

Close #12065.
Needed by #13539.

Featrues:
- Secrets for repo and org, not user yet.
- Use SecretKey to encrypte/encrypt secrets.
- Trim spaces of secret value.
- Add a new locale ini block, to make it easy to support secrets for
user.

Snapshots:

Repo level secrets:

![image](https://user-images.githubusercontent.com/9418365/207823319-b8a4903f-38ca-4af7-9d05-336a5af906f3.png)

Rrg level secrets

![image](https://user-images.githubusercontent.com/9418365/207823371-8bd02e93-1928-40d1-8c76-f48b255ace36.png)

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2 years ago
..
activity.go Implement FSFE REUSE for golang files (#21840) 2 years ago
attachment.go Add API management for issue/pull and comment attachments (#21783) 2 years ago
blame.go Implement FSFE REUSE for golang files (#21840) 2 years ago
branch.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
cherry_pick.go Rename almost all Ctx functions (#22071) 2 years ago
commit.go Implement FSFE REUSE for golang files (#21840) 2 years ago
compare.go Rename almost all Ctx functions (#22071) 2 years ago
download.go Implement FSFE REUSE for golang files (#21840) 2 years ago
editor.go Rename almost all Ctx functions (#22071) 2 years ago
editor_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
find.go Implement FSFE REUSE for golang files (#21840) 2 years ago
http.go Rename almost all Ctx functions (#22071) 2 years ago
http_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue.go Rename almost all Ctx functions (#22071) 2 years ago
issue_content_history.go Multiple improvements for comment edit diff (#21990) 2 years ago
issue_dependency.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_label.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_label_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_lock.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_stopwatch.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_watch.go Implement FSFE REUSE for golang files (#21840) 2 years ago
lfs.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
middlewares.go Implement FSFE REUSE for golang files (#21840) 2 years ago
migrate.go Implement FSFE REUSE for golang files (#21840) 2 years ago
milestone.go Rename almost all Ctx functions (#22071) 2 years ago
packages.go Implement FSFE REUSE for golang files (#21840) 2 years ago
patch.go Rename almost all Ctx functions (#22071) 2 years ago
projects.go Rename almost all Ctx functions (#22071) 2 years ago
projects_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
pull.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
pull_review.go Implement FSFE REUSE for golang files (#21840) 2 years ago
release.go Rename almost all Ctx functions (#22071) 2 years ago
release_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
render.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Rename almost all Ctx functions (#22071) 2 years ago
search.go Implement FSFE REUSE for golang files (#21840) 2 years ago
setting.go Secrets storage with SecretKey encrypted (#22142) 2 years ago
setting_protected_branch.go Implement FSFE REUSE for golang files (#21840) 2 years ago
settings_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
tag.go Implement FSFE REUSE for golang files (#21840) 2 years ago
topic.go Implement FSFE REUSE for golang files (#21840) 2 years ago
treelist.go Implement FSFE REUSE for golang files (#21840) 2 years ago
view.go Ensure that plain files are rendered correctly even when containing ambiguous characters (#22017) 2 years ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
webhook.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
wiki.go Rename almost all Ctx functions (#22071) 2 years ago
wiki_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago