-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add key authentication option #11180
Changes from all commits
0fa6449
962c9be
29a0b0d
1f9995a
8e22db1
8b9c993
437b2b6
f7fc7d3
4526b79
cb08fed
99aa12b
693234d
8f33951
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,10 @@ def initialize_instance(values, **kwargs): | |
if 'username' not in values and 'user' in values: | ||
values['username'] = values['user'] | ||
|
||
if 'private_key_password' in values and 'private_key_path' not in values: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can these values be used along username and password? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These values shouldn't be used alongside |
||
raise Exception( | ||
'Option `private_key_password` is set but not option `private_key_path`. ' | ||
'Set `private_key_path` or remove `private_key_password` entry.' | ||
) | ||
|
||
return values |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,28 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-----BEGIN PRIVATE KEY----- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCXeqIH2MXr6E7p | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Used example key in integrations-core/voltdb/tests/compose/certs/client.pem Lines 5 to 32 in 119bbcc
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
utpe+ZC/31oMMgXi7EPqjeNdbEMkM5c1hCLSyy762mlafkvxqEaL+OIEamZXDtOq | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/cenVogdu5gvP/mMkijxWnMg7CNOtg6ulME2UqOPiMRQRJm9iXFoqx1xLSVSUh08 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
0ydbh2k8+yav/eRqaAJyREOE0IvafyeG1ocHTL/D6eHos3epB9T4OLXS6UjOvLoJ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
9eu4GLj7R6GuMB1X15RlmYP+XLWWO2pKjlfBdY8KxQ48Q5GQHpKV10ytuH36VO0q | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UvGRy5svzQEcI7VX/HCLkiFtbL7yQ+gyKACYql2CpBaBR0IDYAyx3KjrFdLSVkZ+ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
goWNcTThAgMBAAECggEAYPKDsTHzukA8ASsth4uCMMrp/tQlIE7GSN/2nFwlvI2o | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
QQAIqZCQyMvwkZIzWL6yJ/Np9BmE1kMPBWjW1ypyg1UE2XjAZk9FFPMmq/N1xXKP | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
gvyBjBrnw31s51KAcuX8R1j8xup18HHNdJhPoCzSFc1HvWtpPRDEQA2giOhQGc40 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
xcz34161dj8BAeeESHaIfed7WTwBu1IBTpVmAKPJudlAf3EjiAcO/pclLS7tJwN5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
qsX0K3oHkm4W1aaOLo/G4akUxJ72bS8ny9w8wvJmJKIJ93koHwJ5HnThL5UjGhCD | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cAJPCdUYm1oUtKAsTkIh2SC/sGBH28Q20D5UGHms4QKBgQD4UgvXIQYIcUv0M0qA | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
vGxyRDsG474Q8PqnClRAEZc/NA3S0g/B+jq0kyq7J3DLBtLCDEPmjBKfAbm39D2t | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TE4sebo2/CTYmJy5FgiJxdSaEoZOrPAZAJfpkN3lfohN6McIT+0YUTvdgnDk/5xo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NwPQQEfdN9OtWMqvaFMrr6gf8wKBgQCcKeSH2/t39r79LmZvxW42+dBQvhoDVR4J | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OsTYx058YWdAbWBy2CccCkDdOQnuPBsqIkQy5YQ4E6dt5AqOP9Kcl4xrfyocvQpy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ULa/sLl5xZTtKf6iyRhOuZS+LSgychoc3Y50xyNKoVAMv2ddvQnEQrEDQizbO6gW | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
43idKEKg2wKBgAzukOlKMfs8kz0LcsTTiz5EKWLJd3uAYT1Tv2F6yQqklle1UtbC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Rk5jH6WRf0FDgLRUWTDneIzJVTesQ44D3EpaqIT2iqCxCfBloloycEj5z/7G6NYU | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ftTOE5BBD64nAj5/kxRiHqEBiwmR+j4/JzawMk3l+2MarauG3lX3FuVbAoGADoVe | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
uLtd4MPS8pvz7oS/QOFt23Qx2wl5J4aNc1LlG2+7OCRziXpL+LGDYo7BO6PfKsXQ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
7aKl7sj1EqTXzm5k2SbGaeCDO/TgGc0jkSOPu6EBviPfh6eHWRqsmBp+2GH/x5ta | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ecVipLfnR6gspmzDkbpZ12G55hDgCnDQcFykBW0CgYBeYRRfvZuJVDbA7M3DygfI | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DCNPpgcjaECt5Uz/3N0udBNsoXY9vRakRlhKANLYesMUd76mUjVWu6Kc+EJtyEcC | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
q2plTc4gowD/hhxT1Fw95p6yxz8m+eHFc8BWAaHtoGMMgK1/wm1UXYe/hQDu39g9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ojckZpT64MHda9CvnF814g== | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-----END PRIVATE KEY----- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-----BEGIN ENCRYPTED PRIVATE KEY----- | ||
MIIE6TAbBgkqhkiG9w0BBQMwDgQIH+eVVXditq8CAggABIIEyLIREkj8xviusabN | ||
Eb9xkeuJJ2AMUHZjDlrhlUDN8LwZc5REcxvv1Y+aEvAaiVFjVM8NdhLLmreW6/mf | ||
1P2Ms0p8dUXg4w0ulU0dfoMwDSTz4vy/F66+pRNhctcMCxsbUITtYwe5tFKffJuC | ||
ovtuj0WbqgDngMiB+LUI9MDxBCKsS0tYoIE9RlNCplWZmNW8dY0rTAwJx0K0D5Hm | ||
cxZkj4E95wn2Jw57jdnbw1tEZyDAmR+v1aKVCtD39V8rAvBTBlfPAtD5IPLtOnem | ||
gvPv6EuSjwMmuKREBSkrZr/ibPbPcJwSvHBoQH1YVk5qQjXp+qXjrPA0xGFmYZ5O | ||
fc4kbMhZfB9QbioVql3wBd1we+3au+lC+Xao0RniOaX3waVOvvlsZFRBCnULuAVb | ||
YdezqDTpukxhi1Zp9+nXNFf0jQdKbEAcMP9MMe14IGTH0Zqs9g63jzOig5V1wU3a | ||
/ghalyC9RxnICimo/JObRl3hIgLK2VSoLIxguRdrScKXAFv2RCk6QuoavJwoxfdc | ||
ElXhHYuXM6+QzCHfaT3G1NPg9aJ40Ycp08Js/5DLzVjhdwBtQuJCpO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u8OrdftLR6gCDqNRJOM7c0bM09dstkLXsiadm | ||
Izh71I5VdjD088Wdeg== | ||
-----END ENCRYPTED PRIVATE KEY----- |
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.
The token function is named
renew_token
and this is namedread_key
, could we harmonize these names? Additionally, why do we read the token before the connection, and read the key file while making it?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.
I think it's better to not store the key in the integration ; I'll do a bit of refactor in a next PR to do the same with the token alongside updating the validators
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.
Sounds good!