fix: encryption and other fixes#57
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Changed?
Encryption key persistence across CLI/Docker: Replaced Docker named volume with a shared .data/ directory bind mount so both CLI and Docker read/write the same encryption key file. New keys are saved to .data/.encryption_key with fallback to the legacy .encryption_key for backward compatibility.
Worker network_mode: host removal: Removed unnecessary network_mode: host from the worker service, which was preventing it from resolving Docker service names (db, redis) and causing DB connectivity failures. Both API and worker now share the same bridge network and config.docker.yml.
API key whitespace stripping: Added .strip() on both encrypt and decrypt paths to prevent accidental leading/trailing whitespace from corrupting API keys. This fixed a Vapi 400 "failed to extract key" error caused by a leading space in the stored API key.
Vapi error diagnostics: Improved retrieve_call_metrics to capture and log Vapi's actual error response body before raising, instead of only logging the HTTP status code. Also removed unnecessary Content-Type: application/json header from GET requests.
Frontend error surfacing: Updated frontend catch blocks for Retell, Vapi, and ElevenLabs to extract error.response.data.detail for toast notifications instead of showing generic Axios errors. Backend was also updated to pass through human-readable provider error messages (e.g., "Trial over quota, please add payment.").
Deleted redundant config: Removed config.docker.worker.yml (separate worker config with localhost URLs) since the worker no longer needs network_mode: host. Reverted app/config.py env var override logic that was only needed for the host networking workaround.
Release Label
Select one semantic version bump intent for this PR:
major- breaking change, next release bumps major versionminor- backward-compatible feature, next release bumps minor versionfix- backward-compatible bug fix, next release bumps patch versionIf you do not have permission to apply labels, mention the intended release label here and a maintainer will set it.
Checklist
CONTRIBUTING.mdguide.