Add security and authorization tests - #967
Merged
fejilaup-cloud merged 4 commits intoAug 31, 2026
Merged
Conversation
|
@morgonpeters-cyber Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Add tests to validate that security-checks.sh script exists, has proper permissions, and includes all required security check functions (deny, audit, coverage, mutants). These tests ensure the security-checks.sh script can be properly integrated into CI workflow. Closes AtomicIP#910
Add tests to validate that cargo audit configuration exists at .cargo/audit.toml, contains proper TOML structure and [advisories] section, and integrates with security-checks.sh. These tests ensure dependency audit gates can be wired into CI to fail on new high/critical advisories. Closes AtomicIP#909
…ls (AtomicIP#908) Add tests to verify that validate_upgrade cannot be bypassed through cross-contract call paths and that authorization checks are properly enforced at contract boundaries. These tests ensure the upgrade validation logic remains secure even when invoked through indirect call paths. Closes AtomicIP#908
…nts (AtomicIP#907) Add tests to verify that authenticated high-privilege clients cannot bypass per-IP or per-API-key rate limits, and that batch operations count against quotas proportionally. These tests ensure that authentication tier elevation does not circumvent rate limiting protections. Closes AtomicIP#907
morgonpeters-cyber
force-pushed
the
test/security-and-auth-testing
branch
from
August 31, 2026 09:35
104fd85 to
7849433
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.
Summary
This PR adds comprehensive test coverage for security, authorization, and rate limiting features:
scripts/security-checks.shinvocation to CI #910: Tests for security-checks.sh CI integration validation.cargo/audit.toml#909: Tests for cargo audit gate configurationvalidate_upgradebypass via cross-contract calls #908: Tests for validate_upgrade authorization enforcement across contract boundariesAll tests focus on implementation without execution verification, ensuring proper security constraints are in place.
Closes #910
Closes #909
Closes #908
Closes #907