Skip to content

Vault latency feature flag and proto changes - #2452

Open
russell-stern wants to merge 9 commits into
mainfrom
vault_latency
Open

russell-stern wants to merge 9 commits into
mainfrom
vault_latency

Conversation

@russell-stern

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ API Diff Results - github.com/smartcontractkit/chainlink-common

✅ Compatible Changes (4)

pkg/capabilities/actions/vault (1)
  • ErrSecretVersionSkew — ➕ Added
pkg/capabilities/actions/vault.(*GetSecretsRequest) (1)
  • GetGetSecretsDirectly — ➕ Added
pkg/capabilities/actions/vault.GetSecretsRequest (1)
  • GetSecretsDirectly — ➕ Added
pkg/settings/cresettings.Workflows (1)
  • FeatureVaultGetSecretsDirectlyActivePeriod — ➕ Added

📄 View full apidiff report

@russell-stern
russell-stern marked this pull request as ready for review October 20, 2026 13:41
@russell-stern
russell-stern requested a review from a team as a code owner October 20, 2026 13:41
type invalidRecipientKeyError struct{ msg string }

func (e invalidRecipientKeyError) Error() string { return e.msg }
func (e invalidRecipientKeyError) Is(target error) bool { return target == ErrInvalidRecipientKey }

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.

Shouldn't this match itself too?

// retried under a new request ID.
var ErrSecretVersionSkew = errors.New(SecretVersionSkewMessage)

func IsSecretVersionSkew(err error) bool {

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.

Could we support errors.Is for ErrSecretVersionSkew instead?

Comment on lines +99 to +105
type Decrypter interface {
Decrypt(encrypted []byte) ([]byte, error)
}

type DecryptFunc func(encrypted []byte) ([]byte, error)

func (f DecryptFunc) Decrypt(encrypted []byte) ([]byte, error) { return f(encrypted) }

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.

Could these be unexported?

Suggested change
type Decrypter interface {
Decrypt(encrypted []byte) ([]byte, error)
}
type DecryptFunc func(encrypted []byte) ([]byte, error)
func (f DecryptFunc) Decrypt(encrypted []byte) ([]byte, error) { return f(encrypted) }
type decrypter interface {
Decrypt(encrypted []byte) ([]byte, error)
}
type decryptFunc func(encrypted []byte) ([]byte, error)
func (f decryptFunc) Decrypt(encrypted []byte) ([]byte, error) { return f(encrypted) }

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.

oh I think the func adapter could be moved to the test file too

This branch has not been deployed

No deployments
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