Add scoped redirects, database logins and SFTP folder access
This commit is contained in:
1 parent
0263aa4bfa
commit
4b60663821
50 files changed
+2640
-57
No files matched your search
@@ -12,6 +12,7 @@ from django.utils import timezone
|
||||
from django.views.decorators.debug import sensitive_variables
|
||||
|
||||
from coulobre.credential_rotation import valid_generation
|
||||
from coulobre.database_login import DatabaseLoginSpec
|
||||
from coulobre.service_credentials import (
|
||||
CREDENTIAL_SOCKET,
|
||||
CREDENTIAL_TIMEOUT_SECONDS,
|
||||
@@ -172,7 +173,11 @@ def fetch_service_credentials(resource, rotation=None):
|
||||
if spec.kind == CredentialKind.DATABASE:
|
||||
keys += ("database", "host", "socket")
|
||||
expected = {
|
||||
"database": resource.name,
|
||||
"database": (
|
||||
resource.database.name
|
||||
if isinstance(resource, DatabaseLoginSpec)
|
||||
else resource.name
|
||||
),
|
||||
"user": resource.name,
|
||||
"host": "localhost",
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user