HUB
Sign inSign up

orknux/orknux-server

By orknux

•Updated 10 days ago

Image
0

10K+

orknux/orknux-server repository overview

⁠orknux-server

Workspace-based agent orchestration: workflows drawn as a graph and run durably, with the agents, models, connections and credentials a workspace holds, plugins installed from a marketplace, and an issue tracker an assistant can work through over MCP.

This image is the whole product - the interface, the API and the engine - on 8080. It replaces orknux/orknux-ui: point the port, proxy or Ingress that reached that at this container and remove it. Until then it keeps working.

⁠What it needs

A database (Postgres or SQLite), something to sign in against (a directory, OIDC, or its own accounts), and Temporal - without which it refuses to start by default, restarting until Temporal answers.

services:
  orknux-server:
    image: orknux/orknux-server:latest
    ports: ["8080:8080"]
    environment:
      ORKNUX_SECRET_KEY: "a-32-byte-key-you-generated"     # see below
      ORKNUX_DB_URL: jdbc:postgresql://postgres:5432/orknux
      ORKNUX_DB_USERNAME: orknux
      ORKNUX_DB_PASSWORD: orknux
      ORKNUX_LDAP_URLS: ldap://ldap:389
      ORKNUX_TEMPORAL_TARGET: temporal:7233
      ORKNUX_ATTACHMENTS_LOCATION: /home/orknux/attachments
    volumes:
      - orknux-data:/home/orknux   # only if attachments are on

The volume is on the server user's home: a path the image lacks is created owned by root.

A whole installation is deploy/compose.yaml⁠ in the source repository.

⁠The one that matters most

VariableWhat it doesDefaultRequired
ORKNUX_SECRET_KEYEncrypts every stored credential, so the database alone is not enough to use them. 32 bytes, base64.noneYes

A key that is set and cannot work - not valid base64, or the wrong length - stops the boot, loudly. Otherwise it surfaces as a 500 hours later, while the installation serves pages and every credential it holds is quietly unusable. A missing key still boots: that is a first run with nothing encrypted yet, and refusing would hide the screen explaining what to set.

There is deliberately no default: a key in an image is one every installation shares. Generate one with openssl rand -base64 32 and keep it somewhere other than the database it protects. Changing or losing it makes every stored credential unreadable, and they have to be entered again. Admin -> Doctor says whether the key is set, the right length, and whether every stored secret still reads with it.

⁠Database

Postgres or SQLite: ORKNUX_DB_URL decides, and driver, dialect and migrations follow. Postgres for a deployment; SQLite is one file, for one or a few people - the reference's The database says what that costs.

Under SQLite, keep the file on a volume, and create its directory yourself: the server makes only the file.

ORKNUX_DB_URL: jdbc:sqlite:/data/orknux.db
VariableWhat it doesDefaultRequired
ORKNUX_DB_URLThe JDBC URL; it picks the database.jdbc:postgresql://localhost:5432/orknuxYes in a deployment
ORKNUX_DB_USERNAMEThe user it connects as. Ignored under SQLite.orknuxYes in a Postgres deployment
ORKNUX_DB_PASSWORDThat user's password. Ignored under SQLite.orknuxYes in a Postgres deployment
ORKNUX_DB_MIGRATEWhether Flyway migrates on start. Off only where something else owns the schema.trueNo
ORKNUX_DB_POOL_SIZEConnections in the pool. Every turn, step and page holds one while it works.10No
ORKNUX_DB_POOL_WAIT_MSHow long a request waits for a free connection before it fails.30000No
ORKNUX_DB_POOL_LEAK_MSLogs any connection held longer than this, with the stack that took it. 0 is off.0No
ORKNUX_GRAPHQL_LOG_SLOW_MSLogs a slower request by name, time, size. 0 off.3000No
ORKNUX_GRAPHQL_LOG_LARGE_KBThe same for a larger answer.0No

⁠Signing in

ORKNUX_AUTH_METHOD picks one, and only one - never two at once. The reference's Access⁠ is why.

VariableWhat it doesDefaultRequired
ORKNUX_AUTH_METHODLDAP, INTERNAL, OIDC, or NONE to turn authentication off.LDAPNo
ORKNUX_ADMIN_ROLEThe role that sees the Admin section and every workspace.ROLE_ADMINSNo

