mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
support runner TLS certificates with specified certificate Common Names (#900)
* support runner TLS certificates with specified certificate Common Names * removes duplicate constant * run in insecure mode by default but expose ability to create tls-secured runner pools programmatically * fixes runner tests to use new tls interfaces
This commit is contained in:
committed by
jan grant
parent
966890ac8f
commit
348bbaf36b
@@ -21,6 +21,7 @@ type RunnerPool interface {
|
||||
Shutdown(context.Context) error
|
||||
}
|
||||
|
||||
// PKIData encapsulates TLS certificate data
|
||||
type PKIData struct {
|
||||
Ca string
|
||||
Key string
|
||||
@@ -28,7 +29,7 @@ type PKIData struct {
|
||||
}
|
||||
|
||||
// MTLSRunnerFactory represents a factory method for constructing runners using mTLS
|
||||
type MTLSRunnerFactory func(addr string, pki *PKIData) (Runner, error)
|
||||
type MTLSRunnerFactory func(addr, certCommonName string, pki *PKIData) (Runner, error)
|
||||
|
||||
// Runner is the interface to invoke the execution of a function call on a specific runner
|
||||
type Runner interface {
|
||||
|
||||
Reference in New Issue
Block a user