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

37 commits

Author SHA1 Message Date
Bernhard E. Reiter
124794c4aa
Improve DNS example and itest setup (#285)
* Make nginx only try to map the root (URL /) request to the
   provider-metadata.json for DNSPath, otherwise /index.txt will
   also serve that file.
2022-08-26 12:23:51 +02:00
Bernhard E. Reiter
86fb441446
Change default port for secvisogram (#262)
* Change default port for secvisogram

 * Following change from
   https://github.com/secvisogram/csaf-validator-service/pull/14

* Improve script for setting up validation service

 * Add a test to fail if we cannot connect.
 * Add copyright header.
2022-07-26 15:13:02 +02:00
Bernhard Reiter
490fe4a589
Fix integration tests setup script
* Change from calling the web interface to create the folders to
   using the `/api/create` so it works even if the web interface is
   turned off.
2022-07-26 11:14:40 +02:00
Bernhard E. Reiter
677b0fdd4f
Add docs for a provider proxy (#255)
* Add instructions for an internal proxy provider

* Improve example test config

 * .. by moving CSAF_CONFIG out of the common fcgiwrap.conf,
   so it can more easily be changed in a different context.

* Improve proxy-provider-for-aggregator.md

 * Add section to aggregator documentation.
 * Fix typos.
 * Improve instructions.

* Fix one path

* Complre proxy-provider-for-aggregator.md
2022-07-25 15:23:11 +02:00
Bernhard Reiter
94fe738b8c
Fix testDownloader url 2022-07-21 16:25:12 +02:00
Bernhard Reiter
35c31e9a76
Improve integration test
* Add hint that some fails are okay, while we try to setup the
   validation service.
2022-07-21 16:22:02 +02:00
Bernhard Reiter
88a2d585be
Improve integration test scripts
* Add a simple aggegator web server config.
  * Add a downloader test using a direct url from the aggregator.
2022-07-21 16:16:16 +02:00
JanHoefelmeyer
5716374eac
Move example location of config files to /etc
* Move example and integration test configuration files to /etc/csaf,
   this includes the provider's config.toml as well as the test OpenPGP keys.
   This shall make it more compatible with good practices like the FHS.

Co-authored-by: Jan Höfelmeyer <Jan Höfelmeyer jhoefelmeyer@intevation.de>
Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
2022-07-21 15:04:09 +02:00
Bernhard Reiter
7965917168
Improve doc for development test script setup
* Add a commented out hint how to clone a special branch
   in the calling example of docs/scripts/Readme.md.
2022-07-21 12:44:03 +02:00
Fadi Abbud
9bb65a8cf8
Include service/category documents in itests (#239) 2022-07-20 12:05:08 +02:00
JanHoefelmeyer
bab5ebdc78
Merge pull request #192 from csaf-poc/itest-for-remote-validator
Remote validator checks uploaded files for mistakes
2022-06-27 15:13:15 +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
Fadi Abbud
9a390e2bcc Adjust script
* Disable exiting from Script for the errors by checking if the
validator-service is started.
2022-06-22 11:47:09 +02:00
Fadi Abbud
e1966a5716 Adjust "setupProviderForItest.sh" script
* To wait for the validator-service to be started.
2022-06-22 11:14:22 +02:00
Fadi Abbud
36384ca942 Add "sudo" to one command 2022-06-22 09:21:46 +02:00
Fadi Abbud
847ca3d6af Change permission for one script file 2022-06-21 16:52:19 +02:00
Fadi Abbud
a899376b8c Include testing the remote validator in itests 2022-06-21 16:51:30 +02:00
Bernhard E. Reiter
1e9d31277d
Improve nginx setup docs (#182)
* Change nginx config to return 403 on unauthorized access to
   the non-white TLP locations. We cannot hide the existence anyway,
   as it is listed in the provider-metadata.json, even when restricted.
2022-06-14 13:19:30 +02:00
Bernhard Reiter
7e7947a601
Improve integration test for checker
* Change checking to use client certs and verbose for html
   as this is what can be displayed on a webbrowser.
 * Rename the json result file to indicate why the result will differ
   without using the access of the client certificate.
2022-06-14 11:56:11 +02:00
Bernhard Reiter
d4f68a9b08
Improve integration test for checker
* Modify script to call checker twice with difference options,
   including one with json and --verbose.
 * Add json result as build artifact to be uploaded.
2022-06-14 11:10:52 +02:00
Bernhard Reiter
8f396bbe31
Improve aggregator integration test
* Do chgrp and chmod not recursively as we have just created the
   directory and if taken as example the recursive chmod with the
   s bit will produce unwanted results on files.
2022-06-09 17:55:47 +02:00
Bernhard Reiter
8c7e03c882
Improve documentation (minor)
* Change comment to better indicate setting in nginx example conf
   which serves the TLP != white locations of the prodiver.
   We do advertise them in the provider-metadata.json, but we still
   want to use 404 to not reveal more about the directory contents.
2022-06-09 16:18:09 +02:00
Bernhard E. Reiter
19d39b85d3
Improve aggregator setup docs (#163)
* Improve aggregator setup docs

 * Add hints how to serve the aggregator output using nginx.
 * Add hint that the permission of the aggregator config file should be
   restricted.
 * Add a setuid bit to the aggregator integration test script
   to easy manual serving.

* Wording

Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
2022-06-09 11:00:30 +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
773047a91d
Fix script at one mkdir for existing directory 2022-05-31 15:32:41 +02:00
Bernhard Reiter
2b3a71bca0
Improve setup documentation
* Add general hints that this example only shows how the components
   work together and that a GNU/Linux admin should be consulted for
   a secure setup.
 * Adjust the scripts that setup a testing instance to use better
   permissions as good example.
 * Add a section about security considerations.
2022-05-31 15:24:26 +02:00
Bernhard Reiter
bdc161504d
Fix test DNS setup 2022-05-17 20:44:08 +02:00
Bernhard E. Reiter
3e79671bb5
Add checker results as GH artifact for integration test
* Rename and upload checker-result.html to GH.
2022-05-17 10:18:50 +02:00
Fadi Abbud
b8a6c1914a
Add checker run to integration test scripts 2022-05-17 09:12:20 +02:00
Fadi Abbud
5577a0b088
Add dns config example and add it to integration tests
* Add action for starting integration tests
* Configure nginx to resolve DNS record
* Sync itest.yml and docs/scripts/Readme.md

resolve #100
2022-05-16 15:20:37 +02:00
Fadi Abbud
c4deef74eb
Add aggregator to the integration tests scripts 2022-05-16 10:45:49 +02:00
Fadi Abbud
13cd14738b
Add github action for integration test
* Add sudo to some commands for the github action.
* Change paths to also work within a github action.
2022-04-28 15:06:45 +02:00
Sascha L. Teichmann
05efc82bec
Improve scripts/prepareUbuntuInstanceForITests.sh
* Add code to fetch the lastest Go binary version.
2022-04-21 16:39:56 +02:00
Bernhard Reiter
3da37a533b
Improve integration test uploadToProvider.sh
* Remove `let` from the script as it will return 1 (signalling an error) on the
   first iteration, which will stop the script when in `set -e` mode.
   It also is unnecessary, as the increment can be done at the place of
   usage directly.
 * Added a "remainder aka modulo" division, otherwise there will be no
   TLP option set, once we run out of the four entries in the TLSs
   list.
 * (Style) remove superfluous semicolons.
2022-04-13 17:46:10 +02:00
Bernhard Reiter
9af0471087
Add packages to prepareUbuntuInstanceForITests.sh 2022-04-13 14:32:18 +02:00
Fadi Abbud
e8166121c7
Improve nginx example config
* Make files more readable: Move ";" from variable and add it into the nginx config file.
* Add missing nginx option `disable_symlinks off;` to the tlp paths.
2022-04-12 16:05:45 +02:00
Fadi Abbud
9bbe3e1eb8
Add scripts for integration test setup and docs generation
* Add an OpenPGP test keypair.
 * Move script parts of documentation into script, so they can be used on a fresh Ubuntu 20.04 system
   for within a github action to setup a csaf_provider and upload documents to it for an integration test.
 * Use dineshsonachalam/markdown-autodocs in github action to automatically
   insert lines from the scripts into the docs.

Co-authored-by: Bernhard Reiter <bernhard@intevation.de>
2022-04-08 10:04:34 +02:00