Browse Source

Update scaleway json doc (#5429)

Signed-off-by: RobinFrcd <29704178+RobinFrcd@users.noreply.github.com>
Co-authored-by: Gergely Brautigam <skarlso777@gmail.com>
Robin Fourcade 6 months ago
parent
commit
b9cb966a76
1 changed files with 40 additions and 0 deletions
  1. 40 0
      docs/provider/scaleway.md

+ 40 - 0
docs/provider/scaleway.md

@@ -48,3 +48,43 @@ spec:
           key: id:<SECRET_UUID>
           version: latest_enabled
 ```
+
+### JSON Secret Values
+
+Scaleway Secret Manager supports storing JSON objects as secrets. You can access values using [gjson syntax](https://github.com/tidwall/gjson/blob/master/SYNTAX.md):
+
+Consider the following JSON object that is stored in a Scaleway secret:
+
+```json
+{
+  "first": "Tom", 
+  "last": "Anderson"
+}
+```
+
+This is an example on how you would look up keys in the above JSON object:
+
+```yaml
+apiVersion: external-secrets.io/v1
+kind: ExternalSecret
+metadata:
+  name: extract-data
+spec:
+  refreshInterval: 1h
+  secretStoreRef:
+    kind: SecretStore
+    name: secret-store
+  target:
+    name: secret-data
+    creationPolicy: Owner
+  data:
+  - secretKey: first_name
+    remoteRef:
+      key: id:<SECRET_UUID>
+      property: first # Tom
+  - secretKey: last_name
+    remoteRef:
+      key: id:<SECRET_UUID>
+      property: last # Anderson
+```
+