-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support defining the secrets dynamically, i.e., they should appear as `dynamic_active_secrets` in the admin `/config_dump` page: ```sh $ kubectl port-forward --namespace default deployment/default 19000:19000 & $ curl -s 'http://localhost:19000/stats' | grep sds sds.client_secret_test_1.version_text: "690" sds.hmac_secret_test_1.version_text: "690" cluster.kubeshop-kusk-gateway-oauth2.eu.auth0.com.client_ssl_socket_factory.ssl_context_update_by_sds: 0 sds.client_secret_test_1.init_fetch_timeout: 0 sds.client_secret_test_1.key_rotation_failed: 0 sds.client_secret_test_1.update_attempt: 2 sds.client_secret_test_1.update_failure: 0 sds.client_secret_test_1.update_rejected: 0 sds.client_secret_test_1.update_success: 1 sds.client_secret_test_1.update_time: 1662408207693 sds.client_secret_test_1.version: 18219575566587264222 sds.hmac_secret_test_1.init_fetch_timeout: 0 sds.hmac_secret_test_1.key_rotation_failed: 0 sds.hmac_secret_test_1.update_attempt: 2 sds.hmac_secret_test_1.update_failure: 0 sds.hmac_secret_test_1.update_rejected: 0 sds.hmac_secret_test_1.update_success: 1 sds.hmac_secret_test_1.update_time: 1662408207693 sds.hmac_secret_test_1.version: 18219575566587264222 sds.client_secret_test_1.update_duration: P0(nan,0) P25(nan,0) P50(nan,0) P75(nan,0) P90(nan,0) P95(nan,0) P99(nan,0) P99.5(nan,0) P99.9(nan,0) P100(nan,0) sds.hmac_secret_test_1.update_duration: P0(nan,0) P25(nan,0) P50(nan,0) P75(nan,0) P90(nan,0) P95(nan,0) P99(nan,0) P99.5(nan,0) P99.9(nan,0) P100(nan,0) $ curl -s 'http://localhost:19000/config_dump' | jq '.[] | .[-1].dynamic_active_secrets' [ { "name": "client_secret_test_1", "version_info": "690", "last_updated": "2022-09-05T20:03:27.693Z", "secret": { "@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.Secret", "name": "client_secret_test_1", "generic_secret": { "secret": { "inline_string": "[redacted]" } } } }, { "name": "hmac_secret_test_1", "version_info": "690", "last_updated": "2022-09-05T20:03:27.693Z", "secret": { "@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.Secret", "name": "hmac_secret_test_1", "generic_secret": { "secret": { "inline_bytes": "W3JlZGFjdGVkXQ==" } } } } ] ``` Things to note from the above output are: 1. The secrets are in the `dynamic_active_secrets` object not in a `dynamic_warming_secrets` object, the later of which would mean that the secrets have not been sent to envoy. See <https://www.envoyproxy.io/docs/envoy/v1.23.1/api-v3/admin/v3/config_dump.proto#admin-v3-secretsconfigdump> for more information. As per the documentation `dynamic_active_secrets`: > "The dynamically loaded active secrets. These are secrets that are available to service clusters or listeners." 2. The output from the `/stats` endpoint shows no failures. Signed-off-by: Mohamed Bana <mohamed@bana.io>
- Loading branch information
Showing
19 changed files
with
407 additions
and
130 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
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
Oops, something went wrong.