How hard somebody may try. A wrong password costs nothing until the allowance is spent, then a pause doubling to a ceiling; nothing locks anybody out. The five ORKNUX_SIGN_IN_* and six ORKNUX_PASSWORD_RESET_* variables are in the reference's Rate limits⁠, and their defaults suit almost every installation.

INTERNAL - nothing to configure, which is the point. Username and password against this installation's own accounts, no directory or provider contacted. It is what orknux/orknux-one runs on, and what to set when the bootstrap administrator below is the way in.

NONE - authentication off. Every request acts as one identity that administers, so anyone reaching the port administers this installation: run it only behind a gate of your own. Never a fallback - an unrecognised value stops the server - and said at startup, on Doctor and across every page.

LDAP - read only when ORKNUX_AUTH_METHOD=LDAP.

VariableWhat it doesDefaultRequired
ORKNUX_LDAP_URLSThe directory to bind to.ldap://localhost:389Yes under LDAP
ORKNUX_LDAP_BASEThe root of the tree everything below is relative to.dc=orknux,dc=ioYes under LDAP
ORKNUX_LDAP_BIND_DNThe account this server binds as to search.cn=admin,dc=orknux,dc=ioYes under LDAP
ORKNUX_LDAP_BIND_PASSWORDThat account's password.adminYes under LDAP
ORKNUX_LDAP_USER_SEARCH_BASEWhere people are looked for, under the base.ou=peopleNo
ORKNUX_LDAP_USER_SEARCH_FILTERHow a typed username is matched; {0} is what was typed.(uid={0})No
ORKNUX_LDAP_GROUP_SEARCH_BASEWhere groups live; workspace groups must sit under it. Empty disables group search.ou=groupsNo
ORKNUX_LDAP_GROUP_SEARCH_FILTERHow a person's groups are found; {0} is their DN.(member={0})No

OIDC - read only when ORKNUX_AUTH_METHOD=OIDC. Two flows: a browser returns from the provider with a code and gets the session cookie a password sign-in issues; a script presents the provider's token as a bearer, validated per request.

VariableWhat it doesDefaultRequired
ORKNUX_OIDC_ISSUERThe provider. Its discovery document gives the endpoints and the keys signing its tokens.noneYes under OIDC
ORKNUX_OIDC_CLIENT_IDThis installation, as the provider knows it.noneYes under OIDC
ORKNUX_OIDC_CLIENT_SECRETIts secret.noneYes under OIDC
ORKNUX_OIDC_SCOPESWhat is asked for, comma separated.openid,profile,email,groupsNo
ORKNUX_OIDC_USERNAME_CLAIMThe claim to show as somebody's name. The subject is the fallback.preferred_usernameNo
ORKNUX_OIDC_ROLES_CLAIMThe claim carrying group or role membership. Keycloak and Okta say groups, Entra groups or roles.groupsNo
ORKNUX_OIDC_DISPLAY_NAMEWhat the sign-in button says.single sign-onNo
ORKNUX_OIDC_AUDIENCESAudiences a bearer token may name, comma separated. Read the paragraph below before upgrading an OIDC installation.the client idConditional - see below

ORKNUX_OIDC_AUDIENCES locks scripts out, because Keycloak and Entra do not write the audience an empty setting expects - a 401 on every API call while browser sign-in carries on working. The reference's Access⁠ has what each writes and what to set, and covers orknux.security.role-mapping, which is YAML only.

The first administrator. With neither a directory nor OIDC there is nobody to create the administrator who could create you. Set both and one is made at startup, with the Administrators role and a password on the ordinary sign-in form - which internal users may always use. It only creates, so an account of that name is untouched. A password in a variable is a way in, not one to keep: sign in, change it, unset both. deploy/README.md⁠ has the rest.

VariableWhat it doesDefaultRequired
ORKNUX_BOOTSTRAP_ADMIN_USERNAMEThe first administrator's username. Empty seeds nobody.noneYes with no directory and no OIDC
ORKNUX_BOOTSTRAP_ADMIN_PASSWORDWhat they first sign in with. At least 12 characters; shorter seeds nobody.noneWith the above

