Skip to content

Crash on accessing configuration page #1366

@aacater

Description

@aacater

Version: 0.14.0

04.06.2025 17:37:58  INFO warpgate::commands::run: Warpgate version=unknown
04.06.2025 17:37:58  INFO warpgate::config: Using config: "/data/warpgate.yaml"
04.06.2025 17:37:58  INFO warpgate_protocol_ssh::server: Listening address=0.0.0.0:2222
04.06.2025 17:37:58  INFO warpgate_protocol_http: Listening address=0.0.0.0:8888
04.06.2025 17:38:57  INFO HTTP: warpgate_protocol_http::logging: Request method=GET url=/@warpgate status=200 OK client_ip=10.10.2.213
04.06.2025 17:39:13 ERROR HTTP: warpgate_protocol_http::api::auth: Auth rejected
04.06.2025 17:39:13  WARN HTTP: warpgate_protocol_http::logging: Request failed method=POST url=/@warpgate/api/auth/login status=401 Unauthorized client_ip=10.10.2.213
04.06.2025 17:39:14  INFO HTTP: warpgate_common::auth::state: Authenticated username=aacater credentials=password, one-time password
04.06.2025 17:39:14  INFO HTTP: warpgate_common::auth::state: Authenticated username=aacater credentials=password, one-time password
04.06.2025 17:39:14  INFO HTTP: warpgate_protocol_http::logging: Request method=POST url=/@warpgate/api/auth/otp status=201 Created client_ip=10.10.2.213
04.06.2025 17:39:14  INFO HTTP{session=43ec795a-af01-42c5-b757-80c1bd9ec7f4 session_username=aacater client_ip=10.10.2.213}: warpgate_protocol_http::logging: Request method=GET url=/@warpgate/api/info status=200 OK client_ip=10.10.2.213
04.06.2025 17:39:14  INFO HTTP{session=43ec795a-af01-42c5-b757-80c1bd9ec7f4 session_username=aacater client_ip=10.10.2.213}: warpgate_protocol_http::logging: Request method=GET url=/@warpgate/admin status=200 OK client_ip=10.10.2.213
04.06.2025 17:39:14  INFO HTTP{session=43ec795a-af01-42c5-b757-80c1bd9ec7f4 session_username=aacater client_ip=10.10.2.213}: warpgate_common::auth::state: Authenticated username=aacater credentials=password, one-time password
04.06.2025 17:39:14  INFO HTTP{session=43ec795a-af01-42c5-b757-80c1bd9ec7f4 session_username=aacater client_ip=10.10.2.213}: warpgate_protocol_http::logging: Request method=GET url=/@warpgate/api/auth/web-auth-requests status=200 OK client_ip=10.10.2.213
04.06.2025 17:39:14  INFO HTTP{session=43ec795a-af01-42c5-b757-80c1bd9ec7f4 session_username=aacater client_ip=10.10.2.213}: warpgate_protocol_http::logging: Request method=GET url=/@warpgate/api/info status=200 OK client_ip=10.10.2.213
thread 'tokio-runtime-worker' panicked at /reproducible-cwd/src/auth/api_key.rs:44:18:
internal error: entered unreachable code
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: <warpgate_admin::api::AnySecurityScheme as poem_openapi::base::ApiExtractor>::from_request::{{closure}}
   4: <poem::endpoint::after::After<E,F> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
   5: <alloc::boxed::Box<T> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}.50807
   6: <poem::endpoint::map_to_response::MapToResponse<E> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
   7: <alloc::boxed::Box<T> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}.50807
   8: <poem::endpoint::map_to_response::MapToResponse<E> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
   9: <alloc::boxed::Box<T> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}.50807
  10: <poem::endpoint::map_to_response::MapToResponse<E> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  11: <alloc::boxed::Box<T> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  12: <poem::route::router::Route::internal_nest::Nest<E> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
04.06.2025 17:39:14  INFO HTTP{session=43ec795a-af01-42c5-b757-80c1bd9ec7f4 session_username=aacater client_ip=10.10.2.213}: warpgate_protocol_http::logging: Request method=GET url=/@warpgate/admin/api/sessions/changes status=101 Switching Protocols client_ip=10.10.2.213
  13: <alloc::boxed::Box<T> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  14: <poem::route::router::Route as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  15: <poem::route::router::Route::internal_nest::Nest<E> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  16: <alloc::boxed::Box<T> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  17: <poem::route::router::Route as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  18: <poem::route::router::Route::internal_nest::Nest<E> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  19: <alloc::sync::Arc<T> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  20: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
  21: <warpgate_protocol_http::middleware::ticket::TicketMiddlewareEndpoint<E> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  22: <poem::session::server_session::ServerSessionEndpoint<T,E> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  23: <poem::endpoint::map_to_response::MapToResponse<E> as poem::endpoint::endpoint::Endpoint>::call::{{closure}}
  24: <hyper::server::conn::http1::UpgradeableConnection<I,S> as core::future::future::Future>::poll
  25: <core::pin::Pin<P> as core::future::future::Future>::poll
  26: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  27: tokio::runtime::task::core::Core<T,S>::poll
  28: tokio::runtime::task::raw::poll
  29: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
  30: tokio::runtime::task::raw::poll
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

I can login and access the targets page. However, when I click on 'manage warpgate', warpgate crashes. I am able to access the targets like normal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions