0.27.0 — Infisical hardening: runtime refresh, audit logging, CLI verify/audit, startup verification, SSH host key verification, interface consolidation
This commit is contained in:
@@ -3,7 +3,6 @@ package secrets
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
@@ -54,14 +53,8 @@ func (b *InfisicalBackend) connect() error {
|
||||
|
||||
clientID := b.cfg.ClientID
|
||||
clientSecret := b.cfg.ClientSecret
|
||||
if clientID == "" {
|
||||
clientID = os.Getenv("INFISICAL_CLIENT_ID")
|
||||
}
|
||||
if clientSecret == "" {
|
||||
clientSecret = os.Getenv("INFISICAL_CLIENT_SECRET")
|
||||
}
|
||||
if clientID == "" || clientSecret == "" {
|
||||
return fmt.Errorf("%w: INFISICAL_CLIENT_ID and INFISICAL_CLIENT_SECRET not set", ErrBackendUnavailable)
|
||||
return fmt.Errorf("%w: OIKOS_INFISICAL_CLIENT_ID and OIKOS_INFISICAL_CLIENT_SECRET not set", ErrBackendUnavailable)
|
||||
}
|
||||
|
||||
_, err := b.client.Auth().UniversalAuthLogin(clientID, clientSecret)
|
||||
|
||||
Reference in New Issue
Block a user