koplas
164d995aaf
Fix url handling
...
Go / build (push) Has been cancelled
Go / run_modver (push) Has been cancelled
Check if relative URL is absolute.
2025-07-19 11:13:32 +01:00
JanHoefelmeyer
ae184eb189
Merge pull request #655 from gocsaf/json-eof
...
generate-markdown / auto-update-readme (push) Has been cancelled
Go / build (push) Has been cancelled
Go / run_modver (push) Has been cancelled
Make json parsing more strict
2025-07-08 07:46:07 +02:00
JanHoefelmeyer
7935818600
Fix: Allow unknown fields: They are not forbidden
2025-07-07 11:41:49 +02:00
koplas
c81f55a752
Add LoadAdvisory tests
Go / build (push) Has been cancelled
Go / run_modver (push) Has been cancelled
2025-07-04 15:29:03 +02:00
JanHoefelmeyer
e7c08d05cd
Rewrite function from scratch
Go / build (push) Has been cancelled
Go / run_modver (push) Has been cancelled
2025-07-03 11:03:06 +02:00
koplas
fc3837d655
Make json parsing more strict
Go / build (push) Waiting to run
Go / run_modver (push) Blocked by required conditions
2025-07-02 17:06:25 +02:00
koplas
a7b1291be8
Print warning if no config file was found
2025-06-27 17:20:19 +02:00
koplas
6ac97810d0
Use JoinPath
...
This avoids issues where parts of the URL are discarded.
2025-06-19 15:11:45 +02:00
Paul Schwabauer
0848143a0b
Update lint ( #626 )
...
* Update linter
* Format
* Fix lint
2025-03-19 09:39:07 +01:00
koplas
534d6f049f
Add content-type error report test
2025-03-10 12:04:46 +01:00
koplas
b1a7620763
Extend processor SHA fetching tests
...
Allow to forbid individual hashes from downloading. This allows to for
testing the behavior, if one of the hashes could not be downloaded.
2024-12-16 12:23:10 +01:00
koplas
9dd4b7fc8d
Add tests for no hash given or available
2024-12-13 15:54:39 +01:00
koplas
a51964be3f
Add initial csaf_checker provider test
2024-12-04 16:02:03 +01:00
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