mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-22 12:58:37 +00:00
cmd/derper: remove logging of mesh key (#14915)
A previous PR accidentally logged the key as part of an error. Remove logging of the key. Add log print for Setec store steup. Updates tailscale/corp#25756 Signed-off-by: Mike O'Driscoll <mikeo@tailscale.com>
This commit is contained in:
parent
d5316a4fbb
commit
e6e00012b2
@ -155,7 +155,7 @@ func writeNewConfig() config {
|
|||||||
func checkMeshKey(key string) (string, error) {
|
func checkMeshKey(key string) (string, error) {
|
||||||
key = strings.TrimSpace(key)
|
key = strings.TrimSpace(key)
|
||||||
if !validMeshKey.MatchString(key) {
|
if !validMeshKey.MatchString(key) {
|
||||||
return "", fmt.Errorf("key in %q must contain 64+ hex digits", key)
|
return "", errors.New("key must contain exactly 64 hex digits")
|
||||||
}
|
}
|
||||||
return key, nil
|
return key, nil
|
||||||
}
|
}
|
||||||
@ -210,6 +210,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("NewFileCache: %v", err)
|
log.Fatalf("NewFileCache: %v", err)
|
||||||
}
|
}
|
||||||
|
log.Printf("Setting up setec store from %q", *secretsURL)
|
||||||
st, err := setec.NewStore(ctx,
|
st, err := setec.NewStore(ctx,
|
||||||
setec.StoreConfig{
|
setec.StoreConfig{
|
||||||
Client: setec.Client{Server: *secretsURL},
|
Client: setec.Client{Server: *secretsURL},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user