From 57ecd39e4e1a1b9284db7125283b03e0c9d16432 Mon Sep 17 00:00:00 2001 From: Chao Dai Date: Fri, 4 Jun 2021 16:56:07 -0700 Subject: [PATCH] Authentikos prints md5sum of generated token for debug purpose --- authentikos/authentikos.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/authentikos/authentikos.go b/authentikos/authentikos.go index 96cad292e4e..0683ef89722 100755 --- a/authentikos/authentikos.go +++ b/authentikos/authentikos.go @@ -19,6 +19,7 @@ package main import ( "bytes" "context" + "crypto/md5" "errors" "fmt" "html/template" @@ -343,6 +344,7 @@ func createOrUpdateSecret(o options, client v1.SecretsGetter, ns string, secretD Data: map[string][]byte{o.key: data}, } + printVerbose(fmt.Sprintf("md5sum of token created is: %x", md5.Sum(data)), o.verbose) if secret, err := client.Secrets(ns).Create(req); err == nil { printVerbose(fmt.Sprintf("creating secret: %v in namespace: %v\n", o.secret, ns), o.verbose) return secret, nil