github.com/outbrain/consul@v1.4.5/agent/structs/sanitize_oss.go (about)

     1  // +build !ent
     2  
     3  package structs
     4  
     5  // SanitizeLegacyACLToken does nothing in the OSS builds. It does not mutate
     6  // the input argument at all.
     7  //
     8  // In enterprise builds this hook is necessary to support fixing old multiline
     9  // HCL strings in legacy token Sentinel policies into heredocs. If the token
    10  // was updated and previously had a Hash set, this will also update it.
    11  //
    12  // DEPRECATED (ACL-Legacy-Compat)
    13  func SanitizeLegacyACLToken(token *ACLToken) {
    14  }
    15  
    16  // SanitizeLegacyACLTokenRules does nothing in the OSS builds. It always
    17  // returns an empty string.
    18  //
    19  // In enterprise builds this hook is necessary to support fixing any old
    20  // multiline HCL strings in legacy token Sentinel policies into heredocs.
    21  //
    22  // DEPRECATED (ACL-Legacy-Compat)
    23  func SanitizeLegacyACLTokenRules(rules string) string {
    24  	return ""
    25  }