Resetting a forgotten password - a link mailed to the account's address, good once and for an hour, internal users only: a directory or OIDC password belongs to the provider. Off until a mail server and ORKNUX_BASE_URL are set; the log says what is missing. The variables below are the fallback when Admin -> Settings -> Mail is empty.

VariableWhat it doesDefaultRequired
ORKNUX_MAIL_HOSTThe relay for the server's own mail. Empty: no reset or issue mail.noneYes to send mail
ORKNUX_MAIL_FROMWhat the mail is from.noneYes to send mail
ORKNUX_MAIL_PORTEmpty takes what the security below usually listens on: 587, 465 or 25.by securityNo
ORKNUX_MAIL_USERNAMEEmpty sends without authenticating.noneNo
ORKNUX_MAIL_PASSWORDThat account's password.noneNo
ORKNUX_MAIL_SECURITYNONE, STARTTLS or TLS. STARTTLS is required, so a server not offering it is refused.STARTTLSNo

⁠Runs

Temporal is what makes a run durable: it survives a restart, retries a step, and can be looked at afterwards.

A trigger, a schedule or the API runs the workflow as published; Run in the editor uses the draft. Its nodes name the function or agent they call, read when the step runs. The reference's Publishing has the rest.

VariableWhat it doesDefaultRequired
ORKNUX_TEMPORAL_ENABLEDfalse runs workflows on the calling thread, without retries or resumption. Not for a deployment.trueNo
ORKNUX_TEMPORAL_TARGETHost and port of the Temporal frontend.localhost:7233Yes in a deployment, unless Temporal is off
ORKNUX_TEMPORAL_NAMESPACEThe Temporal namespace to run in.defaultNo
ORKNUX_TEMPORAL_TASK_QUEUEThe queue workers take work from. Change it to share one Temporal between installations.orknux-workflowNo
ORKNUX_TEMPORAL_RUN_TIMEOUT_HOURSHow long a whole run may take, waits included.24No
ORKNUX_TEMPORAL_STEP_TIMEOUT_SECONDSHow long one step's own work may take; Admin Settings overrides. It does not bound a wait.1800No
ORKNUX_TEMPORAL_STEP_ATTEMPTSTries of a failing step; a node's own retry is separate.3No
ORKNUX_TEMPORAL_WORKFLOW_CACHERuns kept in memory between steps, with their outputs.50No
ORKNUX_TEMPORAL_WORKFLOW_THREADSWorkflow threads they may hold.100No
ORKNUX_PLUGIN_SHARED_ENGINE_MAX_KBBigger plugins get a throwaway engine per call.1024No
ORKNUX_TEMPORAL_STEP_HEARTBEAT_SECONDSHow soon a dead server's step moves to a live one; Admin Settings overrides.30No
ORKNUX_TEMPORAL_UI_URLTemporal's own web interface, linked out to from a run. Empty offers no links.http://localhost:8233No
ORKNUX_INLINE_RESTART_ATTEMPTSInline only: goes an agent step cut short by restarts gets; Admin Settings overrides.3No
ORKNUX_INLINE_MAX_WAITInline engine only: how long a run may stay parked before the step fails.5mNo
ORKNUX_TASK_MAX_TURNSHow often a task's agent may be asked before stopping, unless the workspace sets its own.40No
ORKNUX_TASK_WORKING_TIMEThe longest a task may be working. Time parked awaiting approval does not count.2hNo
ORKNUX_TASK_PATIENCEHow long a parked task waits for a person.7dNo
ORKNUX_TASK_SWEEP_MINUTESHow long a task may sit at Queued before being handed over again; Admin -> Settings overrides it.5No
ORKNUX_EXECUTION_RETENTION_DAYSHow long a finished run is kept, with its steps. Admin -> Settings is the switch; this is the floor.90No
ORKNUX_EXECUTION_SWEEP_ENABLEDfalse sweeps nothing on a timer.trueNo
ORKNUX_REVISION_RETENTION_DAYSDays a replaced version of a component is kept. Also in Admin -> Settings.14No
ORKNUX_SCHEDULER_ENABLEDThe clock behind scheduled triggers; one instance fires a schedule however many run.trueNo
ORKNUX_CLUSTER_LEASE_SECONDSReplicas on one Postgres: a dead lease holder's sweeps and Slack move within this. Admin Settings overrides.30No
ORKNUX_SCHEDULER_TICK_INTERVALHow often scheduled triggers and watchers are looked at: the finest schedule either keeps.10sNo

