Repository navigation
feat(packs,sdk): add signed database audit parsers and typed OWASP ASVS SDK helpers (#208) - #312
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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
Advances #208 by closing the remaining repository code gaps tracked on the issue:
src/Bower.Pipeline/CustomLogParser.cs,src/Bower.Packs/PackRuntime.cs):eventCategory,eventAction,eventResult,target.type/target.id/target.name, and up to 8 validatedlabels.<key>fields (raising the bounded field mapping cap from 7 to 16).source.ipAddress,target.id,target.name,eventOutcomeReason,labels.*) to omit JSONnullvalues produced by transforms.packs/owasp-asvs-app-logging(version: 1.1.0):parsers/pgaudit-jsonlog.json— PostgreSQL 15+jsonlogAUDIT:and password-failure records.parsers/mysql-audit-json.json— MySQL Enterprise Audit and Perconaaudit_log_filterJSON records.parsers/mongodb-audit-json.json— MongoDB Enterprise / Atlas JSON audit records.parsers/sqlserver-audit-33205.json— SQL Server Audit Event ID33205via the Windows Event Log source.database_audit,labels.dbEngine,labels.dbStatementClass, actor/target/source IP), drops raw SQL statements before redaction, and passesBWR-PACK-ASVS-DB-AUDITafterprivacy.yamlpseudonymisation.Bower.SdkOWASP ASVS 5.0 helpers (src/Bower.Sdk/IAsvsTelemetry.cs,AsvsSemanticEvents.cs,BufferedBowerClient.Asvs.cs,ServiceCollectionExtensions.cs):IAsvsTelemetry(registered byAddBower(...)alongsideIBowerTelemetry, preserving full backwards compatibility for bothnet10.0andnet11.0) with strongly typed async methods covering all 11 ASVS pack event families.docs/deployment/database-audit.mdand addstests/Bower.UnitTests/AsvsSdkAndDbParsersTests.cs.Remaining non-code items on #208 (reported honestly)
labels.userAgent/labels.routeto first-class schema columns in a future envelope version remains open for maintainer sign-off.Verification
dotnet build --configuration Release— 0 warnings, 0 errors (bothnet10.0andnet11.0SDK builds)dotnet test(AsvsSdkAndDbParsersTests,AsvsLoggingPackTests,AsvsExampleContractTests,TransformPackTests,TransformConformanceTests,PackTests) — 30 passed, 0 faileddotnet format --verify-no-changes— passedpython3 -m unittest tools/docs/tests/test_build_tools.py— 7/7 passedSecurity and compatibility impact
IBowerTelemetry,SentinelSchema.Default, Bicep, and DCR templates are unchanged.