Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ SENTRY_ENVIRONMENT=
# Share of requests sent as performance traces (0 = errors only, 0.1 = 10%).
SENTRY_TRACES_SAMPLE_RATE=0

# ---- Single sign-on (optional) ----
# Sign in with an OpenID Connect provider (Keycloak, Authentik, Entra ID, Google, Okta...).
# Off by default. Setup guide: docs/sso.md. Register this redirect URI at your provider:
# <APP_BASE_URL>signin-oidc (for example http://localhost:8080/signin-oidc)
SSO_ENABLED=false
# Button text on the login page, e.g. "Keycloak" -> "Sign in with Keycloak".
SSO_DISPLAY_NAME=
SSO_AUTHORITY=
SSO_CLIENT_ID=
SSO_CLIENT_SECRET=
# true: create a Taskist account (Registered role only) on first sign-in. false: only existing users can sign in.
SSO_AUTO_PROVISION=false
# true: hide the password form; only administrators can still sign in with a password, at /Login?local=1.
SSO_DISABLE_LOCAL_LOGIN=false

# ---- Seeding ----
# Reference data (roles, permissions, menus, translations, admin account). Leave true for a usable install.
SEED_DATA=true
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Each release lists **Upgrade notes** when an install needs action beyond the ste
- **Appearance**: light, dark or system theme and an accent colour per user.
- **Per-user export column layouts** on top of the administrator's default.
- **Tags** for the backlog, with inline create and merge.
- **Single sign-on with OpenID Connect** (`Authentication:Oidc`, off by default): Keycloak, Authentik, Entra ID, Google, Okta and other providers. Existing users are linked by verified e-mail; optional account creation on first sign-in (*Registered* role only), optional group → role mapping (adds roles only), and an SSO-only mode that keeps password sign-in for administrators at `/Login?local=1`. Linked sign-ins are listed under My profile → Security and on the user's admin page. See [docs/sso.md](docs/sso.md). ([#11](https://github.com/Taskist/taskist/issues/11))
- **Optional Sentry error tracking** (`Sentry:Enabled` + `Sentry:Dsn`, off by default): unhandled exceptions and logged errors, with request bodies, cookies, query strings, auth headers and personal data filtered out.
- `Security:RequireHttpsCookies` and `Security:ForwardedHeaders:*` settings for plain-HTTP and reverse-proxy deployments.
- Startup checks: the Data Protection key folder must be writable; Production logs warnings for plain-HTTP cookies and an unprotected key ring.
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Taskist is a self-hosted **task, change request and bug tracker** built with ASP
<td width="50%" valign="top">

