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
Sascha L. Teichmann
95bd705036
Factor command line parsing into an internal package for reuse.
2023-07-24 23:25:16 +02:00
Sascha L. Teichmann
bfcf98464f
Load config from TOML file
2023-07-20 01:33:58 +02:00
Sascha L. Teichmann
12ad7706e3
Rename opts to cfg
2023-07-20 01:16:05 +02:00
Sascha L. Teichmann
0d17db0c59
Move options to separate file.
2023-07-19 23:39:52 +02:00
Sascha L. Teichmann
594e6b4b0d
Try to minimize redundant downloads.
2023-06-22 14:28:45 +02:00
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
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
bd7831d7c3
Build reporters from role
2023-05-15 12:12:42 +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
JanHoefelmeyer
39b48e083c
Improve docs for checker and downloader
...
* make it more clear that a domain can also be interpreted as a direct URL.
resolve #316
---------
Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
2023-02-28 14:11:15 +01:00
Sascha L. Teichmann
8425644886
Add new requirement sections 1 and 2 to report
2023-02-02 17:17:50 +01:00
tschmidtb51
0383e951a8
Merge branch 'main' into checker-validator
2023-01-27 17:58:37 +01:00
Sascha L. Teichmann
2a40ab6393
Set the default of 'validatorpresets' to 'mandatory'.
2023-01-27 17:16:45 +01:00
Sascha L. Teichmann
51fba46893
Add extra http header support to downloader and checker.
2023-01-26 22:09:38 +01:00
Sascha L. Teichmann
e004939abf
Implement remote validation in checker.
2023-01-25 10:27:44 +01:00
Sascha L. Teichmann
5b60e7d728
Add package comments to make revive happy.
2023-01-19 16:45:26 +01:00
Fadi Abbud
fcafcbf13f
Remove code duplication
...
* The availability check of both the cert and key file is done in the
"prepare" function.
2022-07-27 09:40:10 +02:00
Sascha L. Teichmann
e5f584092c
Unify loading of client certs in checker and uploader.
2022-07-27 01:28:37 +02:00
Sascha L. Teichmann
1241429d19
Load client certs early to detect misconfiguration
...
* Move loading of client certificate into the TLS handling code
to an earlier position.
2022-07-26 18:00:07 +02:00
Sascha L. Teichmann
7f113f1f30
Adjusted documentation
2022-07-17 15:01:15 +02:00
Sascha L. Teichmann
ec0548bef6
introduce quick check bases on folder year
2022-07-17 12:27:25 +02:00
Sascha L. Teichmann
b359fd0a62
Add CSAF downloader
...
* Dense and refactor ROLIE code in aggregator a bit.
* Move advisory file processor to csaf package.
* Fix minor typo on main readme
2022-06-23 14:14:44 +02:00
Bernhard E. Reiter
a849ac0d5f
Improve https get diagnostics, add verbose option
...
* Implement a logging client and activate it using verbose parameter or option
in checker and aggregator.
Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
2022-06-02 15:07:55 +02:00
Sascha L. Teichmann
c0aa7edc70
Improve code style
...
* Remove unnecessary brackets in logical comparison.
2022-06-01 09:15:31 +02:00
Fadi Abbud
406366e0bd
Add short form of flag and description
2022-05-31 08:56:07 +02:00
Fadi Abbud
a1036c3847
Add 'Rate' config option for download throttling (Checker)
2022-05-30 13:38:29 +02:00
Fadi Abbud
6fe6907c1d
Add --version option
...
* Add flag to display the version for each binary. It is based on `git describe` but adds
a number to the PATCH level if we are between annotated tags, so makes it semver.org
compatible. Use the "-ldflags" method that also works with go 1.17.
* Use Makefile bash and sed magic to do PATCH level increase if needed.
Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
2022-04-13 14:27:11 +02:00
Fadi Abbud
a91d36cc95
Add options to use TLS client certificate for authentication (Checker)
...
* Add "client-cert" and "client-key" flag options to allow the checker to use TLS client certificate for authentication.
* Fix typo TSL -> TLS in docs.
Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
2022-03-31 17:57:43 +02:00
Sascha L. Teichmann
45ac434871
Merge pull request #80 from csaf-poc/checker-documentation
...
Checker documentation
2022-03-21 22:20:00 +01:00
Fadi Abbud
056f0fc6d6
Typo
2022-03-08 11:28:55 +01:00
Fadi Abbud
41a2d50773
Code documentation
2022-03-07 14:39:29 +01:00
Fadi Abbud
aa60e8f245
Add some code documentation
2022-03-04 16:04:21 +01:00
Bernhard Reiter
1c5664d8cb
Improve Texts "PGP key" -> "public OpenPGP key"
2022-03-03 14:46:07 +01:00
Sascha L. Teichmann
30789e60d5
Call the checks again.
2021-12-15 21:22:38 +01:00
Sascha L. Teichmann
ced85c181b
Rename reporters.
2021-12-15 20:16:26 +01:00
Sascha L. Teichmann
534b96d211
WIP: Refactored for simpler reporting.
2021-12-15 19:41:29 +01:00
Sascha L. Teichmann
685bb528ed
Started with checking the CSAF files.
2021-12-14 02:24:40 +01:00
Sascha L. Teichmann
ffd43d510b
Adjusted TLS check.
2021-12-13 16:25:34 +01:00
Sascha L. Teichmann
33154d7d58
Added execution order of checks.
2021-12-13 10:57:02 +01:00
Sascha L. Teichmann
b3b2004417
Implemented redirection check
2021-12-13 00:59:42 +01:00
Sascha L. Teichmann
3b4163a299
Restrucure object graph.
2021-12-12 23:25:55 +01:00
Sascha L. Teichmann
df86b112c3
Add insecure flag to checker, too.
2021-12-12 18:58:39 +01:00
Sascha L. Teichmann
6966e125ac
Added stubs for checks.
2021-12-10 15:44:01 +01:00
Sascha L. Teichmann
712b4ad856
Generate HTML output
2021-12-10 12:25:33 +01:00
Sascha L. Teichmann
24cdcabb40
Added copyright headers.
2021-12-10 10:48:39 +01:00
Sascha L. Teichmann
c4a5aa1901
Continue with check framework
2021-12-09 23:03:21 +01:00
Sascha L. Teichmann
6692e45644
Started with main of checker.
2021-12-09 01:37:16 +01:00