From df8ffb35afef1dfc4cecedfa77ea03ee7ef190fb Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 5 Apr 2022 17:39:06 -0700 Subject: [PATCH] Remove unnecessary database in provisioner config. --- authority/provisioner/provisioner.go | 3 --- authority/provisioners.go | 1 - 2 files changed, 4 deletions(-) diff --git a/authority/provisioner/provisioner.go b/authority/provisioner/provisioner.go index 7438ea17..0d5cd41a 100644 --- a/authority/provisioner/provisioner.go +++ b/authority/provisioner/provisioner.go @@ -9,7 +9,6 @@ import ( "strings" "github.com/pkg/errors" - "github.com/smallstep/certificates/db" "github.com/smallstep/certificates/errs" "golang.org/x/crypto/ssh" ) @@ -212,8 +211,6 @@ type Config struct { Claims Claims // Audiences are the audiences used in the default provisioner, (JWK). Audiences Audiences - // DB is the interface to the authority DB client. - DB db.AuthDB // SSHKeys are the root SSH public keys SSHKeys *SSHKeys // GetIdentityFunc is a function that returns an identity that will be diff --git a/authority/provisioners.go b/authority/provisioners.go index a6ac5aa8..496421f5 100644 --- a/authority/provisioners.go +++ b/authority/provisioners.go @@ -103,7 +103,6 @@ func (a *Authority) generateProvisionerConfig(ctx context.Context) (provisioner. return provisioner.Config{ Claims: claimer.Claims(), Audiences: a.config.GetAudiences(), - DB: a.db, SSHKeys: &provisioner.SSHKeys{ UserKeys: sshKeys.UserKeys, HostKeys: sshKeys.HostKeys,