FIPS gossip changes (#17507)

* separate fips gossip

* clean up
This commit is contained in:
skpratt 2023-05-30 17:40:31 -05:00 committed by GitHub
parent e559c59eb6
commit a46ac4be07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,10 @@ import (
) )
func (md *lanMergeDelegate) enterpriseNotifyMergeMember(m *serf.Member) error { func (md *lanMergeDelegate) enterpriseNotifyMergeMember(m *serf.Member) error {
if memberFIPS := m.Tags["fips"]; memberFIPS != "" {
return fmt.Errorf("Member '%s' is FIPS Consul; FIPS Consul is only available in Consul Enterprise",
m.Name)
}
if memberPartition := m.Tags["ap"]; memberPartition != "" { if memberPartition := m.Tags["ap"]; memberPartition != "" {
return fmt.Errorf("Member '%s' part of partition '%s'; Partitions are a Consul Enterprise feature", return fmt.Errorf("Member '%s' part of partition '%s'; Partitions are a Consul Enterprise feature",
m.Name, memberPartition) m.Name, memberPartition)

View File

@ -2,6 +2,10 @@
package version package version
func IsFIPS() bool {
return false
}
func GetFIPSInfo() string { func GetFIPSInfo() string {
return "" return ""
} }