|
@@ -10,23 +10,23 @@ We support API key and trusted profile container authentication for this provide
|
|
|
|
|
|
|
|
To generate your key (for test purposes we are going to generate from your user), first got to your (Access IAM) page:
|
|
To generate your key (for test purposes we are going to generate from your user), first got to your (Access IAM) page:
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
On the left, click "IBM Cloud API Keys":
|
|
On the left, click "IBM Cloud API Keys":
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Press "Create an IBM Cloud API Key":
|
|
Press "Create an IBM Cloud API Key":
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Pick a name and description for your key:
|
|
Pick a name and description for your key:
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
You have created a key. Press the eyeball to show the key. Copy or save it because keys can't be displayed or downloaded twice.
|
|
You have created a key. Press the eyeball to show the key. Copy or save it because keys can't be displayed or downloaded twice.
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Create a secret containing your apiKey:
|
|
Create a secret containing your apiKey:
|
|
|
|
|
|
|
@@ -38,51 +38,51 @@ kubectl create secret generic ibm-secret --from-literal=apiKey='API_KEY_VALUE'
|
|
|
|
|
|
|
|
To create the trusted profile, first got to your (Access IAM) page:
|
|
To create the trusted profile, first got to your (Access IAM) page:
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
On the left, click "Access groups":
|
|
On the left, click "Access groups":
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Pick a name and description for your group:
|
|
Pick a name and description for your group:
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Click on "Access Policies":
|
|
Click on "Access Policies":
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Click on "Assign Access", select "IAM services", and pick "Secrets Manager" from the pick-list:
|
|
Click on "Assign Access", select "IAM services", and pick "Secrets Manager" from the pick-list:
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Scope to "All resources" or "Resources based on selected attributes", select "SecretsReader":
|
|
Scope to "All resources" or "Resources based on selected attributes", select "SecretsReader":
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Click "Add" and "Assign" to save the access group.
|
|
Click "Add" and "Assign" to save the access group.
|
|
|
|
|
|
|
|
Next, on the left, click "Trusted profiles":
|
|
Next, on the left, click "Trusted profiles":
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Press "Create":
|
|
Press "Create":
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Pick a name and description for your profile:
|
|
Pick a name and description for your profile:
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Scope the profile's access.
|
|
Scope the profile's access.
|
|
|
|
|
|
|
|
The compute service type will be "Red Hat OpenShift on IBM Cloud". Additional restriction can be configured based on cloud or cluster metadata, or if "Specific resources" is selected, restriction to a specific cluster.
|
|
The compute service type will be "Red Hat OpenShift on IBM Cloud". Additional restriction can be configured based on cloud or cluster metadata, or if "Specific resources" is selected, restriction to a specific cluster.
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
Click "Add" next to the previously created access group and then "Create", to associate the necessary service permissions.
|
|
Click "Add" next to the previously created access group and then "Create", to associate the necessary service permissions.
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
To use the container-based authentication, it is necessary to map the API server `serviceAccountToken` auth token to the "external-secrets" and "external-secrets-webhook" deployment descriptors. Example below:
|
|
To use the container-based authentication, it is necessary to map the API server `serviceAccountToken` auth token to the "external-secrets" and "external-secrets-webhook" deployment descriptors. Example below:
|
|
|
|
|
|
|
@@ -105,18 +105,18 @@ To find your serviceURL, under your Secrets Manager resource, go to "Endpoints"
|
|
|
Note: Use the url without the `/api` suffix that is presented in the UI.
|
|
Note: Use the url without the `/api` suffix that is presented in the UI.
|
|
|
See here for a list of [publicly available endpoints](https://cloud.ibm.com/apidocs/secrets-manager#getting-started-endpoints).
|
|
See here for a list of [publicly available endpoints](https://cloud.ibm.com/apidocs/secrets-manager#getting-started-endpoints).
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
### Secret Types
|
|
### Secret Types
|
|
|
We support the following secret types of [IBM Secrets Manager](https://cloud.ibm.com/apidocs/secrets-manager):
|
|
We support the following secret types of [IBM Secrets Manager](https://cloud.ibm.com/apidocs/secrets-manager):
|
|
|
|
|
|
|
|
-* `arbitrary`
|
|
|
|
|
|
|
+* `arbitrary`
|
|
|
* `username_password`
|
|
* `username_password`
|
|
|
* `iam_credentials`
|
|
* `iam_credentials`
|
|
|
* `imported_cert`
|
|
* `imported_cert`
|
|
|
* `public_cert`
|
|
* `public_cert`
|
|
|
* `private_cert`
|
|
* `private_cert`
|
|
|
-* `kv`
|
|
|
|
|
|
|
+* `kv`
|
|
|
|
|
|
|
|
To define the type of secret you would like to sync you need to prefix the secret id with the desired type. If the secret type is not specified it is defaulted to `arbitrary`:
|
|
To define the type of secret you would like to sync you need to prefix the secret id with the desired type. If the secret type is not specified it is defaulted to `arbitrary`:
|
|
|
|
|
|