⁠What a workspace's code may do

A GraalJS sandbox with no host access, files, sockets or threads. One global, orknux, is all it reaches outside - the server makes the call, so a function's HTTP request obeys the proxy rules above. Memory is bounded without a variable: a call still allocating while the heap stays nearly full after a collection is stopped.

VariableWhat it doesDefaultRequired
ORKNUX_SCRIPT_TIMEOUT_MILLISA function or tool that runs longer is stopped, unless it or its workspace set one.5000No
ORKNUX_SCRIPT_STATEMENT_LIMITHow many statements one may execute - what catches a loop that never ends.5000000No
ORKNUX_SCRIPT_LOG_LEVELThe lowest level orknux.log keeps, decided inside the sandbox: debug, info, warn, error, off.infoNo
ORKNUX_PLUGIN_LOG_LEVELThe same, for plugins. Separate so debugging one does not turn up every function.infoNo
ORKNUX_PLUGIN_TIMEOUT_MILLISThe same for a plugin, which loads slower. Admin -> Settings overrides it, 1 to 300 seconds.30000No
ORKNUX_PLUGIN_STATEMENT_LIMITThe same, for a plugin.10000000No
ORKNUX_HTTP_REQUEST_TIMEOUT_SECONDSHow long a workflow's own HTTP request may take.30No
ORKNUX_LIBRARY_REGISTRY_URLWhere a library installed by name is fetched from. Empty: upload only.https://registry.npmjs.orgNo
ORKNUX_LIBRARY_REGISTRY_TIMEOUTHow long it has to answer.30sNo

⁠Plugins and the marketplace

A plugin is a bundle this installation loads and every workspace can then use: functions, tools, skills, object shapes and the libraries it embeds. They are written against @orknux/plugin and live in orknux-extension⁠, so a new plugin is not a new server.

The Plugins screen carries a catalog beside what is installed. The server fetches it, so it goes out through the proxy rules like every other outbound call, and what arrives is checked against the digest the catalog published before anything is loaded.

VariableWhat it doesDefaultRequired
ORKNUX_MARKETPLACE_URLWhere the catalog is asked. Point it at your own; empty offers the upload alone.https://orknux.ai/graphqlNo
ORKNUX_INSTALL_KEYWhat this installation presents to be answered. The shipped key is shared; ask for your own.a shared keyNo

⁠Updates

Admin -> Updates updates this server in place and rolls it back: from the official server, an uploaded jar, or a URL such as your Artifactory. Every jar must be signed with the release key this image carries. On by default.

VariableWhat it doesDefaultRequired
ORKNUX_SELF_UPDATEfalse refuses every source and runs the image's jar.trueNo
ORKNUX_DESKTOPSet by the desktop app; never by hand.falseNo
ORKNUX_SELF_UPDATE_OFFICIAL ORKNUX_SELF_UPDATE_UPLOAD ORKNUX_SELF_UPDATE_URLfalse refuses that one source.trueNo
ORKNUX_RELEASE_SOURCE_URLFills the URL field; ending in /, Check reads releases.json there.emptyNo
ORKNUX_RELEASE_DIRWhere the chosen jar is written to run; on a read-only root, mount an emptyDir./tmp/orknux-releaseNo
ORKNUX_RELEASE_PINA version to run whatever the page chose. One it cannot run runs the image's jar and says why.emptyNo

⁠Models and connections

VariableWhat it doesDefaultRequired
ORKNUX_MODEL_CHECK_ENABLEDPeriodically asks each provider whether it still answers, so the status on the screen is recent.trueNo
ORKNUX_MODEL_CHECK_INTERVALHow often that sweep runs.5mNo
ORKNUX_CONNECTION_CHECK_ENABLEDThe same, for connections.trueNo
ORKNUX_CONNECTION_CHECK_INTERVALHow often connections are checked.5mNo
ORKNUX_CONNECTION_PROBE_TIMEOUT_SECONDSHow long a check may take to find out whether anything is listening.5No
ORKNUX_CONNECTION_ALLOW_LINK_LOCALLink-local addresses (cloud metadata) are refused unless this is on; private and loopback always reach.falseNo
ORKNUX_CONNECTION_ENTRA_AUTHORITYWhere an Entra ID token is asked for; a sovereign cloud has its own.https://login.microsoftonline.comNo
ORKNUX_SLACK_ENABLEDWhether a new installation listens to Slack; then Admin › Settings › Slack.trueNo
ORKNUX_SLACK_RECONCILE_SECONDSHow often open sockets are matched to stored connections, so a new token needs no restart.30No
ORKNUX_SLACK_RETRY_FAILED_SECONDSHow long a connection Slack refused is left alone; a new token or Reconnect clears it.300No
ORKNUX_SLACK_QUIET_PERIODHow long a socket may be silent before a ping; unanswered, it is reopened. 0 is off.10mNo

