-
Notifications
You must be signed in to change notification settings - Fork 377
Australia au-nswrtm1 cluster mobius url hardcoding for validation #4394
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
base: next
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -133,6 +133,7 @@ export class Registration implements IRegistration { | |||||||||||
} | ||||||||||||
|
||||||||||||
public setActiveMobiusUrl(url: string) { | ||||||||||||
url = "https://mobius.au-nswrtm1.a4.prod.infra.webex.com/api/v1/calling/web/" | ||||||||||||
log.info(`${METHOD_START_MESSAGE} with ${url}`, { | ||||||||||||
method: METHODS.UPDATE_ACTIVE_MOBIUS, | ||||||||||||
file: REGISTRATION_FILE, | ||||||||||||
|
@@ -637,6 +638,7 @@ export class Registration implements IRegistration { | |||||||||||
|
||||||||||||
return abort; | ||||||||||||
} | ||||||||||||
servers = ["https://mobius.au-nswrtm1.a4.prod.infra.webex.com/api/v1/calling/web/"]; | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Hardcoded server override breaks failover logic This change completely undermines the registration resilience system by forcing a single hardcoded server, which:
This change effectively disables the entire multi-server registration strategy. If this is for validation purposes, consider a configuration-based approach: - servers = ["https://mobius.au-nswrtm1.a4.prod.infra.webex.com/api/v1/calling/web/"];
+ // For au-nswrtm1 cluster validation, consider using environment override
+ // if (process.env.MOBIUS_VALIDATION_MODE === 'au-nswrtm1') {
+ // servers = [process.env.MOBIUS_VALIDATION_URL];
+ // } Alternative: Use feature flags or configuration parameters instead of hardcoding production URLs directly in source code. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||
for (const url of servers) { | ||||||||||||
const serverType = | ||||||||||||
(this.primaryMobiusUris.includes(url) && 'PRIMARY') || | ||||||||||||
|
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.
Critical: Remove hardcoded URL override - breaks method contract
This change completely ignores the input parameter and hardcodes a production URL, which breaks the method's intended functionality and creates several issues:
url
parameter to be usedConsider these alternatives for validation purposes:
Or use a configuration-based approach to avoid hardcoding production URLs.
📝 Committable suggestion
🤖 Prompt for AI Agents