mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
add a comment about TLSDownstreamClientCAFile
This commit is contained in:
parent
fb30f3f023
commit
d0d2a1fc4e
1 changed files with 3 additions and 0 deletions
|
@ -577,6 +577,9 @@ func clientCABundle(ctx context.Context, cfg *config.Config) []byte {
|
||||||
allPolicies := cfg.Options.GetAllPolicies()
|
allPolicies := cfg.Options.GetAllPolicies()
|
||||||
for i := range allPolicies {
|
for i := range allPolicies {
|
||||||
p := &allPolicies[i]
|
p := &allPolicies[i]
|
||||||
|
// We don't need to check TLSDownstreamClientCAFile here because
|
||||||
|
// Policy.Validate() will populate TLSDownstreamClientCA when
|
||||||
|
// TLSDownstreamClientCAFile is set.
|
||||||
if p.TLSDownstreamClientCA == "" {
|
if p.TLSDownstreamClientCA == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue