We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0bd2ae commit 85a4cd5Copy full SHA for 85a4cd5
tools/testing/login/login.go
@@ -5,6 +5,7 @@ import (
5
"crypto/ed25519"
6
"crypto/x509"
7
"encoding/pem"
8
+ "errors"
9
"fmt"
10
"log"
11
"os"
@@ -22,7 +23,10 @@ type TokenIssuer struct {
22
23
}
24
25
func NewTokenIssuer(ctx context.Context, cluster string) (*TokenIssuer, error) {
- fixedVerifierPk := os.Getenv("FIXED_VERIFIER_PK")
26
+ fixedVerifierPk, ok := os.LookupEnv("FIXED_VERIFIER_PK")
27
+ if !ok {
28
+ return nil, errors.New("FIXED_VERIFIER_PK not found in environment")
29
+ }
30
pk, err := decodePrivateKeyPEM(fixedVerifierPk)
31
if err != nil {
32
return nil, fmt.Errorf("failed to parse fixed verifier key: %w", err)
0 commit comments