Skip to content

Commit 2d5d27e

Browse files
committed
Reorder groups in Admin cert
This is to workaround Bug #18715, which is caused by Golang Crypto's x509 certificate generation ordering Subjects RDN incorrectly *and* GNUTLS' bug that "fixes" client certs on read with the correct encoding. To avoid issues until both are fixed we set the correct ordering ourself Signed-off-by: Simo Sorce <[email protected]>
1 parent 3addbb0 commit 2d5d27e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/server/admin/default_certs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func DefaultClusterAdminClientCertInfo(certDir string) ClientCertInfo {
145145
},
146146
UnqualifiedUser: "admin",
147147
User: "system:admin",
148-
Groups: sets.NewString(bootstrappolicy.ClusterAdminGroup, bootstrappolicy.MastersGroup),
148+
Groups: sets.NewString(bootstrappolicy.MastersGroup, bootstrappolicy.ClusterAdminGroup),
149149
}
150150
}
151151

0 commit comments

Comments
 (0)