-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor keystore config #43154
refactor keystore config #43154
Conversation
@@ -5687,7 +5687,7 @@ func TestGenerateHostCert(t *testing.T) { | |||
// the first available identity. | |||
func TestLocalServiceRolesHavePermissionsForUploaderService(t *testing.T) { | |||
srv, err := NewTestAuthServer(TestAuthServerConfig{Dir: t.TempDir()}) | |||
require.NoError(t, err) | |||
require.NoError(t, err, trace.DebugReport(err)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something left over from debugging a failed test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes but I don't think it's worth reverting, it was helpful for me 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although you may want a domain expert to take a look.
f300440
to
8f0b329
Compare
I wrote all this originally and Tim's the only other person who has touched it |
lib/service/servicecfg/auth.go
Outdated
GCPKMSProtectionLevelHSM = "HSM" | ||
GCPKMSProtectionLevelSoftware = "SOFTWARE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: godocs.
@nklaassen See the table below for backport results.
|
We recently duplicated most fields of
(lib/auth/keystore).Config
types to(lib/service/servicecfg).KeystoreConfig
to break some dependencies on cloud SDKs in our client binaries.This PR deletes
(lib/auth/keystore).Config
to unify on(lib/service/servicecfg).KeystoreConfig
. It adds a newkeystore.Options
struct to hold runtime options for the keystore, in contrast toKeystoreConfig
which holds mostly static options coming from the config file.No functional changes are made here.
Depends on #43153 and https://github.com/gravitational/teleport.e/pull/4425
I made these changes while prepping the keystore to support configurable signature algorithms for the implementation of RFD 136.