**⚙️ Administration**
- Users, roles and fine-grained permissions
- Users, roles and fine-grained permissions; optional single sign-on with any OpenID Connect provider
- Masters for clients, projects, modules, statuses, task types, severities, tags and reporters — shared or per project
- Database-driven translations, e-mail templates and settings
- Light, dark and system themes with an accent colour per user; activity log; background-jobs dashboard
Expand Down Expand Up @@ -172,10 +172,15 @@ Taskist reads `appsettings.json`, `appsettings.{Environment}.json`, user-secrets
| `App:IsBeta` / `App:BetaMessage` | `true` / text | Beta banner |
| `Sentry:Enabled` / `Sentry:Dsn` | `false` / — | Optional error tracking with [Sentry](https://sentry.io): unhandled exceptions and logged errors. Needs both; see [SECURITY.md](SECURITY.md#error-tracking-optional) for what is sent |
| `Sentry:Environment` / `Sentry:TracesSampleRate` | environment name / `0` | Sentry environment label; share of requests sent as performance traces (`0` = errors only) |
| `Authentication:Oidc:Enabled` | `false` | Single sign-on with an OpenID Connect provider (Keycloak, Authentik, Entra ID, Google, Okta…). Needs `Authority` and `ClientId`; see [docs/sso.md](docs/sso.md) |
| `Authentication:Oidc:Authority` / `ClientId` / `ClientSecret` | — | Provider address and the client registered there. Redirect URI to register: `{App:BaseUrl}signin-oidc` |
| `Authentication:Oidc:AutoProvision` | `false` | Create a Taskist account (*Registered* role only) on first sign-in. Off = only existing users can sign in |
| `Authentication:Oidc:RoleClaim` / `RoleMappings` | — | Optional: add Taskist roles from provider groups, e.g. `{"taskist-leads": "TeamLead"}`. Only adds roles, never removes them |
| `Authentication:Oidc:DisableLocalLogin` | `false` | Hide the password form. Administrators can still sign in with a password at `/Login?local=1` |

Everything else — password policy, lockout, session length, e-mail, Git, notifications, report layouts — lives in the app under **Configuration → Settings**.

**Behind a reverse proxy** (nginx, Traefik, IIS, a cloud load balancer): keep `RequireHttpsCookies=true`, set `ForwardedHeaders:Enabled=true` and list the proxy in `KnownProxies` or `KnownNetworks`, and set `App:BaseUrl` to the public `https://` address. In Docker these are `TASKIST_REQUIRE_HTTPS_COOKIES`, `TASKIST_FORWARDED_HEADERS`, `TASKIST_PROXY_NETWORK` and `APP_BASE_URL` in `.env`; Sentry uses `SENTRY_ENABLED`, `SENTRY_DSN`, `SENTRY_ENVIRONMENT` and `SENTRY_TRACES_SAMPLE_RATE`.
**Behind a reverse proxy** (nginx, Traefik, IIS, a cloud load balancer): keep `RequireHttpsCookies=true`, set `ForwardedHeaders:Enabled=true` and list the proxy in `KnownProxies` or `KnownNetworks`, and set `App:BaseUrl` to the public `https://` address. In Docker these are `TASKIST_REQUIRE_HTTPS_COOKIES`, `TASKIST_FORWARDED_HEADERS`, `TASKIST_PROXY_NETWORK` and `APP_BASE_URL` in `.env`; Sentry uses `SENTRY_ENABLED`, `SENTRY_DSN`, `SENTRY_ENVIRONMENT` and `SENTRY_TRACES_SAMPLE_RATE`; single sign-on uses the `SSO_*` variables.


<a name="database"></a>
Expand Down
13 changes: 13 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@ Secrets are write-only in the UI and are never written to the activity log.
- The forgot-password endpoint is rate limited per IP address.
- Change the seeded `admin@taskist.org` password immediately after installation.

### Single sign-on (optional)

Taskist can sign users in through an OpenID Connect provider (`Authentication:Oidc`, off by default; setup in [docs/sso.md](docs/sso.md)).

- **Protocol:** authorization code flow with PKCE; state and nonce are checked, and the provider's signing keys and issuer are taken from its discovery document over HTTPS (`RequireHttpsMetadata`, on by default). Provider tokens are not stored.
- **Client secret** comes from configuration or environment variables only and is never stored in the database or shown in the UI.
- **Matching users:** a sign-in is tied to the provider's issuer and subject ID. On the first sign-in it is linked to an existing Taskist account only when the provider reports the e-mail address as **verified** (`RequireVerifiedEmail`, on by default), and never to an account already linked to a different identity at the same provider.
- **New accounts** are created only when `AutoProvision` is on, and get the *Registered* role only — no project access until an administrator grants it.
- **Role mapping** (`RoleClaim` + `RoleMappings`) only adds the roles listed in the mapping; it never removes roles and cannot grant a role that isn't listed. Mapping a group to `SystemAdministrator` makes that group's membership at the provider equivalent to admin rights in Taskist — do so deliberately.
- **Account status still applies:** locked, inactive and deleted users are refused, and existing sessions are re-checked every 15 minutes as before.
- **SSO-only mode** (`DisableLocalLogin`) hides the password form and refuses password sign-in for everyone except system administrators, who keep it at `/Login?local=1` so a broken identity provider can't lock you out. Keep at least one administrator with a strong password.
- Signing out of Taskist does not sign the user out of the identity provider.

### Wiki access

- A project's wiki — page content, tree, history, linked tasks and Word export — is visible only to members of that project who also hold the *Wiki* permission. Requests for pages in other projects get an empty or "not found" response that does not reveal whether the page exists.
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ services:
Sentry__Dsn: ${SENTRY_DSN:-}
Sentry__Environment: ${SENTRY_ENVIRONMENT:-}
Sentry__TracesSampleRate: ${SENTRY_TRACES_SAMPLE_RATE:-0}
# optional single sign-on; see SSO_* in .env.example and docs/sso.md
Authentication__Oidc__Enabled: ${SSO_ENABLED:-false}
Authentication__Oidc__DisplayName: ${SSO_DISPLAY_NAME:-}
Authentication__Oidc__Authority: ${SSO_AUTHORITY:-}
Authentication__Oidc__ClientId: ${SSO_CLIENT_ID:-}
Authentication__Oidc__ClientSecret: ${SSO_CLIENT_SECRET:-}
Authentication__Oidc__AutoProvision: ${SSO_AUTO_PROVISION:-false}
Authentication__Oidc__DisableLocalLogin: ${SSO_DISABLE_LOCAL_LOGIN:-false}
ports:
- "${TASKIST_PORT:-8080}:8080"
volumes:
Expand Down
Loading
Loading