Scanner deep dive
Planetscale Analyzer
Open sourceWhat does this analyzer do?
- Purpose
- It helps explain what a credential may be able to do. Atlas describes the analyzer’s code and hasn’t tested a credential here.
- How does it assess access?
- The analyzer tests the key against PlanetScale, one permission at a time. Access method details · Source (planetscale.go:185)
- What can I look up?
- Explore the permissions and resource types named in the code.
Catalog coverage · maintainer view
- Vendor API links
- None yet
- Explanations
- 34 of 34 permission and resource names
- Access model
- Classified 2026-11-16
Built on the Planet Scale detector
The detector finds and verifies the key. This analyzer maps it.
1 · Detector finds
Candidates near “pscale_tkn_”, 2 patterns.
Planet Scaleplanetscale.go:30 (opens TruffleHog source on GitHub)
2 · Detector verifies
GET https://api.planetscale.com/v1/organizations
2xx means verified.
How it verifiesplanetscale.go:61 (opens TruffleHog source on GitHub)planetscale.go:72 (opens TruffleHog source on GitHub)
3 · This analyzer maps
32 permission names across 2 resource types.
Tests each permission
Access model · AI-assisted classification · No credential tested
How Planetscale Analyzer decides what a key can do
This describes how TruffleHog’s code assigns permissions. It is not a statement of what the provider actually grants a particular key.
Runs HTTP tests for each scope, including branch and backup scopes.
Reviewed classification: Runs HTTP tests per scope, including branch and backup scopes.
Tries each permission against the provider and records whether it was allowed or denied.
Pinned revision db665f0c24c6 · Confidence high · Classified 2026-11-16
Compare all 44 analyzersParsed source walkthrough · No credential tested
Follow Planetscale Analyzer from inputs to evidence
After a related detector successfully validates a candidate, this analyzer is an optional next layer. The steps below explain code found in this package. They do not run it or establish the access of a credential.
- Input field names
- 2
- Direct HTTP request sites
- 2
- Go implementation files scanned
- 2
- Configured JSON definitions
- 19
1. Understand the inputs
These names are read from the analyzer’s credential-info map. A name can be required, optional, or conditional; this inventory does not resolve that control flow. Field values are never shown.
2. Inspect the request definitions
A request site is a Go request-construction call, not an individual permission check. One helper may build many requests. 0 of 2 sites have a directly written address; dynamic addresses remain unresolved. Use the configured-check reader below for the normalized JSON response rules; other response interpretation still needs source review.
Browse 2 request sites
Method unresolved · Dynamic address — inspect source
Inspect source · planetscale.go:124This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.
GET · Dynamic address — inspect source
Inspect source · planetscale.go:530This identifies a request definition. No response rule, granted permission, or resource binding is inferred from its method or address.
This package also contains 2 JSON/YAML configuration files. Their definitions are not counted as Go request sites. Use the configured-check reader below.
Explore configured checks
Each check below is a request defined in this analyzer’s embedded JSON, with the response codes it treats as access granted or denied. Nothing on this page sends a request.
- A check is labelled with a permission name, but one check is not proof that a key has that permission.
- The runner checks the “granted” codes first, then the “denied” codes. Any other code is reported as an error, not as a result.
- Payload values are not shown. The HTTP method alone doesn’t say whether a request changes anything.
Filters update results immediately. Counts show matches with the other filters applied.
19 matching results
Showing 1–10 of 19 matching definitions · 19 in this configuration
read_organizationGET
GET https://api.planetscale.com/v1/organizations/%s
The address has placeholders that this page leaves unfilled.
- Granted when
- 200
- Denied when
- 403
read_invoicesGET
GET https://api.planetscale.com/v1/organizations/%s/invoices
The address has placeholders that this page leaves unfilled.
- Granted when
- 200
- Denied when
- 403
read_databasesGET
GET https://api.planetscale.com/v1/organizations/%s/databases
The address has placeholders that this page leaves unfilled.
- Granted when
- 200
- Denied when
- 403
read_audit_logsGET
GET https://api.planetscale.com/v1/organizations/%s/audit-log
The address has placeholders that this page leaves unfilled.
- Granted when
- 200
- Denied when
- 403
create_databasesPOST
POST https://api.planetscale.com/v1/organizations/%s/databases
The address has placeholders that this page leaves unfilled.
- Granted when
- 422
- Denied when
- 403
read_oauth_applicationsGET
GET https://api.planetscale.com/v1/organizations/%s/oauth-applications
The address has placeholders that this page leaves unfilled.
- Granted when
- 200
- Denied when
- 403
write_oauth_tokensPOST
POST https://api.planetscale.com/v1/organizations/%s/oauth-applications/%s/token
The address has placeholders that this page leaves unfilled.
- Granted when
- 422
- Denied when
- 403
read_oauth_tokensGET
GET https://api.planetscale.com/v1/organizations/%s/oauth-applications/%s/tokens
The address has placeholders that this page leaves unfilled.
- Granted when
- 200
- Denied when
- 403
read_databaseGET
GET https://api.planetscale.com/v1/organizations/%s/databases/%s
The address has placeholders that this page leaves unfilled.
- Granted when
- 200
- Denied when
- 403
write_databasePATCH
PATCH https://api.planetscale.com/v1/organizations/%s/databases/%s
The address has placeholders that this page leaves unfilled.
- Granted when
- 400
- Denied when
- 403
Sends a payload (values not shown).
Pinned revision 23255461ddf3.
3. Read the result and its limits
Explore the permission names and resource types below. They are independent source lists. This walkthrough does not connect every request to a permission or resource, and does not infer access from an HTTP success.
Inspect 2 binding construction sites
These links point to Binding literals or BindAllPermissions helper calls. The permission-to-resource relationships and conditions have not been normalized.
Pinned revision 23255461ddf3 · analyzer-workflow-sites-v1. Comments, string contents, tests and testdata are excluded from code-site matching. SDK resolution, call order, response rules, required inputs and permission/resource bindings remain outside this parser.
Permissions and resources
How the result is built: one key, the resources it reaches, and the permissions recorded on each.
1 key
A verified PlanetScale key
From the detector
Resource types
- Organization
- Database
Filled in only when a key is analyzed
32 permission names on each
- read_organization
- read_invoices
- read_databases
- read_audit_logs
- create_databases
- delete_databases
- read_oauth_applications
- write_oauth_tokens
- read_oauth_tokens
- delete_oauth_tokens
- read_database
- write_database
- +20 more in the list below
32 permission names · 2 resource types · 34/34 names explained
Permission names describe actions or scopes checked by this analyzer. Resource types describe the kinds of objects it can report. They are separate source lists; a permission-to-resource binding has not been extracted. Available access depends on the credential and provider response.
Showing 34 of 34 capability names
Where the explanations come from
- Atlas wording (34): Atlas wording, not the provider’s text (written with AI, not yet reviewed)
Inspect analyzer sourcePlanetScale service token permissions
Resource types
Showing 2 of 2 matching resource types.
OrganizationExplanation available
A PlanetScale organization the token can reach.
Atlas wording
DatabaseExplanation available
A database in that organization.
Atlas wording
Permissions
Grouped by name prefix for easier browsing. These display groups are not official provider categories or permission-to-resource bindings.
Name prefix “read” 11 names
read_organizationExplanation available
Read the organization. The analyzer tests it with GET /v1/organizations/{…}.
Atlas wording
read_invoicesExplanation available
Read invoices. The analyzer tests it with GET /v1/organizations/{…}/invoices.
Atlas wording
read_databasesExplanation available
List the organization's databases. The analyzer tests it with GET /v1/organizations/{…}/databases.
Atlas wording
read_audit_logsExplanation available
Read audit logs. The analyzer tests it with GET /v1/organizations/{…}/audit-log.
Atlas wording
read_oauth_applicationsExplanation available
Read OAuth applications. The analyzer tests it with GET /v1/organizations/{…}/oauth-applications.
Atlas wording
read_oauth_tokensExplanation available
Read OAuth tokens. The analyzer tests it with GET /v1/organizations/{…}/oauth-applications/{…}/tokens.
Atlas wording
read_databaseExplanation available
Read a database. The analyzer tests it with GET /v1/organizations/{…}/databases/{…}.
Atlas wording
read_branchExplanation available
Read database branches. The analyzer tests it with GET /v1/organizations/{…}/databases/{…}/branches.
Atlas wording
read_deploy_requestExplanation available
Read deploy requests. The analyzer tests it with GET /v1/organizations/{…}/databases/{…}/deploy-requests.
Atlas wording
read_commentExplanation available
Read deploy request comments. The analyzer has no test call for it.
Atlas wording
read_backupsExplanation available
Read backups. The analyzer tests it with GET /v1/organizations/{…}/databases/{…}/branches/{…}/backups.
Atlas wording
Name prefix “delete” 9 names
delete_databasesExplanation available
Delete databases. The analyzer has no test call for it.
Atlas wording
delete_oauth_tokensExplanation available
Delete OAuth tokens. The analyzer has no test call for it.
Atlas wording
delete_databaseExplanation available
Delete a database. The analyzer has no test call for it.
Atlas wording
delete_branchExplanation available
Delete development branches. The analyzer has no test call for it.
Atlas wording
delete_branch_passwordExplanation available
Delete passwords on development branches. The analyzer has no test call for it.
Atlas wording
delete_production_branchExplanation available
Delete production branches. The analyzer has no test call for it.
Atlas wording
delete_production_branch_passwordExplanation available
Delete passwords on production branches. The analyzer has no test call for it.
Atlas wording
delete_backupsExplanation available
Delete development branch backups. The analyzer has no test call for it.
Atlas wording
delete_production_branch_backupsExplanation available
Delete production branch backups. The analyzer has no test call for it.
Atlas wording
Name prefix “create” 4 names
create_databasesExplanation available
Create databases. The analyzer tests it with POST /v1/organizations/{…}/databases.
Atlas wording
create_branchExplanation available
Create database branches. The analyzer tests it with POST /v1/organizations/{…}/databases/{…}/branches.
Atlas wording
create_deploy_requestExplanation available
Open deploy requests. The analyzer tests it with POST /v1/organizations/{…}/databases/{…}/deploy-requests.
Atlas wording
create_commentExplanation available
Comment on deploy requests. The analyzer has no test call for it.
Atlas wording
Name prefix “write” 3 names
write_oauth_tokensExplanation available
Create OAuth tokens. The analyzer tests it with POST /v1/organizations/{…}/oauth-applications/{…}/token.
Atlas wording
write_databaseExplanation available
Change a database's settings. The analyzer tests it with PATCH /v1/organizations/{…}/databases/{…}.
Atlas wording
write_backupsExplanation available
Create backups. The analyzer has no test call for it.
Atlas wording
Name prefix “connect” 2 names
connect_branchExplanation available
Connect to development branches. The analyzer tests it with POST /v1/organizations/{…}/databases/{…}/branches/{…}/passwords.
Atlas wording
connect_production_branchExplanation available
Connect to production branches. The analyzer tests it with POST /v1/organizations/{…}/databases/{…}/branches/{…}/passwords.
Atlas wording
Name prefix “restore” 2 names
restore_backupExplanation available
Restore backups to development branches. The analyzer tests it with POST /v1/organizations/{…}/databases/{…}/branches.
Atlas wording
restore_production_branch_backupExplanation available
Restore backups to production branches. The analyzer tests it with POST /v1/organizations/{…}/databases/{…}/branches.
Atlas wording
Name prefix “approve” 1 name
approve_deploy_requestExplanation available
Approve deploy requests. The analyzer has no test call for it.
Atlas wording
Under the hoodSource facts, registration, field evidence and source changes
Built on the Planet Scale detector
Step 1: Detect
Related detectors find credential candidates. A match alone does not establish that the credential works. Open the detector first to learn its matching and verification rules.
Step 2: Verify
The detector checks the candidate under its verification rules. Successful verification establishes the condition accepted by that detector; it does not establish every permission. The status below is extraction evidence, not a live result.
Planet Scale · Verification parsed
The normalized parser found verification logic at this record’s revision. No credential was tested.
GET https://api.planetscale.com/v1/organizations
Step 3: Analyze
After successful detector verification, analysis is an additional layer for gathering access context. The source contains an Analyze function; its results depend on the credential, the checks that run and their outcomes.
Explore access capabilitiesStep 4: Interpret the evidence
Open an individual check to learn what it attempts and how its result is interpreted. Follow the source evidence before concluding what access it establishes. Missing permission or resource relationships remain unknown.
Next: follow the source walkthroughDetailed check definitions are not connected to this page yet. The walkthrough identifies input and request sites; response rules and permission/resource bindings still need source review.
This is a source-based workflow, not a live validation result. The catalog has not executed these detectors or analyzers. Related packages are linked by the catalog’s recorded relationship evidence.
Source overview · No credential tested
Understand what Planetscale Analyzer can check
Counts below describe names found in analyzer source. They do not confirm access for a particular credential.
- Permission names
- 32
- Unique names recorded in this analyzer
- Resource types
- 2
- Kinds of objects, not a count of objects found
- Names needing explanation
- 0
- Names without a catalog summary
34 of 34 names have a summary. A summary is not proof of access or a review approval.
How should I read these results?
- Recorded in source
- The parser found a name or behavior in code. It has not tested your credential.
- Explained in the catalog
- A summary describes a recorded name. Check its source label and reference before relying on the interpretation.
- Confirmed by a test
- This would require a recorded run and its responses. No such result is shown on this page. An HTTP success alone does not establish every permission.
- Whether this analyzer package contains an Analyze function.
Yes
- Self-discovery means the package runs after verify to list identity or permissions. Other means no Analyze function was extracted.
Self-discovery
- Related detectors
1
- Permission or scope strings declared in the analyzer Go. These are not a live grant.
32
- Resource names the analyzer source says it can list. These are not a live inventory.
2
- The GitHub repository this catalog was parsed from. This app reads trufflesecurity/trufflehog.
- trufflesecurity/trufflehog
- The Go file the parser read for this page. The link opens that file at the pinned catalog commit.
- pkg/analyzer/analyzers/planetscale/permissions.go
- The last commit that changed this folder’s code (tests don’t count), when GitHub history was fetched. Otherwise it is the ingest commit that reparsed the folder. It can be older than the catalog pin.
- 2921dcc
Last commit that changed this folder’s code. Test-only changes don’t count.
- Active means this folder was still in the latest ingest. A folder that disappeared is dropped from the catalog.
Active
- The date of the ingest that still contained this folder. This is not the day the Go file was edited.
Nov 25, 2026
This folder was still in the catalog at this ingest.
- The date of the newest queued diff for this record. With no diff, this falls back to the ingest time.
Nov 25, 2026
- Whether a human still needs to look at a queued diff or an uncertain extracted field.
No queued diffs
What this analyzer does
Analyze() exists in source. 32 permission names are enumerated in source. Resource types in source: Organization, Database.
An Analyze function was found in the source. The entries below describe the access context recorded for this package.
Description generated from parsed flags
Registration
Named in pkg/analyzer/cli.go. A detector joins from this file only when its folder matches one of these keys.
- planetscale
Parsed from analyzer registration
Related detectors and validation evidence
- Planet Scale
pkg/detectors/planetscale·Verification parsed
Enriches after verify. pkg/analyzer/cli.go registers this detector key to the analyzer package.
Roles
No role map extracted from this analyzer’s Go.
Package files
- permissions.go
- permissions.yaml
- planetscale.go
Field evidence
Parsed fields keep a provenance row beside the value. Extracted rows stay visible. Needs review means a heuristic verify flag or a URL whose host is still a template. Unknown means the parser did not find that field — never a negative capability claim.
description · Needs review · medium
Analyze() exists in source. 32 permission names are enumerated in source. Resource types in source: Organization, Database.
Derived from parser flags. This sentence is not a source comment.
keyTypes · Unknown · unknown
None extracted
permissions · Extracted · high
read_organization, read_invoices, read_databases, read_audit_logs, create_databases, delete_databases, read_oauth_applications, write_oauth_tokens, read_oauth_tokens, delete_oauth_tokens, read_database, write_database, delete_database, read_branch, create_branch, delete_branch, delete_branch_password, delete_production_branch, delete_production_branch_password, read_deploy_request, create_deploy_request, approve_deploy_request, connect_branch, connect_production_branch, read_comment, create_comment, restore_backup, write_backups, read_backups, delete_backups, restore_production_branch_backup, delete_production_branch_backups
resources · Extracted · high
Organization, Database
roles · Unknown · unknown
None extracted
files · Extracted · high
permissions.go, permissions.yaml, planetscale.go
hasAnalyze · Extracted · high
Yes
hasRoleField · Unknown · unknown
No
analyzerType · Extracted · high
self_discovery
What changed in the source
Stored source differences and their review status. No stored difference does not establish that upstream is unchanged.
No stored diffs for this analyzer yet.
Change log
What changed in this analyzer
No changes recorded since Nov 11, 2026, when the change log starts.