feat(autotls): add autotls support with pebble and p2p-forge #559
+94
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This update adds P2P WebSocket Secure (WSS) configuration, Auto TLS support for automatic certificate management, and fixes Kubernetes environment variable handling.
P2P WSS Configuration: Added
p2p-wss-enableandp2p-wss-addrsettings for secure WebSocket connections.Auto TLS Support: Implemented automatic TLS certificate management in Kubernetes init containers via ACME protocol.
EnvVar Handling Fix: Fixed bug by adding validation to prevent empty ValueFrom objects in Kubernetes EnvVar conversion.
Screenshot
Files Changed
config/config.yaml- Added P2P WSS and Auto TLS configuration optionsconfig/local.yaml- Updatedautotls-registration-endpointto include port:8080pkg/k8s/containers/env.go- AddedhasValues()method and improvedtoK8S()conversionpkg/orchestration/k8s/helpers.go- Added Auto TLS support in init containerspkg/orchestration/k8s/orchestrator.go- Integrated Auto TLS configuration