Bernhard E. Reiter
cf49c7e414
Fix go.mod and internal dependencies ( #371 )
...
* Use a "/v2" in the module path to match the git version tag which
lead with a 2. Change all mention of the module as dependency
internally as well.
2023-06-05 10:24:35 +02:00
Bernhard Herzog
02d476360b
Merge pull request #366 from csaf-poc/cleanup_provider_metadata_loading
...
Prepare infrastructure for role based reporting
2023-05-16 17:53:18 +02:00
JanHoefelmeyer
4461bd6892
Merge pull request #365 from csaf-poc/filename-id
...
Check that filename matches /document/tracking/id
2023-05-16 08:50:48 +02:00
Sascha L. Teichmann
1dab0cc9ff
Move code to more suited place.
2023-05-15 14:29:47 +02:00
Sascha L. Teichmann
a0b272a60d
Deactivate TLP reporters
2023-05-15 14:15:20 +02:00
JanHoefelmeyer
150db4d31b
Add new reporters to list of reporters in csaf_checker/main.go
2023-05-15 14:12:16 +02:00
Sascha L. Teichmann
068a94235c
Add PMD loading errors to bad provider metadata report.
2023-05-15 14:01:27 +02:00
Sascha L. Teichmann
9ac902347c
Fix revive
2023-05-15 13:54:21 +02:00
JanHoefelmeyer
aeff511895
Add reporters for missing requirements and their respective report functions
2023-05-15 13:49:27 +02:00
Sascha L. Teichmann
bd7831d7c3
Build reporters from role
2023-05-15 12:12:42 +02:00
Sascha L. Teichmann
018a1814f0
Fixed problem with JSON decoding in loading PMD
2023-05-15 10:43:16 +02:00
Sascha L. Teichmann
2e968b197d
Removed old pmd loader.
2023-05-15 08:47:18 +02:00
Sascha L. Teichmann
e0928f58ad
Port over logic to new PMD loader
2023-05-15 00:35:35 +02:00
Sascha L. Teichmann
dd15eea48e
Fill typed messages for pmd loading
2023-05-12 11:05:05 +02:00
Sascha L. Teichmann
c4e9637f2b
Re-use eval of processor.
2023-05-11 15:25:31 +02:00
Sascha L. Teichmann
d9fe7488d3
Merge branch 'main' into cleanup_provider_metadata_loading
2023-05-11 15:10:19 +02:00
Bernhard Herzog
821f018a98
Check that filename matches ID in csaf_uploader
2023-05-11 13:54:42 +02:00
Bernhard Herzog
5b4c621616
Check that filename matches ID in csaf_aggregator
2023-05-09 20:06:58 +02:00
Bernhard Herzog
6a91c29baf
Check that filename matches ID in csaf_provider
2023-05-09 18:46:00 +02:00
Sascha L. Teichmann
c263391821
Be more verbose in case of signature check failures ( #361 )
...
* Simplify handling of signature keys. Be more verbose in case of signature check failures.
* Fixed check for having no OpenPGP loaded
2023-05-05 15:02:53 +02:00
Sascha L. Teichmann
f32fba683d
Add concurrent downloads to downloader. ( #363 )
...
* Add concurrent downloads to downloader.
* Moved to Go 1.20
* close files channel on producer side.
* Improve error handling
* New flag to ignore signature check results. Improve docs. Do not use number of CPUs to determine number of download workers.
* Set number of default workers in downloader to two.
2023-05-02 10:10:12 +02:00
Sascha L. Teichmann
91479c9912
Update 3rd party libraries. ( #362 )
2023-05-02 10:09:32 +02:00
Bernhard E. Reiter
8ad805e1e5
doc: improve rate default documentation ( #364 )
...
* doc: improve rate default documentation
solve #359
* Adjust downloader doc, too.
* doc(csaf_checker): Add missing phrase, correct spelling
* docs(csaf_checker): correct format mistake
---------
Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
Co-authored-by: tschmidtb51 <65305130+tschmidtb51@users.noreply.github.com>
2023-05-01 20:38:19 +02:00
Bernhard Herzog
c37b127d82
Check that filename matches ID in csaf_checker
2023-04-25 19:24:59 +02:00
Bernhard Herzog
900da91687
Check that filename matches ID in csaf_validator
2023-04-25 18:38:49 +02:00
Bernhard Herzog
a92c033a5e
Check that filename matches ID in csaf_downloader
2023-04-25 18:28:07 +02:00
Bernhard Herzog
04d2c96be0
Add IDMatchesFilename function
2023-04-25 17:08:14 +02:00
Sascha L. Teichmann
21477e8004
Add missing file
2023-04-18 14:21:56 +02:00
JanHoefelmeyer
3590cf1ef2
Rephrase csaf validation result ( #356 )
...
* Rephrase csaf validation result
* Change Checker report depending on whether and how a remote validator was used.
* Formatting
* Improve code readability
---------
Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
2023-03-30 19:09:51 +02:00
JanHoefelmeyer
36fa8eeeca
Merge pull request #355 from csaf-poc/revive_action
...
Add revive action to workflows
2023-03-28 07:36:12 +02:00
JanHoefelmeyer
1529821c2c
Merge pull request #351 from csaf-poc/lockfile_aggregator
...
Lockfile aggregator
2023-03-28 07:24:56 +02:00
Sascha L. Teichmann
e39fc34599
Fix typo
2023-03-27 13:17:49 +02:00
JanHoefelmeyer
84b60261bf
Add revive action to workflows
2023-03-27 12:31:59 +02:00
JanHoefelmeyer
6bceb7cc1b
Merge pull request #352 from csaf-poc/fix_header
...
Fix header client. Simplify code.
2023-03-27 12:01:25 +02:00
JanHoefelmeyer
c59a8f07a3
Create lockfile directory if it doesn't exist yet
2023-03-27 11:51:15 +02:00
JanHoefelmeyer
b0d7df69b8
Change default location of lock file for csaf aggregator and rephrase error message if lock is in use.
2023-03-27 11:05:59 +02:00
Sascha L. Teichmann
1854678409
Started with cleaning up the provider metadata loading
2023-03-24 18:59:38 +01:00
Sascha L. Teichmann
3445e58e45
Unexport some symbols
2023-03-24 18:24:46 +01:00
Sascha L. Teichmann
0c2768b711
Fix header client. Simplify code.
2023-03-24 13:40:31 +01:00
Sascha L. Teichmann
c3a80b9f52
Make defaultLockFile a constant
2023-03-23 10:21:56 +01:00
JanHoefelmeyer
39787503cc
Fix typo
2023-03-22 07:09:23 +01:00
JanHoefelmeyer
f638ae9a23
Move disabling of lockfile from explicit option to empty string in lockfile
2023-03-21 08:26:51 +01:00
JanHoefelmeyer
4800f4ec12
Improve formatting
2023-03-20 08:33:29 +01:00
JanHoefelmeyer
0c4ae88ee0
Fix typo: defautLockFile -> defaultLockFile
2023-03-20 08:31:06 +01:00
JanHoefelmeyer
dd0be44e81
Make Aggregator ignore set lockfile if NoLock option is set to true
2023-03-20 08:27:07 +01:00
JanHoefelmeyer
a28ebe39cb
Update doc to include default location instead of only name. (which is not the default)
2023-03-17 13:03:36 +01:00
JanHoefelmeyer
bb053bd427
Add option no_lock to use no lock file if none was configured
2023-03-17 13:00:51 +01:00
JanHoefelmeyer
8f87273837
Remote validator output ( #347 )
...
* The validator is now able to print the details of the remote validations.
---------
Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
Co-authored-by: JanHoefelmeyer <Jan Höfelmeyer jhoefelmeyer@intevation.de>
Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
2023-03-15 11:02:06 +01: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