From 8d9abc6035e662a3dc53137ee136cad9a44bee73 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sun, 22 Mar 2026 19:56:22 +0100 Subject: [PATCH] feat: Add keybase env variable --- README.md | 27 ++++++++++--------- ...register_common_secure_server_protocols.go | 1 + 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 3381529..2627b6b 100644 --- a/README.md +++ b/README.md @@ -49,16 +49,17 @@ All configuration options are handled via environment variables `.env` files are supported -| Name | Description | Required | -|-------------------------------------|-----------------------------------------------------------------------|-----------------------------------------------| -| `PN_SMM_POSTGRES_URI` | Fully qualified URI to your Postgres server | Yes | -| `PN_SMM_AUTHENTICATION_SERVER_PORT` | Port for the authentication server | Yes | -| `PN_SMM_SECURE_SERVER_HOST` | Host name for the secure server | Yes | -| `PN_SMM_SECURE_SERVER_PORT` | Port for the secure server | Yes | -| `PN_SMM_CONFIG_S3_ENDPOINT` | S3 server endpoint | Yes | -| `PN_SMM_CONFIG_S3_ACCESS_KEY` | S3 access key ID | Yes | -| `PN_SMM_CONFIG_S3_ACCESS_SECRET` | S3 secret | Yes | -| `PN_SMM_CONFIG_S3_BUCKET` | S3 bucket | Yes | -| `PN_SMM_ACCOUNT_GRPC_HOST` | Host name for your account server gRPC service | Yes | -| `PN_SMM_ACCOUNT_GRPC_PORT` | Port for your account server gRPC service | Yes | -| `PN_SMM_ACCOUNT_GRPC_API_KEY` | API key for your account server gRPC service | No (Assumed to be an open gRPC API) | \ No newline at end of file +| Name | Description | Required | +| ----------------------------------- | ---------------------------------------------- | ----------------------------------- | +| `PN_SMM_POSTGRES_URI` | Fully qualified URI to your Postgres server | Yes | +| `PN_SMM_AUTHENTICATION_SERVER_PORT` | Port for the authentication server | Yes | +| `PN_SMM_SECURE_SERVER_HOST` | Host name for the secure server | Yes | +| `PN_SMM_SECURE_SERVER_PORT` | Port for the secure server | Yes | +| `PN_SMM_CONFIG_S3_ENDPOINT` | S3 server endpoint | Yes | +| `PN_SMM_CONFIG_S3_ACCESS_KEY` | S3 access key ID | Yes | +| `PN_SMM_CONFIG_S3_ACCESS_SECRET` | S3 secret | Yes | +| `PN_SMM_CONFIG_S3_BUCKET` | S3 bucket | Yes | +| `PN_SMM_CONFIG_S3_KEY_BASE` | S3 Key prefix | Yes | +| `PN_SMM_ACCOUNT_GRPC_HOST` | Host name for your account server gRPC service | Yes | +| `PN_SMM_ACCOUNT_GRPC_PORT` | Port for your account server gRPC service | Yes | +| `PN_SMM_ACCOUNT_GRPC_API_KEY` | API key for your account server gRPC service | No (Assumed to be an open gRPC API) | diff --git a/nex/register_common_secure_server_protocols.go b/nex/register_common_secure_server_protocols.go index 3fa2e79..51e2b42 100644 --- a/nex/register_common_secure_server_protocols.go +++ b/nex/register_common_secure_server_protocols.go @@ -48,6 +48,7 @@ func registerCommonSecureProtocols() { commonDataStoreProtocol.SetMinIOClient(globals.MinIOClient) commonDataStoreProtocol.S3Bucket = os.Getenv("PN_SMM_CONFIG_S3_BUCKET") + commonDataStoreProtocol.SetDataKeyBase(os.Getenv("PN_SMM_CONFIG_S3_KEY_BASE")) commonDataStoreProtocol.GetObjectInfoByDataID = datastore_db.GetObjectInfoByDataID commonDataStoreProtocol.GetObjectInfoByPersistenceTargetWithPassword = datastore_db.GetObjectInfoByPersistenceTargetWithPassword