Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Fields not available #11

Open
ppodevlabs opened this issue Nov 23, 2022 · 3 comments
Open

Custom Fields not available #11

ppodevlabs opened this issue Nov 23, 2022 · 3 comments

Comments

@ppodevlabs
Copy link

ppodevlabs commented Nov 23, 2022

It would be nice if the provider make available the custom fields from the secrets.

Maybe iterating over the different types of the custom fields as there is no method to get all of them, and then joining those into a custom field as the record from core return.

Do you accept MR? we would be happy to help with this provider.

@idimov-keeper
Copy link
Contributor

idimov-keeper commented Nov 23, 2022

Please check secretsmanager_field data source and our example.
Implementing a dynamic resource is too complex (esp. Create/Update) and requires additional internal logic (ex. not allowing more than one password field between fields[] and custom[] sections etc.)

@heretic098
Copy link

While I'm here, it is possible to modify the notes field using Terraform. The notes are available using the python SDK as well so you can add things you might want to the notes field e.g. as a yaml file and then read it back using python. I don't know if the other SDKs allow this but the notes are not available from the ksm command line utility which makes me sad.

@idimov-keeper
Copy link
Contributor

Notes are available for each record type both as a read-only data-source, and as updatable resource.
Please check our examples section for usage. Usually in these sample configurations we assign the text/string value directly
notes = "My Notes"
but you could use function like file() to read it from file - see the commented out section for the credential
# credential = file("~/.keeper/credential")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants