Skip to content

Commit efd5dbf

Browse files
committed
fix: remove serverless token
1 parent 0a3b64c commit efd5dbf

File tree

2 files changed

+2
-28
lines changed
  • engine
    • packages/pegboard-outbound/src
    • sdks/typescript/envoy-client/src/tasks/envoy

2 files changed

+2
-28
lines changed

engine/packages/pegboard-outbound/src/lib.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use vbare::OwnedVersionedData;
1717
mod metrics;
1818

1919
const X_RIVET_ENDPOINT: HeaderName = HeaderName::from_static("x-rivet-endpoint");
20-
const X_RIVET_TOKEN: HeaderName = HeaderName::from_static("x-rivet-token");
2120
const X_RIVET_POOL_NAME: HeaderName = HeaderName::from_static("x-rivet-pool-name");
2221
const X_RIVET_NAMESPACE_NAME: HeaderName = HeaderName::from_static("x-rivet-namespace-name");
2322
const SHUTDOWN_PROGRESS_INTERVAL: Duration = Duration::from_secs(7);
@@ -249,10 +248,6 @@ async fn handle(ctx: &StandaloneCtx, packet: protocol::ToOutbound) -> Result<()>
249248
&url,
250249
headers,
251250
request_lifespan,
252-
ctx.config()
253-
.auth
254-
.as_ref()
255-
.map(|a| a.admin_token.read().as_str()),
256251
)
257252
.await;
258253

@@ -275,17 +270,10 @@ async fn serverless_outbound_req(
275270
url: &str,
276271
headers: HashMap<String, String>,
277272
request_lifespan: u32,
278-
token: Option<&str>,
279273
) -> Result<()> {
280274
let current_dc = ctx.config().topology().current_dc()?;
281275
let mut term_signal = TermSignal::get();
282276

283-
let token = if let Some(token) = token {
284-
Some((X_RIVET_TOKEN, HeaderValue::try_from(token)?))
285-
} else {
286-
None
287-
};
288-
289277
let headers = headers
290278
.into_iter()
291279
.flat_map(|(k, v)| {
@@ -306,7 +294,6 @@ async fn serverless_outbound_req(
306294
HeaderValue::try_from(namespace_name)?,
307295
),
308296
])
309-
.chain(token)
310297
.collect();
311298

312299
let endpoint_url = format!("{}/start", url.trim_end_matches('/'));

engine/sdks/typescript/envoy-client/src/tasks/envoy/index.ts

Lines changed: 2 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)