mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:54:03 +00:00
Declare sensitive parameters as sensitive
... just so that they don't show up in logs
This commit is contained in:
parent
eff41553d7
commit
10d40fd84b
2 changed files with 2 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ class CreateUserWithRLSPolicies extends Command
|
||||||
protected function makeDatabaseConfig(
|
protected function makeDatabaseConfig(
|
||||||
PermissionControlledPostgreSQLSchemaManager $manager,
|
PermissionControlledPostgreSQLSchemaManager $manager,
|
||||||
string $username,
|
string $username,
|
||||||
|
#[\SensitiveParameter]
|
||||||
string $password,
|
string $password,
|
||||||
): DatabaseConfig {
|
): DatabaseConfig {
|
||||||
/** @var TenantWithDatabase $tenantModel */
|
/** @var TenantWithDatabase $tenantModel */
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class UserImpersonation implements Feature
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Impersonate a user and get an HTTP redirect response. */
|
/** Impersonate a user and get an HTTP redirect response. */
|
||||||
public static function makeResponse(string|ImpersonationToken $token, ?int $ttl = null): RedirectResponse
|
public static function makeResponse(#[\SensitiveParameter] string|ImpersonationToken $token, ?int $ttl = null): RedirectResponse
|
||||||
{
|
{
|
||||||
/** @var ImpersonationToken $token */
|
/** @var ImpersonationToken $token */
|
||||||
$token = $token instanceof ImpersonationToken ? $token : ImpersonationToken::findOrFail($token);
|
$token = $token instanceof ImpersonationToken ? $token : ImpersonationToken::findOrFail($token);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue