-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy path.env.example
More file actions
22 lines (19 loc) · 1.01 KB
/
.env.example
File metadata and controls
22 lines (19 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Google Cloud KMS Integration Tests
#
# Copy this file to .env.test and fill in your values:
# cp .env.test.example .env.test
#
# To set up GCP KMS test infrastructure, run:
# ./scripts/setup-gcp-kms-test.sh [PROJECT_ID] [LOCATION]
#
# To run tests with this env file:
# bun --env-file=.env.test run test:run -- google-kms
# KMS key version resource names (full paths)
TEST_KMS_RSA_KEY=projects/YOUR_PROJECT/locations/us-east1/keyRings/libpdf-test/cryptoKeys/pdf-rsa-signing/cryptoKeyVersions/1
TEST_KMS_EC_KEY=projects/YOUR_PROJECT/locations/us-east1/keyRings/libpdf-test/cryptoKeys/pdf-ec-signing/cryptoKeyVersions/1
# Local paths to DER-encoded certificates
TEST_KMS_RSA_CERT=./fixtures/kms-test/rsa-cert.der
TEST_KMS_EC_CERT=./fixtures/kms-test/ec-cert.der
# Secret Manager paths (optional, for testing getCertificateFromSecretManager)
TEST_KMS_RSA_CERT_SECRET=projects/YOUR_PROJECT/secrets/libpdf-test-rsa-cert/versions/latest
TEST_KMS_EC_CERT_SECRET=projects/YOUR_PROJECT/secrets/libpdf-test-ec-cert/versions/latest