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

142 commits

Author SHA1 Message Date
Bernhard Reiter
b2ac115ee4
Fix csaf_provider integration test
* Move to using a custom argument list in main for the provider,
   now that we have argument handling.
2022-04-13 17:31:36 +02:00
Bernhard Reiter
7a1d26e3fd
Add coverage for integration test to checker 2022-04-13 15:18:32 +02:00
Bernhard Reiter
85447c20b7
Extend itest coverage prodiver example
* Add how to create a coverage file per cgi call and merge them in the
   description which is in the code comments.
2022-04-13 14:58:49 +02:00
Bernhard Reiter
50ec5678cb
Merge branch 'main' into experimental-integration-test-coverage 2022-04-13 14:28:51 +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
Bernhard Reiter
6abbac6c2d
Add integration test ability to provider 2022-04-08 10:40:01 +02:00
Bernhard Reiter
96f4d57b76
Merge branch 'main' into dev-improve-client-certs 2022-04-08 10:06:12 +02:00
Bernhard Reiter
1f88a0abe8
Skip integration test on regular test run 2022-04-08 09:25:31 +02:00
Bernhard Reiter
6dada4fd14
Change checker to allow integration test coverage
* Add realMain() to allow a call with test argument redacted.
 * Add main_test to call realMain with arguments after `--`.
2022-04-07 18:02:41 +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
Fadi Abbud
b9603b7742
Add options to use TLS client certificate for authentication (Uploader)
* Add "client-cert" and "client-key" flag options to allow the uploader to use
TLS client certificate for authentication with the provider.

Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
2022-03-31 15:57:00 +02:00
Bernhard Reiter
21eb768a05
Improve providers handlung of tls client certs
* Change logging logic to print out the Issuer when a certificate
   was presented.
2022-03-31 12:00:13 +02:00
Fadi Abbud
782d653e59 Issuer documentation
* Documentation for the "issuer" option of the provider.
* More info of the format of the accepted file
* Print out the value of `SSL_CLIENT_I_DN` also when it is not match the issuer.
2022-03-24 16:46:47 +01:00
Bernhard E. Reiter
1d7e7a3124
Merge branch 'main' into client-certificate 2022-03-23 20:19:51 +01:00
Bernhard Reiter
3753f08370
Merge branch 'main' into client-certificate 2022-03-23 20:12:36 +01:00
Fadi Abbud
5e1f2092e8
add setup options to provider docs
* Add a first description of the config options for csaf_provider.
 * Change option name from `domain` to `canonical_prefix_url`
    to make the usage more intuitively. Use`https` in the default,
    if unset.

resolve #32 

Co-authored-by: Bernhard E. Reiter <bernhard@intevation.de>
Co-authored-by: tschmidtb51 <65305130+tschmidtb51@users.noreply.github.com>
2022-03-23 19:48:05 +01:00
Fadi Abbud
4fae2ec627 Fix typo 2022-03-22 08:39:13 +01:00
Sascha L. Teichmann
45ac434871
Merge pull request #80 from csaf-poc/checker-documentation
Checker documentation
2022-03-21 22:20:00 +01:00
Sascha L. Teichmann
f2f4b9081f
Merge pull request #79 from csaf-poc/dev-pgp-to-pubkeysopenpgp
Improve Texts "PGP key" -> "public OpenPGP key"
2022-03-21 22:17:41 +01:00
Fadi Abbud
9e2a9d7fad Code documentation and fix typo 2022-03-08 17:31:13 +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
Sascha L. Teichmann
737fc89cd5 Made the issuer optional if using client sides certs for auth. 2022-03-07 13:27:22 +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
7841d78bb8 removed unnecessary assignments. 2022-03-03 12:21:16 +01:00
Bernhard Reiter
bfa5e787a2
Improve checker's reporting texts
* Remove minor typos.
 * Go upper case for HTTPS as this is more common.
 * Make texts indicating a good result start with somethink else
   than "No", this removes an indirection in thinking and also offers
   a visible difference.
 * Bump copyright year to 2022.
 * Do PGP to "public OpenPGP keys" while at the reporters.go file
   while at it (to make merging easier).
 * Use an explicit message to indicate that a check is not done because
   of a missing implementation.
2022-03-03 11:55:03 +01:00
Bernhard Reiter
1f4f32435d
Fixing `CASF' typos
* Bump copyright year 2021 -> 2022 on a few files.
2022-02-25 17:38:07 +01:00
Sascha L. Teichmann
b12ad718c5 Factor out summary extraction from advisories. 2022-02-24 12:22:10 +01:00
Sascha L. Teichmann
4fc6bc5509 Add another layer aound the ROLIE feed documents. 2022-02-23 21:10:19 +01:00
Fadi Abbud
9e422d5ad2 Add one config option (provider)
* "Issuer" config option for setting the CA issuer, these is used to
determine the valid TLS client certificates that allowed to access the
web-interface of the provider.
2022-02-22 08:37:51 +01:00
Sascha L. Teichmann
57f43b9d7c Restore output of found value 2022-02-17 10:41:52 +01:00
Sascha L. Teichmann
cffc7aaa66 Merge branch 'main' into improve_tlp_error_message 2022-02-17 10:34:03 +01:00
Sascha L. Teichmann
83299ebe8b
Merge pull request #51 from csaf-poc/provider_documentation
Add some code documentation
2022-02-17 10:30:31 +01:00
Sascha L. Teichmann
81fa044bf0 Made auth middleware more readable. 2022-02-15 20:55:19 +01:00
Bernhard Reiter
dbf52223e9
Fix code format in cmd/csaf_provider/controller.go 2022-02-15 18:26:11 +01:00
Bernhard Reiter
2905a30cc0
Improve tls client cert handling
* Improve nginx setup to transfer auth information to the fcgiwrap
 backend.
 * Add instructions for creating client certs for testing.
 * Add debug output to see if and which client cert has been used when
   calling the csaf_provider.go .
2022-02-15 18:20:24 +01:00
Sascha L. Teichmann
b894950b63 Load location of provider-metadata.json from security.txt 2022-02-07 20:12:32 +01:00
Sascha L. Teichmann
27f1aa5461 Started with loading provider-metadata.json from a list of possible locations. 2022-02-07 17:37:01 +01:00
Fadi Abbud
c43d690b57 Fix Typo 2022-02-07 13:23:09 +01:00
Fadi Abbud
e8cbab2c29 Add some documentation (controller) 2022-02-07 13:00:28 +01:00
Fadi Abbud
b872f28acd Add some code documentation 2022-02-03 15:18:40 +01:00
Fadi Abbud
54465b54ad Improve error message of missing tlp
* #34
2022-01-26 12:26:13 +01:00
Sascha L. Teichmann
9adab13948 Do not report success on checks which were not performed.
Second part of the Fix of issue #24.
2022-01-12 19:48:33 +01:00
Sascha L. Teichmann
09de416a4a Stop checker run of a domain after an error occurrs making a continuation pointless.
Fixes issue #24.

TODO: Improve handling of checks that are not run due to the stop.
They currently report success which is not correct.
2022-01-12 12:32:07 +01:00
Sascha L. Teichmann
24710be9fe Improved wording of comments a bit. 2022-01-10 14:08:07 +01:00
Fadi Abbud
06d6d69755 Fix typo 2022-01-06 09:58:15 +01:00
Fadi Abbud
b32f2c6b03 Fix typo 2022-01-05 15:59:16 +01:00
Fadi Abbud
a1d2a445b7 Add some code documentation (csaf_uploader) 2022-01-05 12:29:35 +01:00
Sascha L. Teichmann
dab359dd91 Place CSAF files in the right folder. 2021-12-16 15:53:44 +01:00