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

databroker: use contextual logging for errors, use original record type for encryption #3096

Merged
merged 2 commits into from Mar 4, 2022

Conversation

calebdoxsey
Copy link
Contributor

Summary

Currently when decrypting records in the databroker we modify the type URL to match the record type. It is sometimes useful to store records with a different type URL from the type URL used to represent the data itself. This PR updates the decryption code to preserve the type URL on the record.

Also we weren't using the context when logging errors.

Related issues

https://github.com/pomerium/internal/issues/799

Checklist

  • reference any related issues
  • updated docs
  • updated unit tests
  • updated UPGRADING.md
  • add appropriate tag (improvement / bug / etc)
  • ready for review

@calebdoxsey calebdoxsey added the bug Something isn't working label Mar 3, 2022
@calebdoxsey calebdoxsey requested a review from a team as a code owner March 3, 2022 20:20
@calebdoxsey calebdoxsey requested a review from wasaga March 3, 2022 20:20
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 64.457% when pulling 538a0a2 on cdoxsey/databroker-types into f71d0a9 on main.

@travisgroth travisgroth merged commit aaff52f into main Mar 4, 2022
@travisgroth travisgroth deleted the cdoxsey/databroker-types branch March 4, 2022 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants