Repository navigation
Releases
v0.4.1
Security fix
Secret header names are now masked wherever they appear (#9).
Until 0.4.0, Authorization, Cookie, Set-Cookie, Proxy-Authorization, X-Api-Key and names added with header() were masked only as HTTP headers. When the same names showed up in a JSON or form body, a query parameter, a storage key or a SQL column, their values were stored, shown in the viewer and exported in clear text. A common case is an API that echoes the request headers in its response body.
They are now masked in all of those places, on every platform (Android, KMP, iOS and Flutter), since the rules live in the shared core. allow() still removes a name everywhere.
Events recorded before the update keep their stored values. To remove them, clear the log from the viewer or call StackAudit.clear().
Upgrading is recommended for everyone on 0.4.0 or earlier.
Install
debugImplementation("io.github.r1b2ns:stackaudit-android:0.4.1")
debugImplementation("io.github.r1b2ns:stackaudit-ui:0.4.1")
releaseImplementation("io.github.r1b2ns:stackaudit-noop:0.4.1").package(url: "https://github.com/r1b2ns/stack-audit", from: "0.4.1")Full Changelog: v0.4.0...v0.4.1
v0.4.0
Highlights
- Automatic WebSocket capture on iOS. In
.automaticmode,URLSessionWebSocketTaskconnections are recorded with no code changes: open, frames sent and received, ping, pong, close and failures. Tasks you wrap withStackAuditWebSocketare recorded once, not twice. - Search in the viewer. Every list has a search field that matches several terms at once.
- Better export. Text is now the default format and includes request and response headers and bodies, with a separator between events. The export preview can be expanded and its text selected.
- Turning masking off. With
Secrets.Show, the viewer and exports show secrets as they are. Use it only on local debug builds; StackAudit logs a warning if it is on in a release build.
Changes
- The default storage limit is now 200 MB (was 100 MB). Set
maxStorageto change it. - List rows show seconds and a disclosure chevron, the close button is an X icon, and the keyboard hides when you scroll.
Fixes
- iOS: calling
StackAudit.start()a second time no longer crashes.
Docs
- New guide: Analytics and feature flags.
- The README documents every platform, WebSocket capture and how to turn masking off.
Install
debugImplementation("io.github.r1b2ns:stackaudit-android:0.4.0")
debugImplementation("io.github.r1b2ns:stackaudit-ui:0.4.0")
releaseImplementation("io.github.r1b2ns:stackaudit-noop:0.4.0").package(url: "https://github.com/r1b2ns/stack-audit", from: "0.4.0")Full Changelog: v0.3.0...v0.4.0
v0.3.0
What's Changed
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
Full Changelog: v0.1.0...v0.2.0
v0.1.0
What's Changed
New Contributors
Full Changelog: https://github.com/r1b2ns/stack-audit/commits/v0.1.0