Skip to content

Deprecate SquareUp Detector#4855

Merged
camgunz merged 4 commits into
mainfrom
update/detector/deprecate-square-up-detector
Apr 10, 2026
Merged

Deprecate SquareUp Detector#4855
camgunz merged 4 commits into
mainfrom
update/detector/deprecate-square-up-detector

Conversation

@nabeelalam

@nabeelalam nabeelalam commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Description:

This PR deprecates the SquareUp detector.

The verification endpoint (GET /oauth2/authorize) returns inconsistent status codes regardless of whether the secret is valid, causing secrets to flip between "live" and "rotated" repeatedly.

Also, the sq0idp- prefix identifies a SquareUp OAuth Client ID, which is a public identifier, not a secret. The actual secret is being handled by the SquareApp detector.

Changes:

  • Marked Squareup as [deprecated = true] in detectors.proto and regenerated detectors.pb.go
  • Removed squareup.Scanner registration from defaults.go
  • Deleted pkg/detectors/squareup/

Checklist:

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

Note

Low Risk
Low risk: this removes a detector and its tests from the default detector set, mainly impacting detection coverage and any downstream code relying on Squareup results.

Overview
Deprecates and effectively disables the Squareup detector. The Squareup enum value in proto/detectors.proto is now marked deprecated (with regenerated detectors.pb.go reflecting this).

The squareup detector implementation and its unit/integration tests under pkg/detectors/squareup/ are deleted, and squareup.Scanner{} is removed from pkg/engine/defaults/defaults.go so it no longer runs by default.

Written by Cursor Bugbot for commit 6542ab1. This will update automatically on new commits. Configure here.

@nabeelalam nabeelalam self-assigned this Apr 1, 2026
@nabeelalam nabeelalam requested review from a team April 1, 2026 05:32
@nabeelalam nabeelalam requested review from a team as code owners April 1, 2026 05:32

@MuneebUllahKhan222 MuneebUllahKhan222 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG 🚀

@camgunz camgunz merged commit afda467 into main Apr 10, 2026
14 checks passed
@camgunz camgunz deleted the update/detector/deprecate-square-up-detector branch April 10, 2026 14:04
MuneebUllahKhan222 pushed a commit that referenced this pull request May 29, 2026
* deprecated the squareup detector

* regenerated detectors.pb.go after merging latest main changes

---------

Co-authored-by: Charlie Gunyon <charlie.gunyon@trufflesec.com>
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