-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(application-system-api-worker): Add missing user notification url #17140
Conversation
WalkthroughThe pull request introduces changes primarily to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (8)
🧰 Additional context used📓 Path-based instructions (1)apps/application-system/api/infra/application-system-api.ts (1)Pattern
🔇 Additional comments (10)charts/services/application-system-api-worker/values.prod.yaml (2)
While using HTTP for internal Kubernetes service communication is common, consider using HTTPS for enhanced security, especially for sensitive user notification data. Also, verify that this URL is consistent with other internal service URLs in the cluster. ✅ Verification successfulHTTP is the standard protocol for internal Kubernetes service communication Based on the comprehensive search results, HTTP is consistently used for all internal service-to-service communication within the Kubernetes cluster (.svc.cluster.local endpoints). This is a standard practice in Kubernetes environments since:
The current configuration is consistent with Kubernetes best practices and aligns with all other internal service URLs in the cluster. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if other services use HTTPS for internal communication
rg "http://.+\.svc\.cluster\.local" -A 1 -B 1
rg "https://.+\.svc\.cluster\.local" -A 1 -B 1
Length of output: 57270 Line range hint The file header indicates that manual changes will be overwritten. Please ensure you're updating the source configuration that generates these files by running "yarn charts". ✅ Verification successfulWarning: Confirmed auto-generated file - update source configuration Based on the verification of
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if there's a source configuration file that generates these values
fd -g "*application-system-api-worker*" -t f | grep -v "values\."
Length of output: 67 Script: #!/bin/bash
# Let's check for any files related to chart generation or configuration
fd -g "*.yaml" -t f charts/services/application-system-api-worker/
# Also check for any package.json that might contain the "charts" script
fd "package.json" -t f | xargs rg "charts"
Length of output: 487 Script: #!/bin/bash
# Let's check the chart generation script to understand the source of truth
cat infra/src/cli/generate-chart-values.ts
# Also check if there's a configuration file that serves as input
fd -g "*.ts" -t f infra/src/ | xargs rg "application-system-api-worker"
Length of output: 2623 Script: #!/bin/bash
# Let's check the configuration in uber-charts directory
fd -g "*.ts" infra/src/uber-charts/ | xargs rg -A 5 "application-system-api-worker"
# Also check the environments configuration
fd -g "*.ts" infra/src/environments/ | xargs cat
Length of output: 245 charts/services/application-system-api-worker/values.staging.yaml (1)
The user notification service URL is identical across all environments (dev/staging/prod). Typically, different environments would have environment-specific configurations. Please verify if this is intentional. ✅ Verification successfulUsing identical service URL across environments is intentional and correct The identical URL Looking at the context:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check for environment-specific service URLs in other configurations
rg "web-user-notification" -A 1 -B 1
Length of output: 8710 charts/services/application-system-api-worker/values.dev.yaml (1)
The URL uses Kubernetes service discovery pattern (.svc.cluster.local). Please verify:
✅ Verification successfulService discovery configuration is correctly set up The verification confirms:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check for references to the user-notification service and namespace
rg "user-notification\.svc\.cluster\.local" -A 1 -B 1
# Check for namespace grants
rg "grantNamespaces:" -A 5 | grep "user-notification"
Length of output: 15930 infra/src/uber-charts/islandis.ts (1)
The addition of userNotificationService to appSystemApiWorkerSetup is properly implemented and follows the established pattern for service integration in the codebase. apps/application-system/api/infra/application-system-api.ts (2)
The workerSetup function signature has been properly updated to accept the userNotificationService parameter with the correct type.
The USER_NOTIFICATION_API_URL is properly configured using the ref helper to construct the service URL, following the established pattern in the codebase. charts/islandis/values.staging.yaml (1)
The USER_NOTIFICATION_API_URL is properly set to use internal service communication with the correct service and namespace. charts/islandis/values.prod.yaml (1)
The addition of USER_NOTIFICATION_API_URL follows the proper Kubernetes service naming pattern. Let's verify the service exists and is accessible: ✅ Verification successfulService configuration verified in Helm charts The
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify user-notification service exists and is accessible
# Check if the service exists in the user-notification namespace
kubectl get service web-user-notification -n user-notification 2>/dev/null
# Check if there are any endpoints for the service
kubectl get endpoints web-user-notification -n user-notification 2>/dev/null
Length of output: 131 Script: #!/bin/bash
# Let's verify the service configuration in the Helm charts
# Check if the service is defined in Helm charts
fd -e yaml -e yml . charts/islandis --exec grep -l "web-user-notification"
# Check for service configuration in kubernetes manifests
fd -e yaml -e yml . charts/islandis --exec grep -A5 -B5 "web-user-notification"
# Look for related configuration or references
rg "user-notification" charts/islandis/
Length of output: 19407 charts/islandis/values.dev.yaml (1)
The USER_NOTIFICATION_API_URL configuration in development environment matches the pattern used in production. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17140 +/- ##
=======================================
Coverage 35.74% 35.74%
=======================================
Files 6925 6925
Lines 147569 147569
Branches 42010 42039 +29
=======================================
Hits 52747 52747
Misses 94822 94822
Flags with carried forward coverage won't be shown. Click here to find out more. see 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Datadog ReportBranch report: ✅ 0 Failed, 84 Passed, 0 Skipped, 25.39s Total Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…rl (#17140) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
...
Attach a link to issue if relevant
What
Specify what you're trying to achieve
Why
Specify why you need to achieve this
Screenshots / Gifs
Attach Screenshots / Gifs to help reviewers understand the scope of the pull request
Checklist:
Summary by CodeRabbit
USER_NOTIFICATION_API_URL
across multiple services to enhance connectivity with the user notification API.