add the secret store to the bitwarden user config

This commit is contained in:
James Andariese 2023-07-12 13:19:44 -05:00
parent fc8367a072
commit 68e519a70f

View File

@ -1,24 +1,44 @@
{ ---
"kind": "SealedSecret", kind: SealedSecret
"apiVersion": "bitnami.com/v1alpha1", apiVersion: bitnami.com/v1alpha1
"metadata": { metadata:
"name": "bitwarden-user", name: bitwarden-user
"namespace": "external-secrets", namespace: external-secrets
"creationTimestamp": null creationTimestamp: null
}, spec:
"spec": { template:
"template": { metadata:
"metadata": { name: bitwarden-user
"name": "bitwarden-user", namespace: external-secrets
"namespace": "external-secrets", creationTimestamp: null
"creationTimestamp": null type: Opaque
}, encryptedData:
"type": "Opaque" BW_HOST: AgA5YbPiLEiJL44P5Dcjph4h/QbOQog1xb5TuJ9YDl1k8WY5GhX8uR4lB6ceyg3nl49S5KF88JAMUl1x3uXFSMhAZ+mdc1HJr6Czvr/A0KLeeX82jh1S2j0sGIjleXQxtJfUjQs4nWOXmjKWbju0aMzgJy3iLBcutFPEKKaPcmjm9SsC6ruz0KsEMa0CfH+lbGX6YmZQeDn+EdVt3dw+/vugFILsdOauVrvwJ862xnB7zNgpSCa4VWYO1xl4UsElAlRcTA9TowVfQcPyjwjzp+tBzHjBQFXfzhkfO1bJGjPrVVZydzVbMfBXrILP1BpHdlrxqEgfsJLV464lJix/4C17rA1Z4X4tBa5+ZT4aWPKX8OXhi/bXW7sA7yzyIZEFAEmfvaDbe8/2MfK9T4FbaEJ7rMCGz35CHsuX12PJdwHX2q8lGM5IdQsITvQoKD/mWGCK4iG6oWZ8q4zUU+wdZLqoWexyfKNMPncS7+5xnEsDB94B97j+VZtaS7M+Rxv8xYlFsguQzDUfYuFLo3imCgaNIZ2Ci24u775V9kKQmCVdMpCf5LtXwp1u56LSYy93lEGFanDe8dZ7iMZScwnQypW/Ytl9g3jVE5BGhlyFPscdv+5LzhVIhpbjT7jWg7lrJowDX39Y0OQpyaqrfRnYHqCg+WM2vVE0AVYzL3erpuKgAiofiQRMBLNal1CDi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mB2RlCwvfl89aJ3UfTd3uJYmOoOh8OfgXnF6n9ObBvY98ZWvZiTcK6fcmoyyjoTttP6rMTQjN3be+Aq5OwenwkfpuWYGELW5tPBOKqM31b7unX8ZdJFyjCfhWSvnRSujaSM6J9yKJDJy5wNA1twmaSpnmUlG0zznGS3X4m2pf0frAybqPF5zZSIuGwQZKKiSpWpTM36i78xzczP4w9HR+znoLuSIr1QLltkpdU9CiP+4G8iLNv8AfQ9kk4M1FfwZV4EVXP78UZ1GHPJijAvN+mUuTkIiRAxcATagUPahfpRunNNjerwiectf8Mnub4IKKpRawP+F2w3A0dmNwBMTY+POPCpRZfT3Cx4gIlsHUhwAFy5pmtPlm4xYAF9dzWBvrgOALuhFdRvLfLBgVDx0dMHT7wXCBqXZqK3/vFkWGdZ90aI9sBXfLlL1ed4GDYNzUVa4QjnjWAZlxVvcbvT6bXrN9DtRzUZY15RdNH5LLIWpm0xUKhUrbCh7fefzJ66zSVRPJDNcmXTb1h9Ex4J11qlPwjonex1w4EZIf6eOdA6qVhwb8WG9nRTPwJgq3dl+0FLubFwPUbnmzJwicUfRGDEQKqORayrI//dwun2A=" apiVersion: external-secrets.io/v1beta1
} kind: ClusterSecretStore
} metadata:
} name: bitwarden-login
spec:
provider:
webhook:
url: "http://127.0.0.1:8087/object/item/{{ .remoteRef.key }}"
headers:
Content-Type: application/json
result:
jsonPath: "$.data.login.{{ .remoteRef.property }}"
---
apiVersion: external-secrets.io/v1beta1
kind: ClusterSecretStore
metadata:
name: bitwarden-fields
spec:
provider:
webhook:
url: "http://127.0.0.1:8087/object/item/{{ .remoteRef.key }}"
result:
jsonPath: "$.data.fields[?@.name==\"{{ .remoteRef.property }}\"].value"