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
Support Running Orchestrator behind a Reverse Proxy (#4724)
If we need to put an Orchestrator behind a TLS terminating reverse
proxy,the NATS server should be configurred in a very specific way, and
the NATS clients (compute nodes) should also be configured in a certain
way.
The NATS server should say the TLS is available, although it is not.
Also, the compute node should enforce TLS communication for NATS,
because reverse proxy supports TLS.
See link:
https://docs.nats.io/running-a-nats-service/configuration/securing_nats/tls#tls-terminating-reverse-proxies
Sample Orchestrator Node config:
```yaml
NameProvider: "uuid"
API:
Port: 1234
Orchestrator:
Enabled: true
Auth:
Token: "i_am_very_secret_token"
SupportReverseProxy: true
```
Sample Compute Node Config:
```yaml
NameProvider: "uuid"
API:
Port: 1234
Compute:
Enabled: true
Orchestrators:
- nats://bacalhau-traefik-node:4222
Auth: Token: "i_am_very_secret_token"
TLS:
RequireTLS: true
```
Please see the integration tests in this commit, it has a very detailed
test suite covering all cases.
Linear:
https://linear.app/expanso/issue/ENG-379/bacalhau-to-support-tls-behind-reverse-proxy
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Release Notes
- **New Features**
- Introduced support for TLS communication and reverse proxy
configurations in compute and orchestrator nodes.
- Added new properties in the API schema to enhance configuration
options.
- **Bug Fixes**
- Improved error handling for NATS connections based on TLS
requirements.
- **Documentation**
- Updated Swagger API documentation to include new properties and
configurations.
- **Tests**
- Added a new test suite to validate orchestrator functionality behind a
reverse proxy.
- **Chores**
- Introduced new Docker Compose configurations for enhanced service
orchestration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments