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

41 commits

Author SHA1 Message Date
JanHoefelmeyer
b61912410a
Empty rolie (#357)
* Create ROLIE feed if summaries are empty

* Formatting, Remove sorting of 0 elements

* Handle minimum entry length error as warning in checker

* Use empty array instead of creating an empty array to reference

* Change schema to allow for empty entry arrays

* Use https://raw.githubusercontent.com/oasis-tcs/csaf/81b2663697958bc5f85d14372712a40028fb8338/csaf_2.0/json_schema/ROLIE_feed_json_schema.json as schema for ROLIE feeds

* Change label name from empty to undefined

* Change default of create_service_document for csaf_provider to true

* Config

* Count entries in csaf-checker, warn if there are none.

* Add Comments to csaf/rolie.go's CountEntries function

* Delete index.txt and changes.csv in aggregator if there are no entries.

* Create an empty ROLIE feed document when setting up folders during create

* nit: set update time stamp in structure init.

* Instantiate label checker only once.

* Ignore domain not having roles.

* provider: Create empty entry section in ROLIE feed.

* Stop check for domain if PMD check fails

* Add missing continue statement

* Report missing ROLIE feed entries in ROLIE feed, not Provider Metadata

* Do not ommit empty entries in ROLIE feeds.

* Fixed error handling problem introduced by faulty merge. Removed unused errStop handling while there.

---------

Co-authored-by: JanHoefelmeyer <hoefelmeyer.jan@gmail.com>
Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
Co-authored-by: JanHoefelmeyer <Jan Höfelmeyer jhoefelmeyer@intevation.de>
2023-06-30 23:34:43 +02:00
Sascha L. Teichmann
ff31ebfa0f Fixed typos 2023-01-26 20:02:05 +01:00
Sascha L. Teichmann
ad5c678abf Mention the single quote limitation of the jsonpath implementation 2023-01-26 18:55:21 +01:00
Sascha L. Teichmann
69dda45bac Dedup doc 2023-01-25 13:42:26 +01:00
Sascha L. Teichmann
bf6dfafffd Address remarks from review. 2023-01-24 01:34:23 +01:00
Sascha L. Teichmann
8c8ccf6a2e Extract more than one string from expr: category fields. 2023-01-22 20:55:26 +01:00
s-l-teichmann s-l-teichmann@users.noreply.github.com
d28869f083 Apply automatic changes 2022-09-02 12:19:28 +00:00
Fadi Abbud
0e1b908695 Fix typo 2022-08-24 09:07:56 +02:00
Sascha L. Teichmann
2575302fbd Mentioned the OpenPGP keys 2022-08-23 15:48:17 +02:00
Bernhard Reiter
26a8fb0b55
Improve provider documentation
* Add description about the api endpoints offered by the provider
   and why create should only be called once.

improves #168
2022-08-23 14:50:39 +02:00
s-l-teichmann s-l-teichmann@users.noreply.github.com
be15d43dd3 Apply automatic changes 2022-07-26 13:14:14 +00:00
Bernhard E. Reiter
dce0a9b51f
Disable experimental web interface for provider (#257)
* Disable experimental web interface for provider

* More compact init

* Fixed typo

Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
2022-07-25 16:28:54 +02:00
bernhardreiter bernhardreiter@users.noreply.github.com
5caed04dc8 Apply automatic changes 2022-07-18 18:16:39 +00:00
JanHoefelmeyer
e424cd3d6c
Improve provider documentation
* Creates an example config.toml and replaces csaf_providers example with the autodoc to said example.

Co-authored-by: Jan Höfelmeyer <Jan Höfelmeyer jhoefelmeyer@intevation.de>
Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
Co-authored-by: @mfd2007
2022-07-18 20:15:45 +02:00
JanHoefelmeyer
2ac7940206
Pwacc (#218)
* Adds option to require Client Certificate and a Password to aquire write access in provider

* Removed unnecessary flavourtext from provider markdown file

* Fixed and simplified the auth middleware

Co-authored-by: Jan Höfelmeyer <Jan Höfelmeyer jhoefelmeyer@intevation.de>
Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
2022-07-13 14:09:27 +02:00
JanHoefelmeyer
3ed1d3ab21
Rewrote confusing config option explanations in csaf_provider (#213)
Co-authored-by: Jan Höfelmeyer <Jan Höfelmeyer jhoefelmeyer@intevation.de>
2022-07-11 12:32:48 +02:00
Fadi Abbud
12693409a8 Add example to provider documentation (categories) 2022-07-08 11:27:52 +02:00
Sascha L. Teichmann
dc8c89c886 Merge branch 'main' into rolie-categories 2022-07-05 16:54:12 +02:00
Sascha L. Teichmann
20f5937240
Only create/update index.txt, changes.csv, security.txt when configured. (#210)
* Change default to not write index.txt, changes.csv and security.txt 
  (for provider and aggregator)
* Add config file options to reenable writing.
2022-07-05 16:44:45 +02:00
Sascha L. Teichmann
acf5df9d56 Add rudimentary documentation. 2022-06-30 19:06:06 +02:00
JanHoefelmeyer
1a6829c9ea
Improve provider docs
* Rephrase link from setup-provider to csaf_provider options.
* Remove a few superfluous whitespace chars.
2022-06-21 15:43:03 +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
Jan Höfelmeyer
05915526c2 Resolved merge conflict in csaf_provider.md 2022-06-20 11:54:46 +02:00
Jan Höfelmeyer
004519c9fc fixes formatting at the end of the file 2022-06-17 13:35:54 +02:00
Jan Höfelmeyer
aa523e5659 Fixes formatting of TOML table causing a line to not show up 2022-06-17 13:34:19 +02:00
Jan Höfelmeyer
aa7aadf3f1 Fixes formatting of TOML table at the end of csaf_provider.md 2022-06-17 13:33:14 +02:00
Jan Höfelmeyer
3465938508 Fixes last bit of TOML code not being highlighted 2022-06-17 13:23:44 +02:00
Jan Höfelmeyer
22a6543932 Fixes newlines at the end of docs/csaf_provider.md 2022-06-17 13:22:11 +02:00
Jan Höfelmeyer
a680d909e1 Fixes newlines at the end of docs/csaf_provider.md 2022-06-17 13:17:36 +02:00
Jan Höfelmeyer
21960febe1 Exchanges TOML inline table with standard table for better readability 2022-06-17 13:13:35 +02:00
Jan Höfelmeyer
80eca02ca0 Exchanges TOML inline table with standard table for better readability 2022-06-17 13:01:25 +02:00
JanHoefelmeyer
bb0a30aba3
Improve provider docs
* Add issuing_authority and contact_details to publisher info example
   in docs/csaf_provider.md.
* Add a link to toml's website.
2022-06-17 09:26:27 +02:00
Jan Höfelmeyer
0268d989b5 Adds a link to toml's website to docs/provider.md 2022-06-16 12:46:03 +02:00
Jan Höfelmeyer
8fdda14aee Improves Examples for issuing_authority and contact_details in csaf_provider.md 2022-06-16 12:32:11 +02:00
Jan Höfelmeyer
041621cda7 Added issuing_authority and contact_details to publisher info in docs/csaf_provider.md 2022-06-14 13:50:01 +02:00
tschmidtb51
22b945a3c3
Improve provider example configuration and docs
* Change "Organization" to include the string "Company" to reflect common sense of category "vendor"
2022-06-14 08:58:11 +02:00
Bernhard Reiter
006f088082
Improve checker documentation for config file
* Move the config variables which could be specified as tables in TOML
   to the bottom of the documentation, to avoid that a regular toplevel
   variable is used below them (which would be wrong in TOML).
 * Be more specific about the value of the `upload_limit`.
2022-06-10 17:27:33 +02:00
Sascha L. Teichmann
69f0f3499a
Change openpgp key providing code to use local directory
* Adjust provider and aggregator to copy the used openpgp pubkey into a locally
  provided directory `openpgp` beside the `prodiver-metadata.json`.
  This more robust and self-reliant than using a public pubkey server,
  which is the reason why the CSAF 2.0 csd02 mentions it as example in
  "7.1.20 Requirement 20: Public OpenPGP Key".
 * Improve aggregator by removing a typo `aggreator` from one written paths.
   (Done with this change as it also affects the openpgp/ paths writing.)

solve #85
2022-06-09 10:42:44 +02:00
Bernhard Reiter
baea1eb134
Improve docs 2022-05-16 16:24:11 +02:00
Bernhard Reiter
ed9e026579
Improve documentation
* Fix doc long optionsname for the uploader.
 * Add more infos to the provider doc.
2022-05-16 16:21:16 +02:00
Fadi Abbud
6f02e6f5a5
Improve documentation and its structure
* Add short description for each component in the main README
* Move more Info in separated files.
* Add hint that csaf_provider offers a service interface.
* Explain why windows only has uploader and checker.

Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
2022-05-13 11:04:38 +02:00