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

Add function for HMAC SHA256 #1760

Merged

Conversation

thevilledev
Copy link
Contributor

Useful for cases where data in Consul has to be rendered into HMAC SHA256 hashes, where the shared key is stored in Vault. Example snippet:

{{ range ls "foo" }}
{{ $msg := .Value -}}
{{ with secret "secret/foo" }}{{ .Data.data.bar | hmacSHA256Hex $msg }}{{ end -}}
{{ end }}

Fixes #1701.

@thevilledev thevilledev requested a review from a team as a code owner June 3, 2023 20:20
@thevilledev thevilledev requested review from steshageo and removed request for a team June 3, 2023 20:20
@roncodingenthusiast roncodingenthusiast merged commit 4d2281b into hashicorp:main Jun 21, 2023
27 checks passed
@thevilledev thevilledev deleted the feature/hmac-sha256-function branch June 21, 2023 16:49
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.

[feature request] Support hmac encoding
2 participants