Skip to content

config: don't include valid routingkey and queue (bug 2034672)#93

Open
shtrom wants to merge 1 commit intomainfrom
bug2034672/prod-config-invalid-routingkey-queue
Open

config: don't include valid routingkey and queue (bug 2034672)#93
shtrom wants to merge 1 commit intomainfrom
bug2034672/prod-config-invalid-routingkey-queue

Conversation

@shtrom
Copy link
Copy Markdown
Member

@shtrom shtrom commented Apr 24, 2026

This is to allow the deployment to set those values, without running the risk of stray stacks reading from legitimate traffic.

Needs https://github.com/mozilla/webservices-infra/pull/10730 to have landed and be confirmed first.

This is to allow the deployment to set those values, without running the
risk of stray stacks reading from legitimate traffic.
@shtrom shtrom marked this pull request as ready for review April 24, 2026 01:54
@shtrom shtrom requested a review from cgsheeh April 30, 2026 01:08
Comment thread config-production.toml
# The exchange is declared by the Producer.
exchange = "exchange/landoprod/pushes"
routing_key = "gitpushes"
routing_key = "SET THIS IN PULSE_ROUTING_KEY ENV VARIABLE"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps we could force this value to be read from the env var instead? ie if the value is missing from the env var there is no fallback to the config file.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This feels like it may cause some obfuscation of errors, or possibly unexpected errors. Maybe relted to what Connor is saying above? I'd rather avoid having to provide a message inside a value (i.e., we are misusing the variable here...) Either leave this as an empty string or null (if it needs to be defined here) and catch an error elsewhere to show this message, or do not include this here as a value at all.

Comment thread config-production.toml
# The exchange is declared by the Producer.
exchange = "exchange/landoprod/pushes"
routing_key = "gitpushes"
routing_key = "SET THIS IN PULSE_ROUTING_KEY ENV VARIABLE"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This feels like it may cause some obfuscation of errors, or possibly unexpected errors. Maybe relted to what Connor is saying above? I'd rather avoid having to provide a message inside a value (i.e., we are misusing the variable here...) Either leave this as an empty string or null (if it needs to be defined here) and catch an error elsewhere to show this message, or do not include this here as a value at all.

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