You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This recipe demonstrates how to verify TLS connections between Cadence SDK and frontend using a Cadence workflow, showing both successful and unsuccessful scenarios.
4
+
5
+
## What This Recipe Shows
6
+
7
+
1.**TLS Workflow Execution** - Orchestrates TLS testing using Cadence workflow and activities
8
+
2.**Certificate Management** - Automated certificate creation and cleanup
9
+
3.**TLS Connection Testing** - Tests connections with valid certificates
10
+
4.**Error Handling** - Tests connections with missing certificates
-**Workflow Orchestration**: Uses Cadence workflow to coordinate TLS testing
82
+
-**Automated Certificate Generation**: No manual certificate setup required
83
+
-**Comprehensive Testing**: Tests multiple TLS scenarios in sequence
84
+
-**Error Handling**: Graceful handling of connection failures
85
+
-**Clean Resource Management**: Automatic cleanup of generated certificates
86
+
-**Production Patterns**: Demonstrates proper Cadence workflow and activity patterns
87
+
88
+
## Code Structure
89
+
90
+
### Main Components
91
+
-`main.go` - Worker/trigger entry point following Cadence patterns
92
+
-`tls_workflow.go` - Workflow and activity definitions
93
+
94
+
### Key Functions
95
+
-`tlsWorkflow()` - Main workflow that orchestrates TLS testing
96
+
-`setupCertificatesActivity()` - Activity to create test certificates
97
+
-`testTLSConnectionActivity()` - Activity to test TLS connections
98
+
-`testStandardConnectionActivity()` - Activity to test non-TLS connections
99
+
-`cleanupCertificatesActivity()` - Activity to clean up certificates
100
+
-`createTLSClient()` - Helper to create TLS-enabled Cadence client
101
+
102
+
This recipe demonstrates how to integrate TLS configuration testing into Cadence workflows, making it suitable for production environments where TLS verification is part of automated testing or deployment processes.
0 commit comments