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

988 commits

Author SHA1 Message Date
JanHoefelmeyer
77cc250561
Merge pull request #496 from csaf-poc/update-dependencies-2023-11-02
Dependencies: Update 3rd-party dependencies
2023-11-03 07:09:51 +01:00
JanHoefelmeyer
06d8e59b66
Merge pull request #497 from csaf-poc/example-fix-purls-searcher
API: Fix pattern matching of purls and document categories in advisory model
2023-11-03 07:08:39 +01:00
Sascha L. Teichmann
7f9449a12f Fix pattern matching of purls and document categories. Extract purls from relationships. 2023-11-02 18:23:43 +01:00
Sascha L. Teichmann
0fe118f7c1 Update dependencies 2023-11-02 17:13:22 +01:00
Sascha L. Teichmann
effd4a01af
Fix link to development doc page. (#495) 2023-11-02 14:24:59 +01:00
Sascha L. Teichmann
26c630df4a
API examples: move csaf_searcher to a lower prio place (#489)
* move csaf_searcher to a lower prio place

* Adjust wording

* Grammar fix #2 'this is work in progress' -> 'This is a work in progress'...

---------

Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
2023-11-02 14:12:41 +01:00
Sascha L. Teichmann
7fbc012e2c
Docs: Add Development.md (#493)
* Add docs/Development.md

* Fix link
2023-11-02 13:06:37 +01:00
Sascha L. Teichmann
03a907b9b8
Fix checker doc of TOML config of validator (#492) 2023-11-02 12:19:16 +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
JanHoefelmeyer
0905824e02
Merge pull request #473 from cintek/main
Adding advisory model
2023-10-25 09:12:19 +02:00
Sascha L. Teichmann
455010dc64
Accept days, months and years in time ranges. (#483) 2023-10-19 13:13:11 +02:00
JanHoefelmeyer
5215d78331 Adjust requirement 2023-10-18 11:22:32 +02:00
cintek
0b5c7a27c9
Merge pull request #6 from cintek/csaf_searcher
Add new binary, the searcher(, the main and docs) from https://github.com/cintek/csaf_advisory_example
2023-10-18 10:55:51 +02:00
JanHoefelmeyer
d9e579242b Added csaf_searcher to README 2023-10-18 10:27:59 +02:00
JanHoefelmeyer
226dc961f3 Merge branch 'main' into csaf_searcher 2023-10-18 10:24:34 +02:00
JanHoefelmeyer
81edb6ccbe
Merge pull request #481 from csaf-poc/improve_logging2
fix: improve logging for downloader and aggregator
2023-10-18 09:02:18 +02:00
Bernhard E. Reiter
abc8b10988
docs: improve timerange documentation (#482)
* docs: improve timerange documentation

 * add a documentation section to the downloader docs for the
   timerange-option.
 * point aggregator and checker docs to the downloader section for
   timerange.

* docs: use a better example for timerange minutes
2023-10-17 18:53:53 +02:00
Sascha L. Teichmann
8f6e6ee8bb improve logging output 2023-10-17 18:52:38 +02:00
Bernhard Reiter
3923dc7044
fix: improve logging for downloader and aggregator
* use full name for printing out the used logfile for the downloader.
 * for debug or verbose, log the timeintervall that will be used
   for downloader and aggregator. (The checker has this as part
   of its output already.)
2023-10-17 11:33:03 +02:00
Bernhard Reiter
1e506d46cc
feat: add macos binaries archive to Makefile 2023-10-13 17:52:14 +02:00
Bernhard Reiter
e354e4b201
docs: add note about support level of MacOS builds 2023-10-13 17:21:25 +02:00
cintek
c05a4023ff
Merge branch 'csaf-poc:main' into main 2023-10-12 14:18:42 +02:00
JanHoefelmeyer
5f2596665a Add new binary, the searcher(, the main and docs) from https://github.com/cintek/csaf_advisory_example+ 2023-10-12 12:07:40 +02:00
Andreas Huber
d69101924b Add build for macOS 2023-10-06 17:47:12 +02:00
JanHoefelmeyer
666913e61e
Merge pull request #475 from csaf-poc/schema-validation-assert-format
Schema validation: Add AssertFormat flag to schema compiler
2023-10-04 07:39:27 +02:00
Sascha L. Teichmann
3ba37b41c7 Add AssertFormat flag to schema compiler 2023-09-30 07:49:44 +02:00
Sascha L. Teichmann
716f128754
Fix year folder check (#472) 2023-09-29 09:47:11 +02:00
Sascha L. Teichmann
1cc42f0ec0
Downloader: unit test forwarder (#470)
* Simplify forward method

* Add unit test for validation status

* Add unit test for stats logging in forwarder.

* Add unit test for http client creation.

* Add unit test for replaceExt

* Add unit test for buildRequest

* Add unit test for limitedString

* Add unit test for storeFailedAdvisory

* Add unit test for storeFailedAdvisory ... fixed

* Add unit test for storeFailed

* Add unit test for forward

* comment wording
2023-09-29 09:46:51 +02:00
Bernhard E. Reiter
2bb2a2e018
docs: update main README (#469)
* Change release action to use elder Ubuntu runner

  * use `ubuntu-20.04` so we get binaries that are more
    compatible with elder GNU/Linux distribution, because
    go binaries link to glibc (for some operating system operations
    like dns).

resolve #456

* docs: update main README

 * introduce more structure and put commands for users to the top.
 * improve description of the command for the 3.0 release.

* Add 'Tools for ...' to make it more readable.

---------

Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
2023-09-29 04:40:32 +02:00
Sascha L. Teichmann
0198cb470a
Update 3rd-party dependencies. (#468) 2023-09-28 16:08:13 +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
Sascha L. Teichmann
703127a6b3
Remove verbose flag from downloader test. (#466) 2023-09-27 13:19:08 +02:00
JanHoefelmeyer
2e5038f06d
Merge pull request #465 from csaf-poc/downloader-document-forward
Downloader: Document the implementes forward API
2023-09-27 12:16:24 +02:00
JanHoefelmeyer
37f770ed3d
Merge pull request #463 from csaf-poc/downloader-unit-tests
Downloader: unit tests for stats
2023-09-27 12:16:05 +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
JanHoefelmeyer
0ec5f22a74 Removed subjective informal 'little bit' phrasing 2023-09-27 11:30:35 +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
e470529dfb Add a paragraph about the remote forward API. 2023-09-27 10:13:15 +02:00
cintek
49da14d47f
feat: log redirects (#458)
* feat: log redirects

* improved logging and renamed function
2023-09-26 10:03:09 +02:00
Bernhard E. Reiter
0c9516ac08
Change release action to use elder Ubuntu runner (#461)
* use `ubuntu-20.04` so we get binaries that are more
    compatible with elder GNU/Linux distribution, because
    go binaries link to glibc (for some operating system operations
    like dns).

resolve #456
2023-09-26 09:37:12 +02:00
Sascha L. Teichmann
fca3f5bb9b Fix stats unit test. 2023-09-25 23:32:19 +02:00
Sascha L. Teichmann
b0d7dbb387 Add unit test for stats. 2023-09-25 23:23:28 +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