A workspace's mail is not configured here. ORKNUX_MAIL_* is the installation's own relay; a workflow's mail is a workspace connection.

A proxy is a rule, not an environment variable. Rules on Admin -> Networking match the request URL and carry every outbound HTTP call; an HTTPS_PROXY in the environment is used by none of them, and LDAP by no rule.

⁠Chat, attachments and the tracker

VariableWhat it doesDefaultRequired
ORKNUX_CHAT_ENABLEDWhether this installation has a chat. false is final: the screen cannot turn it back on.trueNo
ORKNUX_CHAT_RUN_COMMANDSOffers Run on chat shell blocks, run here for an admin. Admin -> Settings overrides.falseNo
ORKNUX_ATTACHMENTS_ENABLEDWhether files may be attached to a message, an issue or a comment. false is final too.trueNo
ORKNUX_ATTACHMENTS_LOCATIONWhere the bytes go, a directory per workspace. An absolute path on a volume.data/attachmentsYes if attachments are on
ORKNUX_ATTACHMENTS_MAX_FILE_SIZE_MBThe largest upload, in MB. Admin -> Settings overrides.25No
ORKNUX_UPLOAD_MAX_FILE_SIZEThe servlet's cap on one file; above the largest upload.-1 (none)No
ORKNUX_UPLOAD_MAX_REQUEST_SIZEThe cap on one upload request.-1 (none)No

ORKNUX_CHAT_MAX_ROUNDS, ORKNUX_CHAT_RETITLE_EVERY, ORKNUX_CHAT_TITLE_SECONDS, ORKNUX_CHAT_MAX_SUBAGENTS, ORKNUX_CHAT_TOOLS_NAMED_IN_SEARCH, ORKNUX_OBJECT_MAX_DEPTH, ORKNUX_CHAT_COMPLETION_CONTEXT_TURNS, ORKNUX_CHAT_COMPLETION_MAX_TOKENS, ORKNUX_CHAT_COMPLETION_TIMEOUT_MILLIS, ORKNUX_CHAT_COMPLETION_PAUSE_MILLIS, ORKNUX_CHAT_REPLY_SUGGESTIONS, ORKNUX_CHAT_REPLY_SUGGESTIONS_MAX_TOKENS, ORKNUX_CHAT_REPLY_SUGGESTIONS_TIMEOUT_MILLIS, ORKNUX_CHAT_VIDEO_MAX_MB, ORKNUX_GRAMMAR_SERVER_URL, ORKNUX_IMAGE_MAX_PROMPT, ORKNUX_IMAGE_DRAWS_AT_ONCE, ORKNUX_IMAGE_HARMONIZE_STRENGTH, ORKNUX_IMAGE_HARMONIZE_SIZE, ORKNUX_MUSIC_SOUNDFONT, ORKNUX_COMMAND_MARKER, ORKNUX_LDAP_GROUP_SEARCH_SUBTREE, ORKNUX_MODEL_CHECK_INITIAL_DELAY, ORKNUX_CONNECTION_CHECK_INITIAL_DELAY, ORKNUX_SCHEDULER_THREADS, ORKNUX_SCHEDULER_POLLING_INTERVAL, ORKNUX_REVISION_SWEEP_ENABLED, ORKNUX_REVISION_SWEEP_INTERVAL, ORKNUX_DIAGRAM_PICTURES_INTERNAL, ORKNUX_SESSIONS_ACTIVE_WINDOW_SECONDS, ORKNUX_SESSIONS_DUE_SWEEP, ORKNUX_TASK_SWEEP_ENABLED, ORKNUX_TASK_SWEEP_INITIAL_DELAY, ORKNUX_WATCHER_MAX_SECONDS, ORKNUX_WATCHER_MIN_INTERVAL_SECONDS, ORKNUX_WATCHER_MAX_PER_AGENT, ORKNUX_WATCHER_MIN_AGENT_CHECK_SECONDS, ORKNUX_WATCHER_LOOK_INITIAL_SECONDS, ORKNUX_WATCHER_LOOK_MULTIPLIER, ORKNUX_WATCHER_LOOK_MAX_SECONDS, ORKNUX_SCHEDULE_MIN_INTERVAL_SECONDS, ORKNUX_SCHEDULE_MAX_PER_AGENT, ORKNUX_CONTENT_SECURITY_POLICY and the log file's ORKNUX_LOG_MAX_FILE_SIZE, ORKNUX_LOG_MAX_HISTORY and ORKNUX_LOG_TOTAL_SIZE_CAP are in the reference⁠. So is every ORKNUX_TUNING_* variable: where a fresh installation starts on each number Admin -> Settings shows under its limits - timeouts, retries, caps.

