-
Notifications
You must be signed in to change notification settings - Fork 799
feat(extension manager): dynamically reload CA certificates #5613
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
07975be
fix: support CA certificate reload on extension manager
sapirpol 3347ed2
add method
sapirpol 12922a8
Merge branch 'main' into certificate-reload
sapirpol 8f508b8
fix comments
sapirpol 58d3ecc
Merge branch 'main' into certificate-reload
sapirpol 064558c
add tests
sapirpol ff0251b
Merge branch 'main' into certificate-reload
sapirpol db82410
Merge branch 'main' into certificate-reload
sapirpol 2832915
Merge branch 'main' into certificate-reload
sapirpol 2437573
cr fixes
sapirpol 67658eb
modify secret data
sapirpol 5ff1c6d
fix lint errors
sapirpol c6baa82
Merge branch 'main' into certificate-reload
sapirpol 26bc142
Merge branch 'main' into certificate-reload
sapirpol 63bd5a4
Merge branch 'main' into certificate-reload
sapirpol f006b75
Merge branch 'main' into certificate-reload
sapirpol 29d1997
Merge branch 'main' into certificate-reload
sapirpol f9a3f16
Merge branch 'main' into certificate-reload
sapirpol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| -----BEGIN CERTIFICATE----- | ||
| MIIDITCCAgmgAwIBAgIUGkbKo/xIQFgfIzSWmWIr6IIt6hEwDQYJKoZIhvcNAQEL | ||
| BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MCAXDTI1MDQwNjEyMjEzOFoYDzIxMjUw | ||
| MzEzMTIyMTM4WjAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEB | ||
| AQUAA4IBDwAwggEKAoIBAQDfkT1bhPFG90raDJLSU5nwVGWJK7mtiT+aMQzaBuHr | ||
| hXQPWNWF+SflslO/tsVf67gX4eChUwXiUmoTA6Ahh9nlJ7fTWmK7QJkdcTjKv1N+ | ||
| DiEFWUvOpssviBfHavXkJjMsorBLBGCGS03q4xznDVYf9mfwUIiprkVBGQtYcH+M | ||
| BBb4ws2SxhTaFK0rr9cwwavOf+omHiE0cvQBd73+G8nFEq8vKTnDsub3ozk+GSXf | ||
| 5Hu81reePUcU1lWzksik4U5ZcsL+/B4sU1TwEhL6zLhQ9kr3KVyyW2wVESQzKk4O | ||
| XrYrPnQdULXWnAQBFPUOfiD2kHCGcylTZ1D4pcp4Q8EnAgMBAAGjaTBnMB0GA1Ud | ||
| DgQWBBSkuvsTM4xhiNIzJBk0cCtfj4KhWzAfBgNVHSMEGDAWgBSkuvsTM4xhiNIz | ||
| JBk0cCtfj4KhWzAPBgNVHRMBAf8EBTADAQH/MBQGA1UdEQQNMAuCCWxvY2FsaG9z | ||
| dDANBgkqhkiG9w0BAQsFAAOCAQEAwk/AvTJcjmDQ5n0CQfqEUNnzHd24yPLob4rG | ||
| GbrBgLO7YRS0l4ot6oTRau5PUAJ2eL0v3eGITaxZ+N7IWpa5Y0TFCcyFXBwtW9hq | ||
| i2+v1CfMfz6+/HjbWq1VvgRwATMctRbcl1XGR1DNs6jKKakTBoYDped9wAkKeSRb | ||
| +4ZK989M4zCuwLwcej/sEhRdazuEykm+QgUSabb45CrSnJb4gOYd0CdOilXr98EQ | ||
| Z2k4Hno434aD1CEIm4Fu7iwiKSR6TLFHHqC0bBd2aknB6DHLLMZMo1dXJchjQrkN | ||
| EO9DtJxCTVRLTbEA0589h50fW8/L1GtwYgSo721fntphbgw3VA== | ||
| -----END CERTIFICATE----- |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| -----BEGIN CERTIFICATE----- | ||
| MIIDITCCAgmgAwIBAgIUGkbKo/xIQFgfIzSWmWIr6IIt6hEwDQYJKoZIhvcNAQEL | ||
| BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MCAXDTI1MDQwNjEyMjEzOFoYDzIxMjUw | ||
| MzEzMTIyMTM4WjAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEB | ||
| AQUAA4IBDwAwggEKAoIBAQDfkT1bhPFG90raDJLSU5nwVGWJK7mtiT+aMQzaBuHr | ||
| hXQPWNWF+SflslO/tsVf67gX4eChUwXiUmoTA6Ahh9nlJ7fTWmK7QJkdcTjKv1N+ | ||
| DiEFWUvOpssviBfHavXkJjMsorBLBGCGS03q4xznDVYf9mfwUIiprkVBGQtYcH+M | ||
| BBb4ws2SxhTaFK0rr9cwwavOf+omHiE0cvQBd73+G8nFEq8vKTnDsub3ozk+GSXf | ||
| 5Hu81reePUcU1lWzksik4U5ZcsL+/B4sU1TwEhL6zLhQ9kr3KVyyW2wVESQzKk4O | ||
| XrYrPnQdULXWnAQBFPUOfiD2kHCGcylTZ1D4pcp4Q8EnAgMBAAGjaTBnMB0GA1Ud | ||
| DgQWBBSkuvsTM4xhiNIzJBk0cCtfj4KhWzAfBgNVHSMEGDAWgBSkuvsTM4xhiNIz | ||
| JBk0cCtfj4KhWzAPBgNVHRMBAf8EBTADAQH/MBQGA1UdEQQNMAuCCWxvY2FsaG9z | ||
| dDANBgkqhkiG9w0BAQsFAAOCAQEAwk/AvTJcjmDQ5n0CQfqEUNnzHd24yPLob4rG | ||
| GbrBgLO7YRS0l4ot6oTRau5PUAJ2eL0v3eGITaxZ+N7IWpa5Y0TFCcyFXBwtW9hq | ||
| i2+v1CfMfz6+/HjbWq1VvgRwATMctRbcl1XGR1DNs6jKKakTBoYDped9wAkKeSRb | ||
| +4ZK989M4zCuwLwcej/sEhRdazuEykm+QgUSabb45CrSnJb4gOYd0CdOilXr98EQ | ||
| Z2k4Hno434aD1CEIm4Fu7iwiKSR6TLFHHqC0bBd2aknB6DHLLMZMo1dXJchjQrkN | ||
| EO9DtJxCTVRLTbEA0589h50fW8/L1GtwYgSo721fntphbgw3VA== | ||
| -----END CERTIFICATE----- |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| -----BEGIN PRIVATE KEY----- | ||
| MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDfkT1bhPFG90ra | ||
| DJLSU5nwVGWJK7mtiT+aMQzaBuHrhXQPWNWF+SflslO/tsVf67gX4eChUwXiUmoT | ||
| A6Ahh9nlJ7fTWmK7QJkdcTjKv1N+DiEFWUvOpssviBfHavXkJjMsorBLBGCGS03q | ||
| 4xznDVYf9mfwUIiprkVBGQtYcH+MBBb4ws2SxhTaFK0rr9cwwavOf+omHiE0cvQB | ||
| d73+G8nFEq8vKTnDsub3ozk+GSXf5Hu81reePUcU1lWzksik4U5ZcsL+/B4sU1Tw | ||
| EhL6zLhQ9kr3KVyyW2wVESQzK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Ykji1lf7Qc9jtOxK2Q | ||
| 63soBRUlk1T2i34Q6k1pNoHQp9UMfUytNhynKRVHItkHW/d8CvS59atvf+5cF+V5 | ||
| Zl+7ydoiP69XiZPLDjhRaelWCz2wDeY6pszgG4zDYQKBgHgagAqV3qlWScVJBf6F | ||
| FyqRjt3aXVxM11f8LakXTI/3crFFdWp33HGhEw8Pv5EKu4ynJnBbYc4EJ8N1KfTB | ||
| iZ6rSpNYhkB6JRsSBO/RZjcceHc4wcyJkBciD3G+ZhwI5Ydrgt4/+pJX/9fA0wks | ||
| DF883l7zYtiBvGQXpKYwup6t | ||
| -----END PRIVATE KEY----- |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This function will run in the background in a goroutine inside advancedtls, correct?
If so, I suggest you don't pass in the parent context to this function, as someone may change the parent context to cancel or timeout in the future.
Instead, create a new context in this function
ctx := context.Background()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.
Done