Page MenuHomePhabricator

[tunnelbroker] Allow configuring AMQP credentials
ClosedPublic

Authored by bartek on Sep 12 2023, 1:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 5:10 PM
Unknown Object (File)
Wed, Nov 20, 5:10 PM
Unknown Object (File)
Wed, Nov 20, 5:10 PM
Unknown Object (File)
Wed, Nov 20, 5:08 PM
Unknown Object (File)
Fri, Nov 8, 9:20 PM
Unknown Object (File)
Tue, Nov 5, 8:22 AM
Unknown Object (File)
Tue, Nov 5, 6:55 AM
Unknown Object (File)
Oct 22 2024, 9:10 AM
Subscribers

Details

Summary

We need a way to provide RabbitMQ credentials, without providing them in AMQP URI, since AWS doesn't expose authenticated URI.
Also, made AMQP URI configurable via env vars

Test Plan

Ran external RabbitMQ with custom credentials and configured tunnelbroker using environment variables

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Sep 12 2023, 2:02 PM
bartek added inline comments.
services/tunnelbroker/src/amqp.rs
24 ↗(On Diff #30987)

Clippy fix

services/tunnelbroker/src/amqp.rs
23 ↗(On Diff #30987)

Just making sure - this won't print the env-provided credentials right?

services/tunnelbroker/src/config.rs
19 ↗(On Diff #30987)

Can we do something similar to reqwest::Url, and remove the expect in connect?

services/tunnelbroker/src/amqp.rs
23 ↗(On Diff #30987)

No, it won't

services/tunnelbroker/src/config.rs
19 ↗(On Diff #30987)

We could, the only problem is that this type doesn't implement Display so we cannot easily log it.

This revision is now accepted and ready to land.Sep 13 2023, 5:44 AM