Compare commits

...
8 Commits
12 changed files with 55 additions and 40 deletions

No files matched your search

+9
View File
@@ -1,3 +1,12 @@
# Continuwuity 26.6.2 (2026-07-12)
## Bugfixes
- Fixed the server returning 500 errors if `admin_console_automatic` is enabled and no TTY is available. Contributed by @s1lv3r. (#1975)
- Fixed `global.oauth.compatibility_mode` being required, despite being ignored, when the `[global.oauth.oidc]` config section is provided.
- Fixed an issue with a migration that could cause user accounts imported from an identity provider to be marked as deactivated when the server started. If you have accounts affected by this issue, use `!admin users reset-password --convert-to-local-account` to reactivate them.
# Continuwuity 26.6.1 (2026-07-12) # Continuwuity 26.6.1 (2026-07-12)
## Features ## Features
Generated
+12 -12
View File
@@ -826,7 +826,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit" name = "conduwuit"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"aws-lc-rs", "aws-lc-rs",
"clap", "clap",
@@ -864,7 +864,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit_admin" name = "conduwuit_admin"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"assign", "assign",
"clap", "clap",
@@ -890,7 +890,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit_api" name = "conduwuit_api"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"assign", "assign",
"async-trait", "async-trait",
@@ -928,7 +928,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit_build_metadata" name = "conduwuit_build_metadata"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"built", "built",
"cargo_metadata", "cargo_metadata",
@@ -936,7 +936,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit_core" name = "conduwuit_core"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"argon2", "argon2",
"arrayvec", "arrayvec",
@@ -1004,7 +1004,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit_database" name = "conduwuit_database"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"async-channel", "async-channel",
"conduwuit_core", "conduwuit_core",
@@ -1025,7 +1025,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit_macros" name = "conduwuit_macros"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"cargo_toml", "cargo_toml",
"itertools 0.15.0", "itertools 0.15.0",
@@ -1036,7 +1036,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit_router" name = "conduwuit_router"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"assign", "assign",
"axum", "axum",
@@ -1074,7 +1074,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit_service" name = "conduwuit_service"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"askama", "askama",
"assign", "assign",
@@ -1126,7 +1126,7 @@ dependencies = [
[[package]] [[package]]
name = "conduwuit_web" name = "conduwuit_web"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"askama", "askama",
"assign", "assign",
@@ -4799,7 +4799,7 @@ dependencies = [
[[package]] [[package]]
name = "ruminuwuity" name = "ruminuwuity"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"assign", "assign",
"ruma", "ruma",
@@ -6972,7 +6972,7 @@ dependencies = [
[[package]] [[package]]
name = "xtask" name = "xtask"
version = "26.6.1" version = "26.6.2"
dependencies = [ dependencies = [
"askama", "askama",
"cargo_metadata", "cargo_metadata",
+1 -1
View File
@@ -12,7 +12,7 @@ license = "Apache-2.0"
# See also `rust-toolchain.toml` # See also `rust-toolchain.toml`
readme = "README.md" readme = "README.md"
repository = "https://forgejo.ellis.link/continuwuation/continuwuity" repository = "https://forgejo.ellis.link/continuwuation/continuwuity"
version = "26.6.1" version = "26.6.2"
[workspace.metadata.crane] [workspace.metadata.crane]
name = "conduwuit" name = "conduwuit"
@@ -9,7 +9,7 @@
"id": 15, "id": 15,
"mention_room": true, "mention_room": true,
"date": "2026-07-10", "date": "2026-07-10",
"message": "[Continuwuity 26.6.0](https://forgejo.ellis.link/continuwuation/continuwuity/releases/tag/v26.6.0) is finally out! This is by far our largest release yet, and it wouldn't have been possible without our community. Thank you so much for all of your patience, support, and/or development time over the last three months <3" "message": "[Continuwuity 26.6.1](https://forgejo.ellis.link/continuwuation/continuwuity/releases/tag/v26.6.1) has just been released! This release contains a bunch of bugfixes for bugs found initially after 26.6.0's release - please read the changelog before updating!"
} }
] ]
} }
+1 -1
View File
@@ -1014,7 +1014,7 @@ impl crate::Context<'_> {
let resolver: &MatrixResolver = if no_cache { let resolver: &MatrixResolver = if no_cache {
&MatrixResolverBuilder::new() &MatrixResolverBuilder::new()
.dangerous_tls_accept_invalid_certs(self.services.server.config.allow_invalid_tls_certificates_yes_i_know_what_the_fuck_i_am_doing_with_this_and_i_know_this_is_insecure) .dangerous_tls_accept_invalid_certs(self.services.server.config.allow_invalid_tls_certificates_yes_i_know_what_the_fuck_i_am_doing_with_this_and_i_know_this_is_insecure)
.http_client(self.services.client.default.clone()) .http_client(self.services.client.dns.clone())
.build()? .build()?
} else { } else {
&self.services.client.matrix_resolver &self.services.client.matrix_resolver
+1 -1
View File
@@ -54,7 +54,7 @@ impl crate::Context<'_> {
let response = self let response = self
.services .services
.client .client
.default .external_resource
.get(format!("https://{server_name}/.well-known/matrix/support")) .get(format!("https://{server_name}/.well-known/matrix/support"))
.send() .send()
.await?; .await?;
+1
View File
@@ -2442,6 +2442,7 @@ pub struct OauthConfig {
/// legacy authentication will be unable to log in. /// legacy authentication will be unable to log in.
/// ///
/// default: "hybrid" /// default: "hybrid"
#[serde(default)]
compatibility_mode: OAuthMode, compatibility_mode: OAuthMode,
/// display: hidden /// display: hidden
+10 -2
View File
@@ -1,4 +1,6 @@
use conduwuit::{Err, Result, debug, debug_info, error, info}; use std::io::IsTerminal;
use conduwuit::{Err, Result, debug, debug_info, error, info, warn};
use ruma::events::room::message::RoomMessageEventContent; use ruma::events::room::message::RoomMessageEventContent;
use tokio::time::{Duration, sleep}; use tokio::time::{Duration, sleep};
@@ -7,10 +9,16 @@ use crate::admin::InvocationSource;
pub(super) const SIGNAL: &str = "SIGUSR2"; pub(super) const SIGNAL: &str = "SIGUSR2";
impl super::Service { impl super::Service {
/// Possibly spawn the terminal console at startup if configured. /// Possibly spawn the terminal console at startup if configured and a TTY
/// is available.
pub(super) async fn console_auto_start(&self) { pub(super) async fn console_auto_start(&self) {
#[cfg(feature = "console")] #[cfg(feature = "console")]
if self.services.server.config.admin_console_automatic { if self.services.server.config.admin_console_automatic {
if !std::io::stdin().is_terminal() {
warn!("Console enabled without a tty available; Not enabling console");
return;
}
// Allow more of the startup sequence to execute before spawning // Allow more of the startup sequence to execute before spawning
tokio::task::yield_now().await; tokio::task::yield_now().await;
self.console.start().await; self.console.start().await;
+1 -1
View File
@@ -134,7 +134,7 @@ impl Service {
let response = self let response = self
.services .services
.client .client
.default .external_resource
.get(CHECK_FOR_ANNOUNCEMENTS_URL) .get(CHECK_FOR_ANNOUNCEMENTS_URL)
.send() .send()
.await? .await?
+14 -19
View File
@@ -16,9 +16,9 @@ pub struct Service {
pub matrix_resolver: Arc<MatrixResolver>, pub matrix_resolver: Arc<MatrixResolver>,
pub dns_resolver: Arc<TokioResolver>, pub dns_resolver: Arc<TokioResolver>,
pub default: reqwest::Client, pub dns: reqwest::Client,
pub url_preview: reqwest::Client, pub url_preview: reqwest::Client,
pub extern_media: reqwest::Client, pub external_resource: reqwest::Client,
pub federation: reqwest::Client, pub federation: reqwest::Client,
pub federation_slow: reqwest::Client, pub federation_slow: reqwest::Client,
pub sender: reqwest::Client, pub sender: reqwest::Client,
@@ -35,17 +35,17 @@ impl crate::Service for Service {
let dns_resolver = get_dns_resolver(args.server)?; let dns_resolver = get_dns_resolver(args.server)?;
let dns_client = base(&args.server.config)?
.connect_timeout(Duration::from_secs(args.server.config.well_known_conn_timeout))
.read_timeout(Duration::from_secs(args.server.config.well_known_timeout))
.timeout(Duration::from_secs(args.server.config.well_known_timeout))
.pool_max_idle_per_host(0)
.redirect(redirect::Policy::limited(4))
.build()?;
let matrix_resolver = Arc::new(MatrixResolverBuilder::new() let matrix_resolver = Arc::new(MatrixResolverBuilder::new()
.dangerous_tls_accept_invalid_certs(args.server.config.allow_invalid_tls_certificates_yes_i_know_what_the_fuck_i_am_doing_with_this_and_i_know_this_is_insecure) .dangerous_tls_accept_invalid_certs(args.server.config.allow_invalid_tls_certificates_yes_i_know_what_the_fuck_i_am_doing_with_this_and_i_know_this_is_insecure)
.http_client( .http_client(dns_client.clone())
base(&args.server.config)?
.connect_timeout(Duration::from_secs(args.server.config.well_known_conn_timeout))
.read_timeout(Duration::from_secs(args.server.config.well_known_timeout))
.timeout(Duration::from_secs(args.server.config.well_known_timeout))
.pool_max_idle_per_host(0)
.redirect(redirect::Policy::limited(4))
.build()?
)
.dns_resolver(dns_resolver.clone()) .dns_resolver(dns_resolver.clone())
.build()?); .build()?);
let matrix_dns_resolver = matrix_resolver.create_dns_resolver(); let matrix_dns_resolver = matrix_resolver.create_dns_resolver();
@@ -69,23 +69,19 @@ impl crate::Service for Service {
matrix_resolver, matrix_resolver,
dns_resolver, dns_resolver,
default: base(config)? dns: dns_client,
.dns_resolver(matrix_dns_resolver.clone())
.build()?,
url_preview: base(config) url_preview: base(config)
.and_then(|builder| { .and_then(|builder| {
builder_interface(builder, url_preview_bind_iface.as_deref()) builder_interface(builder, url_preview_bind_iface.as_deref())
})? })?
.local_address(url_preview_bind_addr) .local_address(url_preview_bind_addr)
.dns_resolver(matrix_dns_resolver.clone())
.timeout(Duration::from_secs(config.url_preview_timeout)) .timeout(Duration::from_secs(config.url_preview_timeout))
.redirect(redirect::Policy::limited(3)) .redirect(redirect::Policy::limited(3))
.user_agent(url_preview_user_agent) .user_agent(url_preview_user_agent)
.build()?, .build()?,
extern_media: base(config)? external_resource: base(config)?
.dns_resolver(matrix_dns_resolver.clone())
.redirect(redirect::Policy::limited(3)) .redirect(redirect::Policy::limited(3))
.build()?, .build()?,
@@ -128,7 +124,7 @@ impl crate::Service for Service {
.build()?, .build()?,
appservice: base(config)? appservice: base(config)?
.dns_resolver(matrix_dns_resolver.clone()) .dns_resolver(matrix_dns_resolver)
.connect_timeout(Duration::from_secs(5)) .connect_timeout(Duration::from_secs(5))
.read_timeout(Duration::from_secs(config.appservice_timeout)) .read_timeout(Duration::from_secs(config.appservice_timeout))
.timeout(Duration::from_secs(config.appservice_timeout)) .timeout(Duration::from_secs(config.appservice_timeout))
@@ -138,7 +134,6 @@ impl crate::Service for Service {
.build()?, .build()?,
pusher: base(config)? pusher: base(config)?
.dns_resolver(matrix_dns_resolver)
.connect_timeout(Duration::from_secs(config.pusher_conn_timeout)) .connect_timeout(Duration::from_secs(config.pusher_conn_timeout))
.timeout(Duration::from_secs(config.pusher_timeout)) .timeout(Duration::from_secs(config.pusher_timeout))
.pool_max_idle_per_host(1) .pool_max_idle_per_host(1)
+1 -1
View File
@@ -260,7 +260,7 @@ impl super::Service {
let response = self let response = self
.services .services
.client .client
.extern_media .external_resource
.get(location) .get(location)
.send() .send()
.await?; .await?;
+3 -1
View File
@@ -882,7 +882,7 @@ async fn split_userid_password(services: &Services) -> Result {
drop(cork); drop(cork);
info!(?remote_users, "Split userid_password."); info!(?remote_users, "Split userid_password.");
db["global"].insert(FIXED_LOCAL_INVITE_STATE_MARKER, []); db["global"].insert(SPLIT_USERID_PASSWORD, []);
db.db.sort()?; db.db.sort()?;
Ok(()) Ok(())
} }
@@ -895,5 +895,7 @@ async fn obliterate_roomsynctoken_shortstatehash_with_extreme_prejudice(
info!("Cleared roomsynctoken_shortstatehash."); info!("Cleared roomsynctoken_shortstatehash.");
services.db["global"].insert(DROP_ROOMSYNCTOKEN_SHORTSTATEHASH, []);
Ok(()) Ok(())
} }