@sebastienrousseau/crypto-server 0.0.31 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -326,23 +326,31 @@ authentication but no scope.
326
326
 
327
327
  ## Configuration
328
328
 
329
- | Variable | Default | Description |
330
- | :-------------------- | :------------ | :--------------------------------------------------- |
331
- | `PORT` | `3000` | TCP port to listen on |
332
- | `HOST` | `localhost` | Bind address |
333
- | `PROTOCOL` | `http` | `http` or `https` |
334
- | `NODE_ENV` | `development` | `development`, `production`, or `test` |
335
- | `LOG_LEVEL` | `info` | `error`, `warn`, `info`, or `debug` |
336
- | `CRYPTO_API_KEY` | -- | Static API key for `x-api-key` authentication |
337
- | `JWT_SECRET` | -- | HMAC secret for HS256 JWT validation |
338
- | `JWT_MAX_AGE` | `3600` | Maximum JWT lifetime in seconds |
339
- | `JWT_ISSUER` | -- | Required JWT `iss` (required in production) |
340
- | `JWT_AUDIENCE` | -- | Required JWT `aud` (required in production) |
341
- | `CORS_ORIGIN` | -- | Comma-separated allowed origins (empty = disabled) |
342
- | `TRUSTED_PROXY_CIDRS` | -- | Comma-separated trusted proxy CIDRs |
343
- | `CRYPTO_KEY_DIR` | -- | Directory for key storage |
344
- | `CRYPTO_KEY_OUT_DIR` | -- | Where generated keys are persisted (see Key custody) |
345
- | `SHUTDOWN_TIMEOUT_MS` | `30000` | Graceful shutdown timeout in milliseconds |
329
+ | Variable | Default | Description |
330
+ | :----------------------------------------------------------------------- | :----------------------------------- | :------------------------------------------------------------------------------------------------------------ |
331
+ | `PORT` | `3000` | TCP port to listen on |
332
+ | `HOST` | `localhost` | Bind address |
333
+ | `PROTOCOL` | `http` | `http` or `https` |
334
+ | `NODE_ENV` | `development` | `development`, `production`, or `test` |
335
+ | `LOG_LEVEL` | `info` | `error`, `warn`, `info`, or `debug` |
336
+ | `CRYPTO_API_KEY` | -- | Static API key for `x-api-key` authentication |
337
+ | `JWT_SECRET` | -- | HMAC secret for HS256 JWT validation |
338
+ | `JWT_MAX_AGE` | `3600` | Maximum JWT lifetime in seconds |
339
+ | `JWT_ISSUER` | -- | Required JWT `iss` (required in production) |
340
+ | `JWT_AUDIENCE` | -- | Required JWT `aud` (required in production) |
341
+ | `CORS_ORIGIN` | -- | Comma-separated allowed origins (empty = disabled) |
342
+ | `TRUSTED_PROXY_CIDRS` | -- | Comma-separated trusted proxy CIDRs |
343
+ | `CRYPTO_KEY_DIR` | -- | Directory for key storage |
344
+ | `CRYPTO_KEY_OUT_DIR` | -- | Where generated keys are persisted (see Key custody) |
345
+ | `SHUTDOWN_TIMEOUT_MS` | `30000` | Graceful shutdown timeout in milliseconds |
346
+ | `ALLOW_ANONYMOUS` | -- | `1` allows unauthenticated requests |
347
+ | `RATE_LIMIT_MAX` | `10` | Requests per client per minute (probes are exempt) |
348
+ | `CRYPTO_KEY_STORAGE_KEY` | -- | Encrypts persisted private keys at rest (AES-256-GCM): 64 hex characters, or a passphrase hashed with SHA-256 |
349
+ | `OTEL_EXPORTER_OTLP_ENDPOINT` | -- | OpenTelemetry OTLP collector endpoint (export disabled when unset) |
350
+ | `AWS_REGION` | `us-east-1` | Region for the AWS KMS provider |
351
+ | `GCP_PROJECT_ID`, `GCP_LOCATION_ID`, `GCP_KEY_RING_ID`, `GCP_AUTH_TOKEN` | placeholders | GCP KMS provider settings (the provider is a stub) |
352
+ | `VAULT_ADDR`, `VAULT_TOKEN` | `http://localhost:8200`, placeholder | Vault KMS provider settings (the provider is a stub) |
353
+ | `AZURE_VAULT_URL` | placeholder | Azure Key Vault provider setting (the provider is a stub) |
346
354
 
347
355
  <p align="right"><a href="#contents">Back to Top</a></p>
348
356
 
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/config/constants.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mB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,
29
- disableRequestLogging: false,
30
29
  ignoreTrailingSlash: false,
31
30
  keepAliveTimeout: 5000,
32
31
  logger: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebastienrousseau/crypto-server",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "Crypto Server is a Fastify web server that exposes easy consumable REST APIs to perform low-level cryptographic operations.",
5
5
  "author": "Sebastien Rousseau <sebastienrousseau@users.noreply.github.com>",
6
6
  "license": "MIT OR Apache-2.0",
@@ -37,37 +37,37 @@
37
37
  "dist/**/*.d.ts.map"
38
38
  ],
39
39
  "dependencies": {
40
- "@fastify/accepts": "^5.0.6",
41
- "@fastify/compress": "^9.2.0",
42
- "@fastify/cors": "^11.3.0",
43
- "@fastify/etag": "^6.2.0",
44
- "@fastify/helmet": "^13.1.1",
45
- "@fastify/jwt": "^10.2.2",
46
- "@fastify/rate-limit": "^11.2.0",
47
- "@fastify/swagger": "^9.9.0",
48
- "@fastify/swagger-ui": "^6.1.1",
40
+ "@fastify/accepts": "^5.0.7",
41
+ "@fastify/compress": "^9.2.2",
42
+ "@fastify/cors": "^11.3.1",
43
+ "@fastify/etag": "^6.2.1",
44
+ "@fastify/helmet": "^13.2.0",
45
+ "@fastify/jwt": "^10.2.4",
46
+ "@fastify/rate-limit": "^11.2.1",
47
+ "@fastify/swagger": "^9.9.2",
48
+ "@fastify/swagger-ui": "^6.1.2",
49
49
  "@opentelemetry/api": "^1.9.0",
50
- "@opentelemetry/exporter-metrics-otlp-http": "^0.222.0",
51
- "@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
50
+ "@opentelemetry/exporter-metrics-otlp-http": "^0.223.0",
51
+ "@opentelemetry/exporter-trace-otlp-http": "^0.223.0",
52
52
  "@opentelemetry/instrumentation-fastify": "^0.57.0",
53
- "@opentelemetry/instrumentation-http": "^0.222.0",
54
- "@opentelemetry/resources": "^2.11.0",
55
- "@opentelemetry/sdk-metrics": "^2.11.0",
56
- "@opentelemetry/sdk-node": "^0.222.0",
57
- "@opentelemetry/sdk-trace-node": "^2.11.0",
53
+ "@opentelemetry/instrumentation-http": "^0.223.0",
54
+ "@opentelemetry/resources": "^2.12.0",
55
+ "@opentelemetry/sdk-metrics": "^2.12.0",
56
+ "@opentelemetry/sdk-node": "^0.223.0",
57
+ "@opentelemetry/sdk-trace-node": "^2.12.0",
58
58
  "@opentelemetry/semantic-conventions": "^1.43.0",
59
- "fastify": "^5.12.5",
59
+ "fastify": "^5.12.7",
60
60
  "fastify-healthcheck": "^5.1.0",
61
- "uuid": "^14.0.2",
61
+ "uuid": "^14.0.3",
62
62
  "winston": "^3.17.0",
63
- "@sebastienrousseau/crypto-kms": "0.0.31",
64
- "@sebastienrousseau/crypto-lib": "0.0.31"
63
+ "@sebastienrousseau/crypto-kms": "0.0.33",
64
+ "@sebastienrousseau/crypto-lib": "0.0.33"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/chai": "^5.2.3",
68
68
  "@types/chai-as-promised": "^8.0.2",
69
69
  "@types/mocha": "^10.0.10",
70
- "@types/node": "^26.6.3",
70
+ "@types/node": "^26.6.5",
71
71
  "@types/uuid": "^11.0.0",
72
72
  "c8": "^12.0.0",
73
73
  "chai": "^6.3.0",
@@ -75,7 +75,7 @@
75
75
  "fast-check": "^4.10.2",
76
76
  "mocha": "^12.0.3",
77
77
  "openpgp": "^6.3.2",
78
- "prettier": "^3.9.9",
78
+ "prettier": "^3.9.10",
79
79
  "rimraf": "^6.1.3",
80
80
  "ts-node": "^10.9.2",
81
81
  "typedoc": "^0.28.20",