]> source.dussan.org Git - gitea.git/commit
Add Chef package registry (#22554)
authorKN4CK3R <admin@oldschoolhack.me>
Mon, 6 Feb 2023 01:49:21 +0000 (02:49 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Feb 2023 01:49:21 +0000 (09:49 +0800)
commitd987ac6bf1d78b3a9bbd213e73b871ebc687acb2
treec1f4840d675f6f99b38eb9684c7f6d2342f010d5
parentff18d1744273d093d854f548662a0c204f220c16
Add Chef package registry (#22554)

This PR implements a [Chef registry](https://chef.io/) to manage
cookbooks. This package type was a bit complicated because Chef uses RSA
signed requests as authentication with the registry.

![grafik](https://user-images.githubusercontent.com/1666336/213747995-46819fd8-c3d6-45a2-afd4-a4c3c8505a4a.png)

![grafik](https://user-images.githubusercontent.com/1666336/213748145-d01c9e81-d4dd-41e3-a3cc-8241862c3166.png)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
33 files changed:
custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
docs/content/doc/packages/chef.en-us.md [new file with mode: 0644]
docs/content/doc/packages/overview.en-us.md
models/packages/descriptor.go
models/packages/package.go
modules/activitypub/keypair.go [deleted file]
modules/activitypub/keypair_test.go [deleted file]
modules/activitypub/user_settings.go
modules/packages/chef/metadata.go [new file with mode: 0644]
modules/packages/chef/metadata_test.go [new file with mode: 0644]
modules/setting/packages.go
modules/util/keypair.go [new file with mode: 0644]
modules/util/keypair_test.go [new file with mode: 0644]
options/locale/locale_en-US.ini
public/img/svg/gitea-chef.svg [new file with mode: 0644]
routers/api/packages/api.go
routers/api/packages/chef/auth.go [new file with mode: 0644]
routers/api/packages/chef/chef.go [new file with mode: 0644]
routers/api/v1/packages/package.go
routers/web/user/setting/packages.go
routers/web/web.go
services/forms/package_form.go
services/packages/packages.go
templates/package/content/chef.tmpl [new file with mode: 0644]
templates/package/metadata/chef.tmpl [new file with mode: 0644]
templates/package/metadata/container.tmpl
templates/package/metadata/pub.tmpl
templates/package/view.tmpl
templates/swagger/v1_json.tmpl
templates/user/settings/packages.tmpl
tests/integration/api_packages_chef_test.go [new file with mode: 0644]
web_src/svg/gitea-chef.svg [new file with mode: 0644]