When you use linked secrets and any of the linked secrets have a tag, running infisical run fails with:
λ infisical run --env=dev --path=/MyFolder token=st.sometoken -l trace -- env
4:46PM DBG Trying to fetch secrets using service token
error: CallGetSecretsV3: Unable to complete api request [err=json: cannot unmarshal string into Go struct field EncryptedSecretV3.imports.secrets.tags of type struct { ID string "json:\"_id\""; Name string "json:\"name\""; Slug string "json:\"slug\""; Workspace string "json:\"workspace\"" }]
Having tags on secrets in the requested folder works like expected. No error is thrown.
To Reproduce
Steps to reproduce the behavior:
Create a Folder "Common"
Create a secret and tag it
Create a Folder "MyFolder"
Link "Common" in to "MyFolder"
Run infisical run --env=dev --path=/MyFolder --token=sometoken -l trace -- env
See error
Expected behavior
No errors and environment variables being printed.
Describe the bug
When you use linked secrets and any of the linked secrets have a tag, running
infisical run
fails with:Having tags on secrets in the requested folder works like expected. No error is thrown.
To Reproduce
Steps to reproduce the behavior:
infisical run --env=dev --path=/MyFolder --token=sometoken -l trace -- env
Expected behavior
No errors and environment variables being printed.
Platform you are having the issue on:
From SyncLinear.com | ENG-288