Skip to content

store: secret.Metadata/secret.SetMetadata and store.GetAllMetadata#130

Merged
Benehiko merged 2 commits intomainfrom
getallmetadata
Jul 24, 2025
Merged

store: secret.Metadata/secret.SetMetadata and store.GetAllMetadata#130
Benehiko merged 2 commits intomainfrom
getallmetadata

Conversation

@Benehiko
Copy link
Member

@Benehiko Benehiko commented Jul 23, 2025

This patch adds a new secret.Metadata() and secret.SetMetdata()
function to the secret interface. This allows the underlying store
from storing non-sensitive metadata and retrieving only the metadata.

This patch also changes the behavior of the store.GetAll function so that it
always sets metadata, but does not set the actual secret from the
underlying keychain.

It's very costly to read each secret from the keychain since each value
needs to be decrypted. On macOS the user would be prompted for each value
decrypted.

@Benehiko Benehiko force-pushed the getallmetadata branch 2 times, most recently from 2e4901e to 8e6077f Compare July 23, 2025 07:35
@Benehiko Benehiko changed the title store/keychain: refactor store.GetAll -> store.GetAllMetadata store/keychain: secret.Metadata/secret.SetMetadata and store.GetAllMetadata Jul 23, 2025
@Benehiko Benehiko changed the title store/keychain: secret.Metadata/secret.SetMetadata and store.GetAllMetadata store: secret.Metadata/secret.SetMetadata and store.GetAllMetadata Jul 23, 2025
@Benehiko Benehiko requested review from joe0BAB and wmluke July 23, 2025 07:36
…tadata

This patch adds a new `secret.Metadata()` and `secret.SetMetdata()`
function to the `secret` interface. This allows the underlying store
from storing non-sensitive metadata and retrieving only the metadata.

This patch also changes the behavior of the store.GetAll function so that it
always sets metadata, but does not set the actual secret from the
underlying keychain.

It's very costly to read each secret from the keychain since each value
needs to be decrypted. On macOS the user would be prompted for each value
decrypted.

Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
@Benehiko Benehiko force-pushed the getallmetadata branch 3 times, most recently from 913a4ed to 352d1b1 Compare July 23, 2025 12:35
@Benehiko Benehiko requested a review from joe0BAB July 23, 2025 12:45
@Benehiko Benehiko merged commit 5eca49c into main Jul 24, 2025
20 checks passed
@Benehiko Benehiko deleted the getallmetadata branch July 24, 2025 07:38
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