Files
windmill/backend/windmill-api-workspaces/src/workspaces_oss.rs
Ruben Fiszel 3959fe8297 feat: add workspace-level service accounts (#8560)
* feat: add workspace-level service accounts (EE)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* sqlx

* sqlx

* chore: update ee-repo-ref

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 19:23:03 +00:00

37 lines
1003 B
Rust

#[cfg(feature = "private")]
#[allow(unused)]
pub use crate::workspaces_ee::*;
#[cfg(not(feature = "private"))]
use crate::workspaces::{EditAutoInvite, NewServiceAccount};
#[cfg(not(feature = "private"))]
use http::StatusCode;
#[cfg(not(feature = "private"))]
use windmill_api_auth::ApiAuthed;
#[cfg(not(feature = "private"))]
use windmill_common::DB;
#[cfg(not(feature = "private"))]
pub async fn edit_auto_invite(
_authed: ApiAuthed,
_db: DB,
_w_id: String,
_ea: EditAutoInvite,
) -> windmill_common::error::Result<String> {
Err(windmill_common::error::Error::internal_err(
"Not implemented on OSS".to_string(),
))
}
#[cfg(not(feature = "private"))]
pub async fn create_service_account(
_authed: ApiAuthed,
_db: DB,
_w_id: String,
_nu: NewServiceAccount,
) -> windmill_common::error::Result<(StatusCode, String)> {
Err(windmill_common::error::Error::BadRequest(
"Service accounts require Windmill Enterprise Edition".to_string(),
))
}