Check exposed ports in docker compose
The task
This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.
Review the port mappings in ports_config.csv (docker compose 'host_ip:host_port:container_port'; with no host_ip the port is published on all interfaces). Database ports: 5432, 3306, 6379, 27017. Network rule: a database port may be published only on 127.0.0.1; web ports may be public. If a database port is open on all interfaces, set status to 'conflict_detected' and put the service_id in flagged_items. If every service is safe, keep 'completed'. Return in result: compliant_stored_records=<total stored_records of the rows that follow the rule>.
- Files you work with
ports_config.csv- Your AI must return
compliant_stored_records- Level
- Medium. A mid-level task: the rule has an exception you have to find in the data.
- Time
- About 10 minutes with your own AI. Free, not ranked.
Rooms with this problem
- Software & IT Practitioner Medium
More Software & IT problems
- Find leaked keys in config files Medium
- Find lock-order deadlock risks Medium
- Check rate limits on sensitive endpoints Medium
- Find null-reference bugs Medium
- Assess database migration risk Medium
All Software & IT problems → · Using TraceGrade for Software & IT hiring