-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Konnect native config store (#7939)
* Update index.md for Konnect Config Store * Update how-to.md for Konnect Config Store * Update vaults.md added option for Konnect Config Store * config store docs * shotscraper, instructions, formatting * fix issues in API calls * add reference section, fix 404 --------- Co-authored-by: Angel <[email protected]> Co-authored-by: Angel <[email protected]>
- Loading branch information
1 parent
1161df3
commit d7bc77d
Showing
7 changed files
with
99 additions
and
4 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
Binary file modified
BIN
-88.5 KB
(58%)
app/assets/images/products/konnect/gateway-manager/konnect-vaults.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
--- | ||
title: Konnect Config Store | ||
--- | ||
|
||
|
||
You can store your sensitive data directly in {{site.konnect_short_name}} via the {{site.konnect_short_name}} Config Store. {{site.konnect_short_name}} Config Store is scoped to a control plane today and works directly with Gateway’s Vaults entity in Gateway Manager to easily manage security and governance policies. {{site.konnect_short_name}} Config Store is built with security in mind such that once a secret is stored in {{site.konnect_short_name}}, you cannot view the value again. This ensures that sensitive data is not visible in plain text anywhere. | ||
|
||
|
||
## Configure the {{site.konnect_short_name}} config store | ||
|
||
{% navtabs %} | ||
{% navtab API %} | ||
|
||
Create a config store entity in {{site.konnect_short_name}} and save the `config_store_id` from the response body. | ||
|
||
```sh | ||
curl -i -X POST https://{region}.api.konghq.com/v2/control-planes/{control-plane-id}/core-entities/vaults/ \ | ||
--header 'Authorization: Bearer{kpat_token}' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"name": "konnect" | ||
}' | ||
``` | ||
|
||
Using the `config_store_id` create a `POST` request to associate the config store with the vault. | ||
|
||
```sh | ||
curl -i -X POST https://{region}.api.konghq.com/v2/control-planes/{control-plane-id}/core-entities/vaults/ \ | ||
--header 'Authorization: Bearer {kpat_token}' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ | ||
"config":{ | ||
"config_store_id": "7f1daa91-d386-4eb8-83c9-a78099f9c9d5" | ||
}, | ||
"description": "Description of your vault", | ||
"name": "konnect", | ||
"prefix": "mysecretvault" | ||
}' | ||
``` | ||
|
||
{% endnavtab %} | ||
{% navtab UI %} | ||
1. In {% konnect_icon runtimes %} **Gateway Manager** select a control plane. | ||
1. Click **New vault**. | ||
1. Choose **Konnect** | ||
1. Enter the configuration settings for your vault and **Save**. | ||
|
||
{% endnavtab %} | ||
{% navtab decK %} | ||
|
||
Using the `config_store_id` create a `POST` request to associate the config store with the vault. | ||
|
||
```yaml | ||
_format_version: "3.0" | ||
vaults: | ||
- config: | ||
config_store_id: ee62068e-1843-49f8-ac22-40293b0a949d | ||
description: Storing secrets in Konnect | ||
name: konnect | ||
prefix: konnect-vault | ||
``` | ||
{% endnavtab %} | ||
{% endnavtabs %} | ||
## Reference {{site.konnect_short_name}} Config Store secrets | ||
You can now store secrets in the {{site.konnect_short_name}} Config Store and reference them throughout the control plane. For instance, a secret in the {{site.konnect_short_name}} Config Store named `secret-name` can hold multiple key-value pairs: | ||
|
||
```json | ||
{ | ||
"foo": "bar", | ||
"snip": "snap" | ||
} | ||
``` | ||
|
||
To make these secrets accessible to {{site.base_gateway}}, reference the environment variables using a specific URL format. For the example above, the references would be: | ||
|
||
```sh | ||
{vault://konnect/secret-name/foo} | ||
{vault://konnect/secret-name/snip} | ||
``` | ||
|
||
This allows {{site.base_gateway}} to recognize and retrieve the stored secrets. | ||
|
||
## Supported fields | ||
|
||
| Parameter | Field Name | Description | | ||
|---------------------|-------------------|---------------------------------------------------------------------------------------------------------| | ||
| `vaults.description` | Description | An optional description for your vault. | | ||
| `vaults.name` | Name | The type of vault. Accepts one of: `konnect`, `env`, `gcp`, `aws`, or `hcv`. | | ||
| `vaults.prefix` | Prefix | The reference prefix. You need this prefix to access secrets stored in this vault. For example, `{vault://konnect-vault/<some-secret>}`. | |
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