Skip to content

Commit 7b04912

Browse files
authored
Merge pull request #218 from thand-io/temporal-mtls
Temporal mtls
2 parents df53e50 + 84de77e commit 7b04912

42 files changed

Lines changed: 2572 additions & 39 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ config/roles/*.yaml
9898
config/roles/*.json
9999
config/workflows/*.yaml
100100
config/workflows/*.json
101+
config/temporal/*.key
102+
config/temporal/*.pem
101103
config/README.md

config.example.yaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,30 @@ environment:
1212
password: "changeme"
1313

1414
# Services Configuration
15-
# The services configuration inherits from environment configuration
1615
services:
1716
temporal:
18-
# host: "us-central1.gcp.api.temporal.io"
19-
# port: 7233
20-
# namespace: "default"
21-
# mtls_pem: "" # Path to mTLS PEM file if required
22-
# api_key: "" # Temporal API Key
17+
host: "localhost"
18+
port: 7233
19+
namespace: "default"
20+
21+
# Choose ONE authentication method:
22+
23+
# 1. API Key (Temporal Cloud)
24+
# api_key: "your-api-key"
25+
26+
# 2. Inline certificates
27+
# mtls_cert: "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"
28+
# mtls_key: "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
29+
30+
# 3. File paths (Kubernetes)
31+
# mtls_cert_file: "/etc/temporal/certs/client.pem"
32+
# mtls_key_file: "/etc/temporal/certs/client.key"
33+
34+
# 4. Vault (Production)
35+
# mtls_vault:
36+
# mtls_vault_name: "temporal-client-cert"
37+
# mtls_vault_type: "pem" # pem, pkcs12, or auto-detect
38+
# mtls_vault_password: "" # For encrypted PKCS12
2339

2440
# Server Configuration
2541
server:

config/temporal/create.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
tcld gen ca --org temporal -d 1y --ca-cert ca.pem --ca-key ca.key
4+
tcld gen leaf --org temporal -d 364d --ca-cert ca.pem --ca-key ca.key --cert client.pem --key client.key

0 commit comments

Comments
 (0)