Skip to content

Commit 4d79ef9

Browse files
committed
#278 refactor comments
1 parent e88c3d1 commit 4d79ef9

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ STACKABLE_COCKPIT_OIDC_CLIENT_SECRET=your-client-secret
4646
# PUBLIC_STACKABLE_COCKPIT_UPLOAD_CONCURRENCY=3 # Maximum number of concurrent file uploads (default: 3)
4747

4848
# OPA (Open Policy Agent) — admin rights checking
49-
# STACKABLE_COCKPIT_OPA_ENABLED=true # Enable OPA admin checks (default: false)
49+
# STACKABLE_COCKPIT_OPA_ENABLED=true # Enable OPA admin checks (default: true)
5050
# STACKABLE_COCKPIT_OPA_URL=http://localhost:8181 # OPA server base URL (required when enabled)
5151
# STACKABLE_COCKPIT_OPA_TIMEOUT=5000 # OPA request timeout in milliseconds (default: 5000)

src/lib/server/feature-flags.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ export const filePreviewColumns =
5555
// ── OPA ────────────────────────────────────────────────────────────────────
5656

5757
/** When `STACKABLE_COCKPIT_OPA_ENABLED=true`, the app calls OPA on every
58-
* authenticated request to check admin rights. Disabled by default — the
59-
* admin check is a no-op until OPA is configured. */
58+
* authenticated request to check admin rights. Disabled by default. */
6059
export const opaEnabled = env.STACKABLE_COCKPIT_OPA_ENABLED === 'true';
6160

6261
/** OPA server base URL. Required when OPA is enabled.

0 commit comments

Comments
 (0)