-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TLS support for Redis Client implementation (#1998)
* Add TLS support for Redis Client implementation Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com> * Define 'redis_server.insecure-skip-verify' flag in 'rekor-server' to allow skipping TLS verification Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com> * Change flag comment to reference that this only applies to the redis endpoint Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com> * Add '#nosec G402' annotation to suppress known warning Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com> * Wrap redis client creation to a separate function to return different implementations based on 'enable-tls' flag Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com> * Fix flag name from 'enableTls' -> 'enableTLS'. Make bool comparisons conform to go best practices. Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com> * Reduce duplicate code. Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com> * Add TLS option for Redis for the search index client Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com> --------- Signed-off-by: Mihkel Pärna <mihkel.parna@transferwise.com>
- Loading branch information
1 parent
d596e9d
commit 07b1a9f
Showing
5 changed files
with
65 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters