forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IPKI: master CA should verify x509 attributes before signing certs
This makes the master verify that the attributes stored in the X509 CSR match the authenticated user's credentials. Change-Id: I390e113220302dec335afc38d05d2ea73c965ba6 Reviewed-on: http://gerrit.cloudera.org:8080/6118 Tested-by: Kudu Jenkins Reviewed-by: Alexey Serbin <[email protected]>
- Loading branch information
1 parent
4a0fa09
commit 362eb53
Showing
7 changed files
with
100 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,7 +301,7 @@ TEST_P(TestNegotiation, TestNegotiation) { | |
break; | ||
case SaslMechanism::GSSAPI: | ||
EXPECT_EQ("client-gssapi", remote_user.username()); | ||
EXPECT_EQ("[email protected]", remote_user.principal()); | ||
EXPECT_EQ("[email protected]", remote_user.principal().value_or("")); | ||
break; | ||
case SaslMechanism::INVALID: LOG(FATAL) << "invalid mechanism negotiated"; | ||
} | ||
|
@@ -312,7 +312,7 @@ TEST_P(TestNegotiation, TestNegotiation) { | |
string expected; | ||
CHECK_OK(GetLoggedInUser(&expected)); | ||
EXPECT_EQ(expected, remote_user.username()); | ||
EXPECT_FALSE(remote_user.has_principal()); | ||
EXPECT_FALSE(remote_user.principal()); | ||
break; | ||
} | ||
case AuthenticationType::TOKEN: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters