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

Streamline Throwable safety handling #2224

Merged
merged 2 commits into from
Apr 25, 2022

Conversation

carterkozak
Copy link
Contributor

Throwable are considered unsafe, and getMessage returns the
safety of the throwable itself. This allows us to annotate
a catch block as @DoNotLog in cases that an exception
may contain credential information.

This change also includes the guava
Throwables.getStackTraceAsString utility as a safety-passthrough
method.

==COMMIT_MSG==
Streamline Throwable safety handling
==COMMIT_MSG==

Throwable are considered unsafe, and getMessage returns the
safety of the throwable itself. This allows us to annotate
a catch block as `@DoNotLog` in cases that an exception
may contain credential information.

This change also includes the guava
`Throwables.getStackTraceAsString` utility as a safety-passthrough
method.
@carterkozak carterkozak requested a review from fawind April 25, 2022 15:55
@changelog-app
Copy link

changelog-app bot commented Apr 25, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Streamline Throwable safety handling

Check the box to generate changelog(s)

  • Generate changelog entry

@bulldozer-bot bulldozer-bot bot merged commit b3385c0 into develop Apr 25, 2022
@bulldozer-bot bulldozer-bot bot deleted the ckozak/streamline_throwable_safety branch April 25, 2022 16:26
@svc-autorelease
Copy link
Collaborator

Released 4.113.0

This was referenced Apr 25, 2022
bulldozer-bot bot pushed a commit to palantir/witchcraft-api that referenced this pull request Apr 25, 2022
###### _excavator_ is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

# Release Notes
## 4.113.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Improvement | Streamline Throwable safety handling | palantir/gradle-baseline#2224 |


## 4.114.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Improvement | Disable intellij's ClassCanBeRecord inspection | palantir/gradle-baseline#2225 |



To enable or disable this check, please contact the maintainers of Excavator.
This was referenced Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants