Commit Graph

10 Commits

Author SHA1 Message Date
Nick Ufer 92a9e105cc
feat: makes mutual TLS optional for postgres, mysql/mariadb and grpc (#244)
* feat: makes mutual TLS optional for postgres and mysql

* feat: makes mutual TLS optional for gRPC

* refactor: replaces deprecated grpc.WithInsecure()

* docs: changes meaning of grpc tls option to client cert

* chore: updates test go version to same as project version (1.18)

* test: adds TLS and mutual TLS support to db and grpc test environments

* chore: adds generated test certificates to .gitignore

* chore: reduces test certificates to minimum key usage

* chore: adds second client certificate which acts as unauthorized

* test: adds mysql tls and mutual tls tests

* refactor: postgres ssl config check

* refactor: change connectTries to 0 for postgres to only have 1 retry by default like mysql

* refactor: postgres sslmode and sslrootcert code

* test: adds postgres tls and mutual tls tests

* fix: treat grpc authOpts grpc_ca_cert, grpc_tls_cert, grpc_tls_key as file paths instead of actual file contents

refactor: improves error logging

* test: adds grpc tls and mutual tls tests

* Fix postgres ssl modes `require`, ``verify-ca` and `verify-full` to work without explicit root certificate.

* refactor: adds warning for unknown pg_sslmode

style: removes empty lines

* style: compress switch case

Co-authored-by: Martin Abbrent <martin.abbrent@ufz.de>
2022-10-05 16:32:36 -03:00
Ignacio Gómez 0e39a99963
Finish getuser clientid support. 2020-02-21 23:27:51 -03:00
Ignacio Gómez bdc6da8ec2 Remove Gopkg.lock. 2019-07-30 09:39:40 -04:00
Ignacio Gómez 042687d17b Mosquitto 1.5.x support by exporting flags. 2018-10-11 16:13:01 -03:00
Ignacio Gómez 639fc1cd3e Now vendor folder is really gone. 2018-10-04 11:20:58 -03:00
Ignacio Gómez 4530499a09 Ignoring vendor 2018-10-04 11:18:52 -03:00
Ignacio Gomez 820d79bd8e Updated build instructions 2018-04-16 15:06:57 -03:00
Ignacio Gómez ad9ea5c4ca Removing binaries and updating gitignore. 2017-11-30 17:58:55 -03:00
Ignacio Gómez 00737c22a1 Opts passed as char* arrays. 2017-11-22 23:26:40 -03:00
Ignacio Gómez 81af715797
Initial commit 2017-11-15 19:53:01 -03:00