Zhang Xiao
e2ebcbb02a
Release file: support Version field
...
https://wiki.debian.org/DebianRepository/Format#Version
The Version field, if specified, shall be the version of the release.
On the other hand, if not set or set to an empty value, the Version
field will not be included in the Release file.
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com >
2026-03-03 07:38:44 +00:00
Ales Bregar
1702537979
clearer REST api docs, put whitespace to docs to show that keyId strings are trimmed
2026-01-24 10:55:15 +01:00
Ales Bregar
12604b9379
updating REST api with multiple gpg keys support, due backwards compatibility introducing CSV under same key (gpg-key)
2026-01-24 10:55:15 +01:00
Zhang Xiao
a2ffffedc1
Support updating label and origin domain of publish
...
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com >
2026-01-16 14:50:09 +01:00
Roman Lebedev
a4cc9211d6
InRelease file: support Signed-By field
...
https://wiki.debian.org/DebianRepository/Format#Signed-By says:
> **Signed-By**
> An optional field containing a comma separated list of
> OpenPGP key fingerprints to be used for validating
> the next Release file. The fingerprints must consist
> only of hex digits and may not contain spaces.
> The fingerprint specifies either the key the Release file
> must be signed with or the key the signature key must be
> a subkey of. The later match can be disabled by appending
> an exclamation mark to the fingerprint.
>
> If the field is present, a client should only accept future updates
> to the repository that are signed with keys listed in the field.
> The field should be ignored if the Valid-Until field is not present
> or if it is expired.
For both the CLI tools and JSON, the field is taken as a string verbatim.
When specified, we must also provide `Valid-Until` field,
and i'm not sure there is an 'infinity' value for it,
so 100 years will have to do?
Fixes https://github.com/aptly-dev/aptly/issues/1497
2025-12-30 06:06:48 +03:00
chesseed
d94792dd65
fix swagger errors
2025-10-09 21:26:30 +02:00
André Roth
f7057a9517
go1.24: fix lint, unit and system tests
...
- development env: base on debian trixie with go1.24
- lint: run with default config
- fix lint errors
- fix unit tests
- fix system test
2025-04-26 13:29:50 +02:00
André Roth
e062df68c5
go1.23: update golangci-lint version
...
and fix warnings.
2025-04-20 20:32:55 +02:00
André Roth
e319f3cd14
update doc
...
make descrptions consistent
2024-12-11 11:19:46 +01:00
André Roth
e5e3c49ace
swagger: document async
2024-12-11 10:40:44 +01:00
André Roth
c6e0a06b14
swagger: cleanup
2024-12-11 10:40:44 +01:00
André Roth
9b8f6b1d56
fix conflict
2024-12-11 10:40:43 +01:00
André Roth
ba86851d07
add api documentation stubs
2024-12-11 10:40:43 +01:00
André Roth
9ca9569714
fix build and golangci-lint
2024-11-17 14:09:37 +01:00
Mauro Regli
1357d246d8
rename addon files to skel files
2024-11-17 14:09:37 +01:00
Mauro Regli
c75c2c7594
pass down addonpath from api and cmd context
2024-11-17 14:09:37 +01:00
André Roth
f79423a4ee
update swagger documentation
2024-11-01 17:48:03 +01:00
André Roth
eb94211053
fix race conditions
2024-11-01 17:48:03 +01:00
André Roth
bd01cd4033
update swagger documentation
2024-11-01 17:48:03 +01:00
Christoph Fiehe
451de79666
Improve consistency between API and Swagger docs.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-11-01 17:48:03 +01:00
André Roth
755fdfaca2
update swagger documentation
...
- add default values
- set default values
2024-11-01 17:48:03 +01:00
André Roth
f4057850b9
fix compile and lint errors
2024-11-01 17:47:50 +01:00
André Roth
4d6688d68e
sanitize archs
2024-10-22 16:58:15 +02:00
Christoph Fiehe
7a7ff1142c
Minor code and documentation changes.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
8cceed12f7
Fix tests.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
f8f28e9554
Fixing tests and fix cleanup.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
ac5ecf946d
Cleanup improved and code redundant code removed.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
d87d8bac92
Fix test cases.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
14c29ff912
Fixing tests.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
Christoph Fiehe
73cdf5417b
Use POST instead of PUT for source creation.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
André Roth
fa0d2860f0
fix multidist in publish
2024-10-22 16:58:15 +02:00
André Roth
dcbb2a06a5
fix build
2024-10-22 16:58:15 +02:00
Christoph Fiehe
bd64232eb6
Allow management of components
...
This commit allows to add, remove and update components of published repositories without the need to recreate them.
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-10-22 16:58:15 +02:00
André Roth
f16a68f59c
fix race condition with repo add files
...
Do all relevant database reading/modifying inside `maybeRunTaskInBackground`.
Notably, `LoadComplete` will load the reflist of a repo. if this is done outside of a background operation,
the data might be outdated when the background tasks runs.
2024-10-22 15:12:25 +02:00
André Roth
cefc09a41b
more sanitize
2024-10-11 14:11:09 +02:00
André Roth
57639c4adf
Sanitize path api params
...
- fix path traversal complains by CodeQL
2024-10-11 12:56:08 +02:00
André Roth
861260198a
publish: persist multidist flag
2024-10-08 22:28:12 +02:00
André Roth
06cbd29d0d
add storage API
2024-10-02 18:48:48 +02:00
André Roth
fb538333fa
add swagger documentation
2024-10-01 01:07:09 +02:00
Christoph Fiehe
4195ad90bc
Allow to add a new component to a published repo
...
This commit modifies the behavior of the publish switch method in the way, that also new components can be added to an already published repository. It is no longer necessary to drop and recreate the whole publish.
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de >
2024-09-24 15:43:27 +02:00
Noa Resare
b4cd86aa14
Introduce option multi-dist to the publish commands
...
This change makes it possible to publish multiple distributions
with packages named the same but with different content by changing
structure of the generated pool hierarchy. The option not enabled
by default as this changes the structure of the output which could
break the expectations of other tools.
2024-06-15 11:27:26 +02:00
Ryan Gonzalez
8d09c202db
Skip loading reflists when listing published repos
...
The output doesn't actually depend on the reflists, and loading them for
every published repo starts to take substantial time and memory.
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com >
2024-04-24 17:35:44 +02:00
André Roth
72a7780054
fix golint complaints
2024-03-06 06:21:36 +01:00
Mauro Regli
40c242f9d1
Fix: Remove Batch from API options, set to true by default, add comments
...
Fixes : #1106
2023-09-14 10:34:20 +02:00
Mauro Regli
dbf1ac7867
Fix: Drop Publish returned wrong status code if not found
...
Deleting a publish that does not exist now results in a status code 404
instead of 500.
Fixes : #1006
2023-03-07 13:46:57 +01:00
Markus Muellner
ecc41f0c0f
replace AbortWithError calls by custom function that sets the content type correctly
2023-01-23 10:42:57 +01:00
Benj Fassbind
af899149c7
Fix wrong nil check for SkipBz2
2022-08-16 09:04:16 +02:00
Sjoerd Simons
f61514edaf
Allow disabling bzip2 compression for index files
...
Using bzip2 generates smaller index files (roughly 20% smaller Packages
files) but it comes with a big performance penalty. When publishing a
debian mirror snapshot (amd64, arm64, armhf, source) without contents
skipping bzip speeds things up around 1.8 times.
```
$ hyperfine -w 1 -L skip-bz2 true,false -m 3 -p "aptly -config aptly.conf publish drop bullseye || true" "aptly -config aptly.conf publish snapshot --skip-bz2={skip-bz2} --skip-contents --skip-signing bullseye"
Benchmark 1: aptly -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye
Time (mean ± σ): 35.567 s ± 0.307 s [User: 39.366 s, System: 10.075 s]
Range (min … max): 35.311 s … 35.907 s 3 runs
Benchmark 2: aptly -config aptly.conf publish snapshot --skip-bz2=false --skip-contents --skip-signing bullseye
Time (mean ± σ): 64.740 s ± 0.135 s [User: 68.565 s, System: 10.129 s]
Range (min … max): 64.596 s … 64.862 s 3 runs
Summary
'aptly -config aptly.conf publish snapshot --skip-bz2=true --skip-contents --skip-signing bullseye' ran
1.82 ± 0.02 times faster than 'aptly -config aptly.conf publish snapshot --skip-bz2=false --skip-contents --skip-signing bullseye'
```
Allow skipping bz2 creation for setups where faster publishing is more
important then Package file size.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com >
2022-06-22 11:25:45 +02:00
Ximon Eighteen
5342e549cd
govet: compose literal uses unkeyed fields
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
ff51c46915
More informative return value for task.Process
2022-01-27 09:30:14 +01:00