Refocus nginx-broken lab on SELinux denial for custom HTTP port 8080#35
Closed
Copilot wants to merge 3 commits into
Closed
Refocus nginx-broken lab on SELinux denial for custom HTTP port 8080#35Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix SELinux policy to allow Nginx on custom port 8080
Refocus nginx-broken lab on SELinux denial for custom HTTP port 8080
Jun 5, 2026
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
This updates the existing nginx lab to match the SELinux custom-port failure mode: nginx is configured on
8080, but SELinux policy does not permit HTTP service on that port. The lab now teaches diagnosis via AVC/audit evidence and remediation viahttp_port_tmapping.Scenario + metadata alignment
80to8080Break condition in provisioning
cloud-init.yamlnow:8080semanage, audit utilities)http_port_tmapping fortcp/8080to create the denialResolution path + verification contract
question.mdandsolution.mdnow direct users to:http_port_tfortcp/8080verify.shnow asserts:8080http_port_tincludes8080127.0.0.1:8080CI-required lab fix script
solution.shfor automated remediation in CI:8080http_port_tmapping fortcp/8080Type of change
Lab Requirements (If submitting a new lab)
If you are submitting a new BrokenOps lab, please verify:
lab.yamlis fully populated.cloud-init.yamlcorrectly breaks the environment.verify.shscript correctly asserts if the environment is fixed.solution.shscript is provided to automatically fix the environment. (This is required for our CI verification pipeline).Checklist: