Skip to content

Commit

Permalink
Add InternalTLSEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed Aug 28, 2023
1 parent 3eaadea commit 496cb74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ func NewConfigFromMap(data map[string]string) (*Config, error) {
return nc, nil
}

// InternalTLSEnabled returns whether or not InternalEncyrption is enabled.
// Currently only DataplaneTLS is considered.
func (c *Config) InternalTLSEnabled() bool {
return c.DataplaneTLSEnabled()
}

// DataplaneTLSEnabled returns whether or not dataplane-trust is enabled.
func (c *Config) DataplaneTLSEnabled() bool {
return tlsEnabled(c.DataplaneTrust)
Expand Down

0 comments on commit 496cb74

Please sign in to comment.