1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00
Commit graph

44 commits

Author SHA1 Message Date
Bernhard Reiter
e8706e5eb9 feat: perform go path repo move
* Change the go module path
   from github.com/csaf-poc/csaf_distribution to github.com/gocsaf/csaf.
 * Rename archive for release tarballs.
 * Adjust testing scripts and documentation.
2024-11-04 13:20:47 +01:00
Bernhard Herzog
617deb4c17
Merge pull request #530 from oxisto/slog
Added support for structured logging in `csaf_aggregator`
2024-04-25 13:13:11 +02:00
Christian Banse
9b1480ae3d Bumped Go version to Go 1.21. Using log/slog instead of golang.org/x/exp/slog 2024-04-23 15:37:43 +02:00
JanHoefelmeyer
39a29e39f1 Change Licenses from MIT to Apache 2.0 2024-04-22 13:11:30 +02:00
Christian Banse
fb1cf32e17 Fixed linting errors 2024-04-19 09:35:36 +02:00
Christian Banse
e658738b56 Added support for structured logging in csaf_aggretator
This PR adds structured logging for the aggregator service. Currently, only the text handler is used, but I can extend this to use the JSON handler as well. In this case, probably some code that is shared between the aggregator and the downloader would need to be moved to a common package.

I was also wondering, whether this repo is moving to Go 1.21 at the future, since `slog` was introduced in to the standard lib in 1.21. So currently, this still relies on the `x/exp` package.

Fixes #462
2024-04-18 19:58:02 +02:00
Sascha L. Teichmann
03e418182d
Advisories: Time filter download by 'updated' field in ROLIE entries. (#519)
* Use 'updated' field of ROLIE field entries to time filter downloads.

* More suited variable naming
2023-12-04 11:31:14 +01:00
Sascha L. Teichmann
91ab7f6b1c
Chance supported minimal Go version back to 1.20 (#514) 2023-11-28 10:37:16 +01:00
Sascha L. Teichmann
455010dc64
Accept days, months and years in time ranges. (#483) 2023-10-19 13:13:11 +02:00
Sascha L. Teichmann
716f128754
Fix year folder check (#472) 2023-09-29 09:47:11 +02:00
Sascha L. Teichmann
7a8cdb6d19
Lift distribution from v2 to v3. (#467)
* v2 -> v3

* Increase version within Makefile

---------

Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
2023-09-27 15:46:57 +02:00
JanHoefelmeyer
a569b573a4
Merge pull request #460 from csaf-poc/unit_tests
Unit tests of internal packages
2023-09-27 12:15:44 +02:00
Sascha L. Teichmann
7cd076d4f8
Downloader: Remove verbose flag (#464)
* Remove verbose flag from downloader.

* Do structured http logging in forwarder, too.

* Use structured logging to separate http traffic of downloader from forwarder.
2023-09-27 11:30:24 +02:00
Sascha L. Teichmann
6b07885848 Fix copyright headers. Make staticcheck happy. 2023-09-25 21:19:41 +02:00
Sascha L. Teichmann
52476f8560 use defer to restore original args. 2023-09-25 20:12:17 +02:00
Sascha L. Teichmann
1854cc4c58 Add test to trigger help output in second pass in command line parsing. 2023-09-25 18:15:09 +02:00
Sascha L. Teichmann
abce4e7f78 Add test for second pass command line passing. 2023-09-25 17:54:35 +02:00
JanHoefelmeyer
62290215ec Test os.exit and log.Fatalf in options_test.go 2023-09-25 14:17:22 +02:00
Sascha L. Teichmann
21fbd401b7 Cosmetics 2023-09-25 13:05:53 +02:00
JanHoefelmeyer
1f7d5ada14 Formatted TestCreateFormFile() 2023-09-25 11:31:22 +02:00
JanHoefelmeyer
3de42e746d Add function documentation to certs_test.go 2023-09-25 11:20:58 +02:00
JanHoefelmeyer
17945d67ac Update filter_test.go's function documentation 2023-09-25 11:19:32 +02:00
JanHoefelmeyer
22e6d49f3f Updated mime_test.go's function documentation 2023-09-25 11:16:47 +02:00
JanHoefelmeyer
b06c316ee0 Add minimum documentation to some functions 2023-09-25 11:15:01 +02:00
JanHoefelmeyer
b14d775422 Add a minimum of documentation to test functions 2023-09-25 11:13:13 +02:00
JanHoefelmeyer
a495416882 Expanded tests where missing (models) 2023-09-25 11:05:59 +02:00
JanHoefelmeyer
be50b7fc3a Introduce actual tests where missing 2023-09-25 11:03:51 +02:00
JanHoefelmeyer
e4c636fe41 Complete Certs test 2023-09-19 16:11:23 +02:00
JanHoefelmeyer
3a7b411789 formatting 2023-09-08 13:34:45 +02:00
JanHoefelmeyer
daab24eb2f Corrected wrong error requirement 2023-09-08 13:26:38 +02:00
JanHoefelmeyer
2e129b9dc8 Clean up certs_test.go a bit 2023-09-08 11:00:50 +02:00
JanHoefelmeyer
a217f88ea1 Many unittests for internal folder 2023-09-08 09:40:41 +02:00
Sascha L. Teichmann
e0475791ff
Downloader: Add forwarding to HTTP endpoint (#442)
* started with forwarding support in downloader

* Add missing files.

* Add missing files.

* Raise needed Go version

* More Go version bumping.

* Fix forwarding

* Go 1.21+ needed

* Make terminating forwarder more robust.

* Better var naming

* Remove dead code. Improve commentary.

* Prepare validation status adjustment.

* Move validations to functions to make them executable in a loop.

* Introduce validation mode flag (strict, unsafe)
2023-08-25 10:31:27 +02:00
Sascha L. Teichmann
468e91cb8b Remove the years flag from checker. 2023-08-17 11:01:45 +02:00
Sascha L. Teichmann
017a6b0a10 Move cert handling into library and add option passphrase. Adjust uploader and checker. 2023-08-02 21:02:58 +02:00
Sascha L. Teichmann
873eb4879b Add time range to checker report. 2023-08-02 20:01:04 +02:00
Sascha L. Teichmann
5a4e5607cb Factored out matching lists of regular expressions. 2023-08-01 17:05:49 +02:00
Sascha L. Teichmann
125028773f go-flag needs its own Unmarshaler. 2023-07-26 12:06:16 +02:00
Sascha L. Teichmann
eade9f7ae4 Fixed switched time.Parse args. 2023-07-26 10:52:20 +02:00
Sascha L. Teichmann
de0599ebe3 Add time interval filtering to downloader. 2023-07-26 03:22:33 +02:00
Sascha L. Teichmann
0e297fc616 Add internal model for time ranges. 2023-07-26 02:22:45 +02:00
Sascha L. Teichmann
1bdaf5854a Fallback to default config files if no config file was given. 2023-07-25 10:53:18 +02:00
Sascha L. Teichmann
9697e99d86 Improve comment 2023-07-25 00:17:44 +02:00
Sascha L. Teichmann
95bd705036 Factor command line parsing into an internal package for reuse. 2023-07-24 23:25:16 +02:00