You can validate that your secret was stored correctly by sending a GET
request to the /secrets
endpoint:
curl -X GET "https://us.api.konghq.com/v2/control-planes/$CONTROL_PLANE_ID/config-stores/$DECK_CONFIG_STORE_ID/secrets/" \
-H "Authorization: Bearer $KONNECT_TOKEN"
Note: If you configured your Vault and secret using the UI, you can find your Config Store ID by sending a GET request to the /control-planes/{controlPlaneId}/config-stores
endpoint.
If your secret was successfully stored in Konnect, the endpoint should return a 201
status code and your secret-key
key in the output.
You can now reference your Konnect secret in configurations as {vault://mysecretvault/secret-key}
.