mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14:34:04 +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(
|
||||
PermissionControlledPostgreSQLSchemaManager $manager,
|
||||
string $username,
|
||||
#[\SensitiveParameter]
|
||||
string $password,
|
||||
): DatabaseConfig {
|
||||
/** @var TenantWithDatabase $tenantModel */
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class UserImpersonation implements Feature
|
|||
}
|
||||
|
||||
/** 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 */
|
||||
$token = $token instanceof ImpersonationToken ? $token : ImpersonationToken::findOrFail($token);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue