Repository navigation
Conversation
Adds automated e2e tests covering the launchgate's cross-org isolation
requirements. The tests require credentials for a second organisation
(BOXLITE_E2E_CROSS_ORG_API_KEY) and skip gracefully when absent, so CI
and local runs without a second org are unaffected.
Tests added:
test_257_1c_cross_org_key_rejected_for_other_org_namespace
– org-B key in org-A namespace → 401
test_257_3_cross_org_get_box_returns_404
– GET org-A's box with org-B key → 404 (not 403, not 401)
test_257_3a_cross_org_delete_box_returns_404
– DELETE org-A's box with org-B key → 404; box survives in org-A
test_257_3b_cross_org_exec_returns_404
– POST .../exec on org-A's box with org-B key → 404
test_257_4_cross_org_network_isolation
– org-B box cannot reach org-A box on internal addresses
Fixes POL-334.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Adds
apps/e2e/cases/test_pol257_cross_org_isolation.py— automated e2ecoverage for the launchgate's cross-org isolation requirements.
Tests added
test_257_1c_cross_org_key_rejected_for_other_org_namespacetest_257_3_cross_org_get_box_returns_404test_257_3a_cross_org_delete_box_returns_404test_257_3b_cross_org_exec_returns_404test_257_4_cross_org_network_isolationCI behaviour
All tests are skipped when
BOXLITE_E2E_CROSS_ORG_API_KEYis unset, soexisting CI pipelines and local runs without a second org are unaffected.
Set
BOXLITE_E2E_CROSS_ORG_API_KEY(and optionallyBOXLITE_E2E_CROSS_ORG_PREFIX) in the CI secret store to enable.Fixes POL-334.
🤖 Generated with Claude Code