Cambio de nombre de las variables de entorno que representan los nombres de los secretos
This commit is contained in:
parent
3d93887e4e
commit
3758a07c45
@ -36,5 +36,5 @@ GCP_PROJECT_ID=
|
|||||||
# --------------------
|
# --------------------
|
||||||
# PDF signing
|
# PDF signing
|
||||||
# --------------------
|
# --------------------
|
||||||
PDF_CERT_SECRET_NAME=pdf_cert_pfx_b64
|
CERT_SECRET_NAME=certificate_secret_name
|
||||||
PDF_CERT_PASSWORD_SECRET_NAME=pdf_cert_password
|
CERT_PASSWORD_SECRET_NAME=certificate_password_secret_name
|
||||||
@ -128,8 +128,8 @@ INFISICAL_PROJECT_ID=your_project_id
|
|||||||
INFISICAL_ENV_SLUG=development
|
INFISICAL_ENV_SLUG=development
|
||||||
INFISICAL_TOKEN_AUTH=your_dev_token_auth
|
INFISICAL_TOKEN_AUTH=your_dev_token_auth
|
||||||
|
|
||||||
PDF_CERT_PFX_SECRET_NAME=PDF_CERT_PFX_B64
|
CERT_SECRET_NAME=certificate_secret_name
|
||||||
PDF_CERT_PASSWORD_SECRET_NAME=PDF_CERT_PASSWORD
|
CERT_PASSWORD_SECRET_NAME=certificate_password_secret_name
|
||||||
```
|
```
|
||||||
|
|
||||||
***📌 El archivo .env NO debe commitearse.***
|
***📌 El archivo .env NO debe commitearse.***
|
||||||
|
|||||||
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "factuges-document-signing-service"
|
name = "factuges-document-signing-service"
|
||||||
version = "0.2.4"
|
version = "0.2.7"
|
||||||
description = "FastAPI service for signing PDF documents using external secret managers"
|
description = "FastAPI service for signing PDF documents using external secret managers"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
|
|
||||||
|
|||||||
@ -110,12 +110,12 @@ def load_app_settings() -> AppSettings:
|
|||||||
# PDF signing
|
# PDF signing
|
||||||
# --------------------
|
# --------------------
|
||||||
pdf_cert_secret_name = get_env(
|
pdf_cert_secret_name = get_env(
|
||||||
"PDF_CERT_SECRET_NAME",
|
"CERT_SECRET_NAME",
|
||||||
required=True,
|
required=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
pdf_cert_password_secret_name = get_env(
|
pdf_cert_password_secret_name = get_env(
|
||||||
"PDF_CERT_PASSWORD_SECRET_NAME",
|
"CERT_PASSWORD_SECRET_NAME",
|
||||||
required=True,
|
required=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -14,6 +14,6 @@ def create_pdf_signer() -> PDFSignerPort:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not settings.pdf_cert_password_secret_name:
|
if not settings.pdf_cert_password_secret_name:
|
||||||
raise ValueError("PDF_CERT_PASSWORD_SECRET_NAME is required")
|
raise ValueError("CERT_PASSWORD_SECRET_NAME is required")
|
||||||
|
|
||||||
return PyHankoPDFSigner()
|
return PyHankoPDFSigner()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user