1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00

Update 1password-automation.md (#1895)

updating docs to reflect the correct command and template format as per
https://developer.1password.com/docs/cli/create-item

Signed-off-by: Ahsan Gondal <ahsangondal15@gmail.com>

Signed-off-by: Ahsan Gondal <ahsangondal15@gmail.com>
This commit is contained in:
Ahsan Gondal 2023-01-10 22:02:27 +05:00 committed by GitHub
parent 11c61d8581
commit 7afa741246
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,29 +85,47 @@ _Also see [examples below](#examples) for matching SecretStore and ExternalSecre
* Create `file.json` with the following contents, swapping in your keys and values. Note: `section.name`'s and `section.title`'s values are ignored by the Operator, but cannot be empty for the `op` CLI
```json
{
"sections": [
{
"title": "my-title",
"vault": {
"id": "vault-id"
},
"category": "LOGIN",
"fields": [
{
"k": "concealed",
"n": "MY_ENV_VAR1",
"t": "MY_ENV_VAR1",
"v": "value1"
"id": "username",
"type": "STRING",
"purpose": "USERNAME",
"label": "username",
"value": "a-username"
},
{
"k": "concealed",
"n": "MY_ENV_VAR2",
"t": "MY_ENV_VAR2",
"v": "value2"
}
],
"name": "EXTERNAL-SECRETS",
"title": "EXTERNAL-SECRETS"
"id": "password",
"type": "CONCEALED",
"purpose": "PASSWORD",
"label": "password",
"password_details": {
"strength": "TERRIBLE"
},
"value": "a-password"
},
{
"id": "notesPlain",
"type": "STRING",
"purpose": "NOTES",
"label": "notesPlain",
"value": "notesPlain"
},
{
"id": "customField",
"type": "CONCEALED",
"purpose": "custom",
"label": "custom",
"value": "custom-value"
}
]
}
```
* Run `op create item password --template file.json --vault my-vault --title my-item`
* Run `op item create --template file.json`
#### Scripting (Document type)
* Unfortunately the `op` CLI doesn't seem to support uploading multiple files to the same Item, and the current Go lib has a [bug](https://github.com/1Password/connect-sdk-go/issues/45). `op` can be used to create a Document type Item with one file in it, but for now it's necessary to add multiple files to the same Document via the GUI.