⁠Sessions, HTTP and logging

VariableWhat it doesDefaultRequired
ORKNUX_PORTThe port this server listens on inside the container.8080No
ORKNUX_ALLOWED_ORIGINSWhere the interface is served from, if not here. Comma separated.http://localhost:5173Yes where the interface is elsewhere
ORKNUX_BASE_URLWhere a browser reaches the interface, for links sent out. Admin -> Settings overrides it.http://localhost:5173Yes for password resets
ORKNUX_WEBHOOK_MAX_BODY_SIZEThe most a webhook caller may post to /api/webhooks/…. More is refused with 413.1MBNo
ORKNUX_ASYNC_REQUEST_TIMEOUTHow long a request answered with a promise may stay open.330sNo
ORKNUX_SESSION_TIMEOUTHow long a session survives without being used. A fortnight suits a tool behind an identity provider.14dNo
ORKNUX_SESSION_COOKIE_SAME_SITElax lets a link from elsewhere arrive signed in; strict where nothing links in.laxNo
ORKNUX_SESSION_COOKIE_HTTP_ONLYKeeps the session cookie out of reach of scripts.trueNo
ORKNUX_SESSION_COOKIE_SECUREtrue behind a proxy that ends TLS; auto follows the request.autoYes behind TLS
OPENAI_LOGWhat the model SDK prints to stderr: info each call's method and URL, debug headers and bodies, credentials redacted.noneNo
ORKNUX_LOG_LEVELHow much this application says: TRACE to ERROR. Its own code only, not the frameworks.INFONo
ORKNUX_LOG_LEVEL_ROOTThe same for everything else on the classpath. DEBUG here is very loud.INFONo
ORKNUX_LOG_FORMATplain for a terminal; json (one ECS object per line) for a collector. Console and file alike.plainNo
ORKNUX_LOG_FILEConsole always; name a file here and it is written to as well. Use an absolute path.none (stdout only)No
ORKNUX_METRICS_ANONYMOUSWhether /actuator/prometheus answers without signing in. true only on the scraper's own network.falseNo
JAVA_OPTSPassed to the JVM. One that sizes the heap (-Xmx, MaxRAMPercentage) replaces the two below.noneNo
ORKNUX_HEAP_PERCENT ORKNUX_NATIVE_MEMORY_MBHeap: the lesser of that percent of the memory limit and the limit less the JVM's MB.75 1024No
ORKNUX_MALLOC_ARENAS ORKNUX_NIO_BUFFER_CACHE_KBglibc's arenas (else eight per core); the largest direct buffer a thread keeps.2 256No
ORKNUX_EXIT_ON_OOMExit on running out of heap, so the container restarts.trueNo

Sessions are kept in the database, so signing in outlives a restart and more than one replica.

⁠What is deliberately not configurable

The schema validation mode, Flyway's locations, and Spring AI's schema initialisation: invariants this application is built around rather than choices - changing one does not configure the server, it breaks it.

Tag summary

Content type

Image

Digest

sha256:e57c80730…

Size

590.6 MB

Last updated

10 days ago

docker pull orknux/orknux-server