fix(core): accept service-level resource limits and stop flagging URL endpoints as secrets - #124
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: fb922e5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
The latest Docker Doctor scan for this pull request. Learn more about Docker Doctor.
Score: 84 / 100 · 3 issues
Scanned by Docker Doctor for commit |
PunGrumpy
force-pushed
the
fix/compose-limits-and-secret-values
branch
from
September 5, 2026 10:25
d464a05 to
9940d89
Compare
4 tasks
… endpoints as secrets require-resource-limits only looked at deploy.resources.limits, so a service setting mem_limit, cpus, or cpu_quota (still in the Compose spec, applied the same way by docker compose) was told it had no limits. no-plaintext-secrets and no-secrets-in-env now share isLiteralSecretValue: a URL without embedded userinfo names an endpoint (AUTH_URL=http://auth:8080) and is not a secret, while user:password@ URLs still are. The shared key patterns also learn PGPASSWORD-style names, APIKEY, and PAT.
PunGrumpy
force-pushed
the
fix/compose-limits-and-secret-values
branch
from
September 5, 2026 10:31
9940d89 to
fb922e5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Two more accuracy misses from probing the 0.5.0 Compose rules with agent-stack files.
require-resource-limitswarned services that had limits. It only readdeploy.resources.limits. The service-levelmem_limit,cpus, andcpu_quotakeys are the older spelling of the same limits, still in the Compose specification and applied the same way bydocker compose:mem_reservationandcpu_sharesdo not count. A reservation is a floor and a share is a relative weight, neither caps the service.no-plaintext-secretsflagged endpoints and missed credentials.AUTH_URL: http://auth:8080was flagged because the key matchesauthand the value is a literal, whileOPENAI_APIKEY,GITHUB_PAT, andPGPASSWORDpassed because no pattern matched them. Both rules that share the key list now also share one definition of a literal value, insecret-keywords.ts:postgres://app:hunter2@db/appstill counts.apikeyandpatjoin the key patterns.patrequires a trailing separator, soPATHandPATTERNstay clean.passwordno longer requires a leading separator, which coversPGPASSWORDandMYSQLPASSWORD.The Dockerfile rule
no-secrets-in-envpicks up the same value definition, soENV AUTH_URL=https://…is clean there too.Related Issues
N/A. Same probe as #123: the 0.5.0 rules run against the environment and limit shapes agent stacks use.
Checklist
Screenshots (if applicable)
N/A, CLI output only.
Additional Notes
Scores move in both directions depending on the project: up for services using
mem_limitor URL-valuedAUTH_*keys, down for files carryingPGPASSWORD,APIKEY, orPATliterals. The fixture scores in this repo are unchanged.Tested with unit tests for the legacy limit keys (including that
mem_reservationalone still warns), for URL values with and without userinfo in both the Dockerfile and Compose rules, and for the new key spellings againstPATHandPATTERN.bun x ultracite checkandbun run docs:rulesare clean.