Repository navigation
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