CI workflows default to write-all permissions, and a couple of compose files are worth a second look
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 65/100
Research direction
Start with .github/workflows/github-labeler.yml and platform-docker-build-test-publish.yml, then review the other workflows for their required permissions. Check docker-compose.yml:9 and docker-compose.pgpool.yml:25 to confirm the flagged credentials are only local defaults. Done means workflows use least-privilege permissions with necessary job-specific exceptions and no real credentials are committed.
Written by the indexing model from the issue text.
Description
| Issue | Where | Why it matters |
|---|---|---|
No explicit least-privilege permissions: block |
.github/workflows/github-labeler.yml, platform-docker-build-test-publish.yml, and about a dozen other workflows |
Workflows default to broad write access to the repo instead of only what each job needs |
| Basic Auth credential pattern flagged | docker-compose.yml:9, docker-compose.pgpool.yml:25 |
Probably local dev defaults, worth a quick look to confirm nothing real is committed here |
Suggested fix for the workflows, add a scoped block near the top:
permissions:
contents: read
Then widen only the specific jobs that need more, like pull-requests: write for the labeler.
Found this with InfraScan (https://github.com/SolDevelo/InfraScan), an open-source cost/security scanner covering Terraform, Kubernetes, Helm, CloudFormation, Ansible, and containers (Apache-2.0). If it's useful, it's a few lines to add as a GitHub Action (https://github.com/marketplace/actions/infrascan-iac-cost-security-scanner). Happy to open a PR wiring it up if you want.
- Dominant language
- Python
- Stars
- 9.9k
- Forks
- 658
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 168
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Flagsmith/flagsmith
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Flagsmith/flagsmith#9119 · 1 comment ·
Maintainers usually reply within 1 day
-
Fix Button Alignment in SDK Installation SectionPossibly taken @manueldezman claimed this 3 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Flagsmith/flagsmith#9056 · 2 comments ·
Maintainers usually reply within 1 day
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidancePossibly taken @jcd1991 claimed this 4 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Flagsmith/flagsmith#9045 · 1 comment ·
Maintainers usually reply within 1 day
-
Expose whether an organisation is blocked for API usagePossibly taken @PiUnknown claimed this 38 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Flagsmith/flagsmith#8773 · 1 comment ·
Maintainers usually reply within 1 day
-
influx_query_manager doesn't catch ApiException, so Influx error responses 500Possibly taken @SAY-5 claimed this 13 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Flagsmith/flagsmith#8510 · 1 comment ·
Maintainers usually reply within 1 day
All issues in Flagsmith/flagsmith
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 73/100
-
day_or=True union silently becomes the ISC cron AND bug when a day field expands to its full range (e.g. '0 0 */1 * */2' fires only Sun/Tue/Thu/Sat)Possibly taken @rahul05ranjan claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pallets-eco/croniter#309 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
nyjc-computing/campus-admin#105 ·
Maintainers usually reply within 1 day
-
bug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/Gitcord-GithubDiscordBot#248 · 1 comment ·
Maintainers usually reply within 4 days