forked from TrueCloudLab/certificates
Move load of kms to main package.
With this change packages that import the authority won't load by default all the supported kms with all its dependencies. Fixes #228
This commit is contained in:
parent
0b528d2507
commit
ddb4ca7a74
3 changed files with 12 additions and 6 deletions
|
@ -23,6 +23,14 @@ import (
|
||||||
"github.com/smallstep/cli/config"
|
"github.com/smallstep/cli/config"
|
||||||
"github.com/smallstep/cli/usage"
|
"github.com/smallstep/cli/usage"
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
|
|
||||||
|
// Enabled kms interfaces.
|
||||||
|
_ "github.com/smallstep/certificates/kms/awskms"
|
||||||
|
_ "github.com/smallstep/certificates/kms/cloudkms"
|
||||||
|
_ "github.com/smallstep/certificates/kms/softkms"
|
||||||
|
|
||||||
|
// Experimental kms interfaces.
|
||||||
|
_ "github.com/smallstep/certificates/kms/yubikey"
|
||||||
)
|
)
|
||||||
|
|
||||||
// commit and buildTime are filled in during build by the Makefile
|
// commit and buildTime are filled in during build by the Makefile
|
||||||
|
|
|
@ -22,6 +22,9 @@ import (
|
||||||
"github.com/smallstep/cli/crypto/pemutil"
|
"github.com/smallstep/cli/crypto/pemutil"
|
||||||
"github.com/smallstep/cli/ui"
|
"github.com/smallstep/cli/ui"
|
||||||
"github.com/smallstep/cli/utils"
|
"github.com/smallstep/cli/utils"
|
||||||
|
|
||||||
|
// Enable yubikey.
|
||||||
|
_ "github.com/smallstep/certificates/kms/yubikey"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
|
@ -7,13 +7,8 @@ import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/smallstep/certificates/kms/apiv1"
|
"github.com/smallstep/certificates/kms/apiv1"
|
||||||
|
|
||||||
// Enabled kms interfaces.
|
// Enable default implementation
|
||||||
_ "github.com/smallstep/certificates/kms/awskms"
|
|
||||||
_ "github.com/smallstep/certificates/kms/cloudkms"
|
|
||||||
_ "github.com/smallstep/certificates/kms/softkms"
|
_ "github.com/smallstep/certificates/kms/softkms"
|
||||||
|
|
||||||
// Experimental kms interfaces.
|
|
||||||
_ "github.com/smallstep/certificates/kms/yubikey"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// KeyManager is the interface implemented by all the KMS.
|
// KeyManager is the interface implemented by all the KMS.
|
||||||
|
|
Loading…
Reference in a new issue