Skip to content

Conversation

@thainguyensunya
Copy link
Collaborator

Changes:

  • Correct VAD and Embedding URL for dev and prod

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the URLs for VAD and Embedding services in the development and production Kubernetes configurations, replacing hardcoded IP addresses with domain names. This is a good improvement for maintainability. However, all the updated URLs use http, which is a critical security risk as it sends data unencrypted. My review includes critical feedback to switch all service URLs to https to ensure secure communication.

Comment on lines 113 to +118
- name: HOSTED_VAD_API_URL
value: "http://34.172.155.20:80/v1/vad"
value: "http://vad.omiapi.com:80/v1/vad"
- name: HOSTED_SPEECH_PROFILE_API_URL
value: "http://34.172.155.20:80/v1/speaker-identification"
value: "http://vad.omiapi.com:80/v1/speaker-identification"
- name: HOSTED_SPEAKER_EMBEDDING_API_URL
value: "http://34.172.155.20:80"
value: "http://diarizer.omiapi.com:80"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-critical critical

The service URLs are configured to use http, which is insecure as it sends data in plaintext. This can expose sensitive information to network sniffing and man-in-the-middle attacks. It is critical to use https for all API endpoints to ensure data is encrypted in transit. This applies to HOSTED_VAD_API_URL, HOSTED_SPEECH_PROFILE_API_URL, and HOSTED_SPEAKER_EMBEDDING_API_URL.

  - name: HOSTED_VAD_API_URL
    value: "https://vad.omiapi.com/v1/vad"
  - name: HOSTED_SPEECH_PROFILE_API_URL
    value: "https://vad.omiapi.com/v1/speaker-identification"
  - name: HOSTED_SPEAKER_EMBEDDING_API_URL
    value: "https://diarizer.omiapi.com"

Comment on lines 106 to +109
- name: HOSTED_VAD_API_URL
value: "http://172.16.128.101:8080/v1/vad"
value: "http://vad.omi.me:80/v1/vad"
- name: HOSTED_SPEECH_PROFILE_API_URL
value: "http://172.16.128.101:8080/v1/speaker-identification"
value: "http://vad.omi.me:80/v1/speaker-identification"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-critical critical

The service URLs for the production environment are configured to use http. This is a critical security vulnerability as it transmits data without encryption. All production endpoints must use https to protect data integrity and confidentiality. While not part of this change, please note that HOSTED_SPEAKER_EMBEDDING_API_URL on line 110 should also be updated to use https for consistency and security.

  - name: HOSTED_VAD_API_URL
    value: "https://vad.omi.me/v1/vad"
  - name: HOSTED_SPEECH_PROFILE_API_URL
    value: "https://vad.omi.me/v1/speaker-identification"

Comment on lines 105 to +110
- name: HOSTED_VAD_API_URL
value: "http://34.172.155.20:80/v1/vad"
value: "http://vad.omiapi.com:80/v1/vad"
- name: HOSTED_SPEECH_PROFILE_API_URL
value: "http://34.172.155.20:80/v1/speaker-identification"
value: "http://vad.omiapi.com:80/v1/speaker-identification"
- name: HOSTED_SPEAKER_EMBEDDING_API_URL
value: "http://34.172.155.20:80"
value: "http://diarizer.omiapi.com:80"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-critical critical

The service URLs are configured with http, which is insecure. All communication should be over https to encrypt the data in transit and prevent potential security breaches. This applies to HOSTED_VAD_API_URL, HOSTED_SPEECH_PROFILE_API_URL, and HOSTED_SPEAKER_EMBEDDING_API_URL.

  - name: HOSTED_VAD_API_URL
    value: "https://vad.omiapi.com/v1/vad"
  - name: HOSTED_SPEECH_PROFILE_API_URL
    value: "https://vad.omiapi.com/v1/speaker-identification"
  - name: HOSTED_SPEAKER_EMBEDDING_API_URL
    value: "https://diarizer.omiapi.com"

@beastoin beastoin merged commit 85b6c25 into main Dec 31, 2025
1 check passed
@beastoin beastoin deleted the task/adjust-embedding-api-url-on-dev branch December 31, 2025 03:40
@beastoin
Copy link
Collaborator

lgtm @thainguyensunya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants