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

Use bad json in slackwebhooks #2193

Merged
merged 4 commits into from
Dec 11, 2023
Merged

Use bad json in slackwebhooks #2193

merged 4 commits into from
Dec 11, 2023

Conversation

rosecodym
Copy link
Contributor

Description:

We're seeing some misbehavior from the existing SlackWebhook detector. The current implementation relies on undocumented Slack API behavior, and this version relies on defined behavior instead.

HOWEVER I'm still not sure what exactly #1761 was solving, and I don't want to change things until I can make sure that my new solution solves it too. (Also this doesn't build because I need to juggle our test secrets anyway.)

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@ahrav ahrav marked this pull request as ready for review December 11, 2023 22:09
@ahrav ahrav requested a review from a team as a code owner December 11, 2023 22:09
@ahrav ahrav merged commit 405f356 into main Dec 11, 2023
9 checks passed
@ahrav ahrav deleted the use-bad-json-in-slackwebhooks branch December 11, 2023 23:04
haraldh pushed a commit to matter-labs/vault-auth-tee that referenced this pull request Dec 14, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[trufflesecurity/trufflehog](https://togithub.com/trufflesecurity/trufflehog)
| action | patch | `v3.63.2` -> `v3.63.3` |

---

### Release Notes

<details>
<summary>trufflesecurity/trufflehog
(trufflesecurity/trufflehog)</summary>

###
[`v3.63.3`](https://togithub.com/trufflesecurity/trufflehog/releases/tag/v3.63.3)

[Compare
Source](https://togithub.com/trufflesecurity/trufflehog/compare/v3.63.2...v3.63.3)

#### What's Changed

- Use forked sevenzip by
[@&#8203;bill-rich](https://togithub.com/bill-rich) in
[trufflesecurity/trufflehog#2180
- fixing how to rotate URL by
[@&#8203;dylanTruffle](https://togithub.com/dylanTruffle) in
[trufflesecurity/trufflehog#2183
- \[fixup] - Skip trying to determine MIME type for directories by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2178
- \[feat] - Remove go-git dependency by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2174
- remove unnecessary Git cmd check by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2175
- \[chore] - use https for verification endpoints by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2185
- allow targets for the source manager by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2182
- Deprecate some detectors by
[@&#8203;dustin-decker](https://togithub.com/dustin-decker) in
[trufflesecurity/trufflehog#2186
- \[chore] - update regex by [@&#8203;ahrav](https://togithub.com/ahrav)
in
[trufflesecurity/trufflehog#2184
- \[chore] - Compile regex once by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2176
- Remove Java archives from ignored extensions by
[@&#8203;rosecodym](https://togithub.com/rosecodym) in
[trufflesecurity/trufflehog#2188
- \[chore] - Refactor common code into a separate function by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2179
- \[feat] - add metrics for gitlab by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2190
- \[bug] - move logic to main Chunks method by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2194
- \[fixup] - skip files in the archive handler by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2195
- Check private keys concurrently by
[@&#8203;rgmz](https://togithub.com/rgmz) in
[trufflesecurity/trufflehog#2139
- Propagate TruffleHog context to handlers by
[@&#8203;rgmz](https://togithub.com/rgmz) in
[trufflesecurity/trufflehog#2191
- \[bug] - close file after reading by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2203
- Use bad json in slackwebhooks by
[@&#8203;rosecodym](https://togithub.com/rosecodym) in
[trufflesecurity/trufflehog#2193
- Add disk buffer tempfile cleanup by
[@&#8203;codevbus](https://togithub.com/codevbus) in
[trufflesecurity/trufflehog#2130
- \[chore] Remove omitempty tags on JobProgressMetrics and UnitMetrics
by [@&#8203;mcastorina](https://togithub.com/mcastorina) in
[trufflesecurity/trufflehog#2204
- Fix azurestorage detector by [@&#8203;0x1](https://togithub.com/0x1)
in
[trufflesecurity/trufflehog#2207
- fix and refactor browserstack detector by
[@&#8203;0x1](https://togithub.com/0x1) in
[trufflesecurity/trufflehog#2208
- \[chore] Remove unnecessary string conversion in tefter detector by
[@&#8203;mcastorina](https://togithub.com/mcastorina) in
[trufflesecurity/trufflehog#2209
- Update metabase verification to check for a valid JSON response by
[@&#8203;mcastorina](https://togithub.com/mcastorina) in
[trufflesecurity/trufflehog#2210

**Full Changelog**:
trufflesecurity/trufflehog@v3.63.2...v3.63.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/matter-labs/vault-auth-tee).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuODcuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants