Sascha L. Teichmann
696fb74b36
Do not export function in config.
2022-08-03 15:32:05 +02:00
Fadi Abbud
fd0ae57443
Merge pull request #275 from csaf-poc/rework-interim
...
Rework interim
2022-08-03 10:48:18 +02:00
Sascha L. Teichmann
28616755dd
Merge branch 'main' into rework-interim
2022-08-03 09:35:29 +02:00
Sascha L. Teichmann
f469df7cec
Fix build error with Go 1.19
2022-08-03 09:34:52 +02:00
Sascha L. Teichmann
b6f4172ff9
s/iterim/interim/
2022-08-02 22:21:38 +02:00
Sascha L. Teichmann
bdb24e72ab
Ensure that interims.csv is deleted as soon as the last entry is removed from it.
2022-08-02 22:12:56 +02:00
Sascha L. Teichmann
00a0fb68d2
Fix transaction part two
2022-08-02 21:52:02 +02:00
Sascha L. Teichmann
9a7fbea7b6
Fix first part of transaction.
2022-08-02 18:36:20 +02:00
Sascha L. Teichmann
bf95140dbe
if all interims have not changed do nothing
2022-08-02 18:20:04 +02:00
Sascha L. Teichmann
c27fa41c2f
Fixed index bug in accessing column of interims.csv
2022-08-02 18:11:25 +02:00
Sascha L. Teichmann
2f65019e45
Merge remote-tracking branch 'origin/unify-spelling-interims-csv' into rework-interim
2022-08-02 17:06:39 +02:00
Sascha L. Teichmann
ef829131e1
reworked loading, checking and storing interims.
2022-08-02 17:01:48 +02:00
Sascha L. Teichmann
6547ed0a4b
Fixed spelling of interims.csv
2022-08-02 14:12:41 +02:00
Fadi Abbud
892a0b941b
Merge pull request #267 from csaf-poc/directory-url
...
Directory url
2022-08-01 15:35:22 +02:00
Sascha L. Teichmann
29d7dd1223
Make URLs absolute in integrity check
2022-08-01 14:46:57 +02:00
Sascha L. Teichmann
fad70b4dd5
Merge branch 'main' into directory-url
2022-08-01 13:20:04 +02:00
JanHoefelmeyer
9890a417b4
Merge pull request #268 from csaf-poc/no-rolie-index-changes-listings
...
There are no index.txt, changes.csv in ROLIE dists.
2022-08-01 13:18:36 +02:00
JanHoefelmeyer
141fbe21ca
Find missing ( #269 )
...
Solves #160
* Implements check on whether index.txt/changes.csv and directory listings exist. Also fixes minor grammatical mistakes
* Adds missing else to prevent defaulting to missing-error handling even if another error was found
* Removes comment
* test whether changes.csv or index.txt is empty
* Fixed type mismatching, undeclared variable
* Fixes typo in variable
* Fixes another typo in variable
* Fixes formatting error
* Removed reminder comments
* Fixes formatting errors
* Added check for missing directories
* Moved empty dirlistcheck to the right position
* fixes typo
* fixes typo
* Add info if files are found
* Cleans up code
* simplified check for empty changes.csv and index.txt
Co-authored-by: Jan Höfelmeyer <Jan Höfelmeyer jhoefelmeyer@intevation.de>
Co-authored-by: Sascha L. Teichmann <sascha.teichmann@intevation.de>
2022-08-01 13:17:35 +02:00
Sascha L. Teichmann
050e225d07
Fix type assertions from directory_url expression result
2022-08-01 13:00:10 +02:00
Sascha L. Teichmann
ada8070c63
There are no index.txt, changes.csv in ROLIE dists.
2022-08-01 07:20:52 +02:00
Sascha L. Teichmann
8e13d37756
If we do directory distributions write directory_urls
2022-08-01 07:09:21 +02:00
Sascha L. Teichmann
dce3d1f4a7
load advisories via directory_urls
2022-08-01 06:46:05 +02:00
Sascha L. Teichmann
8af0aeea46
Write directory_urls in provider if write indices.
2022-07-30 12:20:21 +02:00
s-l-teichmann s-l-teichmann@users.noreply.github.com
4c0785c060
Apply automatic changes
2022-07-29 09:34:13 +00:00
mfd2007
f325723e74
Update config option ( #266 )
...
Update names of config options and add new options.
2022-07-29 11:33:30 +02:00
Fadi Abbud
8478322111
Merge pull request #265 from csaf-poc/unify-client-cert-loading
...
Unify loading of client certs in checker and uploader.
2022-07-27 09:55:10 +02: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
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
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
Fadi Abbud
2614c1a4ba
Merge pull request #260 from csaf-poc/dont-omit-errors-loading-pmds
...
Do not silence errors when fetching a pmd
2022-07-26 15:11:14 +02:00
Sascha L. Teichmann
bed44e5e87
Do not silence errors when fetching a pmd
2022-07-26 12:06:14 +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
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
Bernhard Reiter
4abddee3bb
Merge branch 'main' of github.com:csaf-poc/csaf_distribution into main
2022-07-25 15:24:51 +02:00
Bernhard Reiter
8df67a7b1d
Improve aggregator doc formatting (minor)
2022-07-25 15:24:26 +02:00
s-l-teichmann s-l-teichmann@users.noreply.github.com
101dd6880c
Apply automatic changes
2022-07-25 13:24:11 +00: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
c511a971d6
Improve aggregator docs (minor)
...
* Add hint to OpenPGP private key in case unattended usage
is wanted.
2022-07-25 15:21:14 +02:00
Fadi Abbud
016188060f
Merge pull request #247 from csaf-poc/dont-forward-json-error
...
Handle none JSON replies to uploader calls as errors.
2022-07-25 13:23:19 +02:00
Fadi Abbud
52724d0a4a
Merge pull request #254 from csaf-poc/dedup-pmd-loading-error-checking
...
Avoid duplicate errors checking and logging when loading pmds.
2022-07-25 12:04:58 +02:00
Jan Höfelmeyer
92f6bc5a31
fixes missing negation of condition and fixes error messages
2022-07-25 08:25:06 +02:00
Sascha L. Teichmann
7cb376dd0e
Use content-type to tell unexpected errors from good ones apart.
2022-07-24 16:41:49 +02:00
Sascha L. Teichmann
772e6351b8
Improved default logging prefix.
2022-07-23 16:29:38 +02:00
Sascha L. Teichmann
58ec57e1cb
Avoid duplicate errors checking and logging when loading pmds.
2022-07-23 16:11:54 +02:00
Fadi Abbud
1b0e5b4238
Merge pull request #248 from csaf-poc/itest-download-from-agg
...
Improve integration test scripts
2022-07-22 10:08:37 +02:00
Bernhard Reiter
82a1a1997a
Merge branch 'main' into itest-download-from-agg
2022-07-22 09:10:07 +02:00
Sascha L. Teichmann
60b1db2da1
Fix aggregator to create valid uppercase TLPs. ( #250 )
...
Resolve #249
2022-07-22 09:09:25 +02:00
bernhardreiter bernhardreiter@users.noreply.github.com
ca69997e2b
Apply automatic changes
2022-07-21 16:00:56 +00:00