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

GH-764: Add signing keys data source #839

Merged
merged 2 commits into from
Sep 19, 2023
Merged

GH-764: Add signing keys data source #839

merged 2 commits into from
Sep 19, 2023

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Sep 19, 2023

🔧 Changes

As requested in #764, we're adding a data source for retrieving application signing keys.

The usage will look similar to:

data "auth0_signing_keys" "my_keys" {}

# Example on how to get the current key from the data source.
output "current_key" {
  value = try(
    element([for key in data.auth0_signing_keys.my_keys.signing_keys : key.kid if key.current], 0),
    "No current key found"
  )
}

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught marked this pull request as ready for review September 19, 2023 08:58
@sergiught sergiught requested a review from a team as a code owner September 19, 2023 08:58
@codecov-commenter
Copy link

Codecov Report

Merging #839 (8cf7943) into v1 (fd294eb) will increase coverage by 0.04%.
The diff coverage is 96.55%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##               v1     #839      +/-   ##
==========================================
+ Coverage   89.85%   89.89%   +0.04%     
==========================================
  Files          99      101       +2     
  Lines       13696    13783      +87     
==========================================
+ Hits        12306    12390      +84     
- Misses        987      989       +2     
- Partials      403      404       +1     
Files Changed Coverage Δ
internal/provider/provider.go 100.00% <ø> (ø)
internal/auth0/signingkey/data_source.go 95.77% <95.77%> (ø)
internal/auth0/signingkey/flatten.go 100.00% <100.00%> (ø)

@sergiught sergiught merged commit 76c591b into v1 Sep 19, 2023
4 checks passed
@sergiught sergiught deleted the GH-764-data-keys branch September 19, 2023 14:12
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.

4 participants