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

36 commits

Author SHA1 Message Date
Sascha L. Teichmann
9495d8b1c3 Update Go 3rd party libs 2024-11-22 16:10:54 +01: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
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
91ab7f6b1c
Chance supported minimal Go version back to 1.20 (#514) 2023-11-28 10:37:16 +01:00
Sascha L. Teichmann
0fe118f7c1 Update dependencies 2023-11-02 17:13:22 +01:00
Sascha L. Teichmann
21fa98186c
Use Intevation's JSONPath fork (#490)
* Use Intevation fork of github.com/PaesslerAG/jsonpath

* Remove passus about double quouted jsonpath strings.
2023-11-02 10:41:24 +01:00
Sascha L. Teichmann
0198cb470a
Update 3rd-party dependencies. (#468) 2023-09-28 16:08:13 +02:00
Sascha L. Teichmann
79fbc2bcd8
Update dependencies 2023-08-18 11:22:14 +02:00
Sascha L. Teichmann
be3dfcd542
Update third party libraries. (#389) 2023-07-04 12:59:29 +02:00
Sascha L. Teichmann
91479c9912
Update 3rd party libraries. (#362) 2023-05-02 10:09:32 +02:00
Sascha L. Teichmann
92433c1272
Update remaining libraries (#350)
* Update remaining libraries.
---------

Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
Co-authored-by: tschmidtb51 <65305130+tschmidtb51@users.noreply.github.com>
2023-03-11 10:42:30 +01:00
Sascha L. Teichmann
aa574406cf
Upgrade jsonschema library to 5.2.0 (#349)
* make jsonschema loading work with current versions of the jsonschema library
   again and simplify the code while at it.
* Improve itest workflow for validation service, to make them more robust.
    * Use a github action to setup nodejs and use a version that is
       required by https://github.com/secvisogram/csaf-validator-service/.
    * Add nodejs16 installation to prepareUbuntuInstanceForITests.sh.
       (so it can be done once in manual settings)
    * Add refreshing of apt cache before apt install because sometimes
       the cached ubuntu image does not have the apt cache current.

---------

Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
2023-03-10 10:39:23 +01:00
Sascha L. Teichmann
4b76afd390 Upgrade crypto 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
444ee20c46 Update jsonschema 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
304b2d023b Clean up go.sum 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
fabeda2797 update openpgp 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
0708f92636 Clean up go.sum 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
9c9fc6b8fc Upgrade goquery 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
b5e0718fa1 Upgrade x/time 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
83a80a970c Update jsonschema 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
c479d94605 update only toml, gval and bbolt 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
987da1910b All updates. 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
e59640726c Update dependencies 2023-02-28 17:40:47 +01:00
Sascha L. Teichmann
50024915f4
Update 3rd party libraries. (#217) 2022-07-13 08:48:16 +02:00
Sascha L. Teichmann
78d8b89aca
Add support for remote validation services. (#185)
* Simple tool to test the remote validation

* Added remote validator support to provider.

* Added remote validation to aggregator.

* Calm golint

* Removed csaf_remote_validator tool as it was only for dev.

* Re-added csaf_remote_validator tool. Testing is not done.

* Embed the document entirely

* Include testing the remote validator in the Itests

* Change permission of the script

* Remove code for Itests

* As these will be done in another branch

Co-authored-by: Fadi Abbud <fadi.abbud@intevation.de>
2022-06-21 14:47:06 +02:00
Sascha L. Teichmann
f823d71ec5
Replace deprecated terminal import 2022-05-31 16:18:28 +02:00
Sascha L. Teichmann
32be3602b6 Re-started link checker for directory listings 2022-05-16 18:04:15 +02:00
Sascha L. Teichmann
8a1ebe0b7a
Add aggregator; improve itest workflow
* Factor JSON evaluation and  construction base URLs out of of checker.
* Move json path matching to util.
* Add csaf_aggregator (as additional command)
* Improve itest workflow to checkout the branch where it is running on.

resolve #105
resolve  #72

Co-authored-by: tschmidtb51 <65305130+tschmidtb51@users.noreply.github.com>
Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
Co-authored-by: Fadi Abbud <fadi.abbud@intevation.de>
2022-05-10 18:12:38 +02:00
Sascha L. Teichmann
19b4f1dfb2 Added support for entering passwords interactively. 2021-12-07 11:38:14 +01:00
Sascha L. Teichmann
9fb23892b6 Started with uploader. 2021-12-07 02:50:05 +01:00
Sascha L. Teichmann
d335ad1b84 Added server config and middleware to use password to protect endpoints. 2021-12-06 17:24:45 +01:00
Sascha L. Teichmann
3420ceb415 Use github.com/santhosh-tekuri/jsonschema for JSON schema validation. 2021-12-04 17:14:33 +01:00
Sascha L. Teichmann
a96597206e Hook into the JSON schema loader to load needed schemas from embedding. 2021-12-03 03:53:06 +01:00
Sascha L. Teichmann
8c272fef2a Replaced JSON schema library with a MIT licenensed one. 2021-12-03 02:28:16 +01:00
Sascha L. Teichmann
78f0b2db0b Validate CSAF documents against JSON schema. 2021-12-02 23:38:09 +01:00
Sascha L. Teichmann
fed66c4e27 Added files from the first prototype. 2021-11-16 13:58:54 +01:00