Skip to content

refactor(store): move ErrEmptySecret to x/secrets - #696

Merged
joe0BAB merged 1 commit into
mainfrom
refactor/empty-secret-in-x-secrets
Oct 14, 2026
Merged

joe0BAB merged 1 commit into
mainfrom
refactor/empty-secret-in-x-secrets

Conversation

@joe0BAB

@joe0BAB joe0BAB commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Define the sentinel next to ErrNotFound and ErrAccessDenied, and alias it from store the way ErrCredentialNotFound already aliases ErrNotFound. Packages that import x/secrets can now match an empty-secret error without importing store. errors.Is(err, store.ErrEmptySecret) keeps matching, and the message is unchanged.

Define the sentinel next to ErrNotFound and ErrAccessDenied, and alias
it from store the way ErrCredentialNotFound already aliases ErrNotFound.
Packages that import x/secrets can now match an empty-secret error
without importing store. errors.Is(err, store.ErrEmptySecret) keeps
matching, and the message is unchanged.
@joe0BAB
joe0BAB marked this pull request as ready for review October 14, 2026 11:27

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@joe0BAB
joe0BAB merged commit e3da815 into main Oct 14, 2026
32 checks passed
@joe0BAB
joe0BAB deleted the refactor/empty-secret-in-x-secrets branch October 14, 2026 11:32
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.

3 participants