Skip to content

feat: Add allowing retrieving all fields for an item#1567

Merged
djmb merged 1 commit intobasecamp:mainfrom
capripot:add_all_fields_one_password_retrieval
Jun 17, 2025
Merged

feat: Add allowing retrieving all fields for an item#1567
djmb merged 1 commit intobasecamp:mainfrom
capripot:add_all_fields_one_password_retrieval

Conversation

@capripot
Copy link
Contributor

@capripot capripot commented May 23, 2025

With 1Password, there is a way to retrieve all fields of a given item directly without having to enumerate them.

Allowing this when passing no arguments for secrets fetch command.

For example:

kamal secrets fetch --adapter 1password --account ABCD1234 --from Vault/myitem

would return the expected same JSON.

That can be particularly useful when you are not using rails credentials and have a lot of keys set in .kamal/secrets.

That would also allow the current example to shorten:

SECRETS=$(kamal secrets fetch --adapter 1password --account my-account --from MyVault/MyItem)
KAMAL_REGISTRY_PASSWORD=$(kamal secrets extract KAMAL_REGISTRY_PASSWORD $SECRETS)
RAILS_MASTER_KEY=$(kamal secrets extract RAILS_MASTER_KEY $SECRETS)

With 1Password, there is a way to retrieve all fields
of a given item directly without having to enumerate them.

Allowing this when passing no arguments for secrets fetch
command.
@djmb djmb merged commit 4b0afdf into basecamp:main Jun 17, 2025
6 of 7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants