Skip to main content

Connected Servers

Some organizations run two CoderFlow servers: a Portal server for production applications, business users and their IT requests, and a development server where the repositories live and agents do the work. Connected servers let IT requests on the Portal server launch tasks on the development server, link existing tasks there, and show their status on the request.

Each IT person connects their own account on the development server once. Every task they launch there runs as them, with their permissions there. There are no service accounts.

If your Portal environments and development environments are on the same server, you don't need this page: choose the development environments in Task environments for IT requests.

Requirements​

  • The Full edition on both servers. In Essentials, IT request work runs on the same server, in its own environment.
  • Network:
    • The Portal server must be able to open HTTPS connections to the development server.
    • The development server never calls the Portal server.
    • Each person's browser must reach both servers: people allow access on a page on the development server, which then sends their browser back to the Portal server.
    • A development server inside a private network that the Portal server cannot reach will not work.
  • HTTPS only. Both servers' addresses must use https://. Plain http:// is accepted only for a loopback address such as localhost, for trying it out on one machine.
  • The development server's address you enter on the Portal server should be the address people use for it in their browser. CoderFlow builds the links to its task pages and its consent page from it, and recognizes pasted task addresses by it.
  • The Portal server's Site URL must be set to its https:// address (see Set the Public URL). People are sent back to it after they allow access, so nobody can connect until it is set.
  • The Portal server's address must not have a path after the host name (such as https://example.com/coderflow) for now: a Portal server at such an address cannot connect, and its Connected servers card shows a warning in place of Address to register.
  • Permissions: setting up either end needs settings:manage on that server.

Set it up​

Do the steps in this order. Each administrator works on their own server, under Server Settings → Connected servers. The same section has both ends: the upper cards are for the Portal server, Allowed Portal servers and Allow a Portal server for the development server. Most servers need only one of the two.

1. On the Portal server: copy its ID and address​

Open Server Settings → Connected servers. Copy these two values (each has Copy) and give them to the development server's administrator:

  • This server's ID: the Portal server's installation ID, such as inst-0123456789abcdef0123456789abcdef. It stays the same across restarts and upgrades.
  • Address to register: the Portal server's address, taken from its Site URL. When the Site URL is missing, the page says Set this server's Site URL to its https:// address first. People cannot connect until it is set.

2. On the development server: allow the Portal server​

Open Server Settings → Connected servers and scroll to Allow a Portal server:

  • Server ID: the Portal server's ID from step 1.
  • Name: what people on the development server see on the consent page, in their API keys and on tasks it starts, such as Billing Portal. You type it; it is never taken from the other server. Up to 80 characters.
  • Address: the Portal server's address from step 1, with no path, such as https://portal.example.com. After people allow access, they are sent back only to this address.
  • Environments: the development server's environments that the Portal server's IT requests may start tasks in, up to 10. Each person can use only those where they may create tasks.

Click Allow server. The Portal server appears under Allowed Portal servers with its address, server ID, environments and how many people are connected to it. Up to 20 Portal servers can be allowed.

3. On the Portal server: add the development server​

Back on the Portal server, under Add a server:

  • Name: what people on the Portal server see, such as Billing development. You type it; it is never taken from the other server. Up to 80 characters.
  • Base URL: the development server's own https:// address, including any path prefix, such as https://dev.example.com. No user name, password, query or fragment.
  • CA certificate: optional. See The CA certificate.

Click Add server, then Test on its row. People can't connect to a server until a Test succeeds; the first successful Test records the development server's ID. Up to 20 servers can be connected.

4. On the Portal server: offer its environments to IT requests​

On each Portal environment whose requests should be developed there, open the Portal tab and add the development server's environments under Environments on connected servers. See Environments on connected servers.

5. Each IT person connects their account​

Each IT person opens Profile Settings → Connected servers on the Portal server and clicks Connect. See Connect your account on a connected server.

Steps 2 and 3 can be done in either order, but connecting fails until both are done. A Test does not check that the development server allows the Portal server; the first Connect does.

What Test reports​

Test asks the development server what it supports. It does not sign in or send anyone's key. The row then shows one of these:

MessageWhat it means
Reachable and supported. People can now connect their accounts on name.Ready. The row shows Ready and how many people are connected.
The server's TLS certificate is not trusted. Add the CA certificate that signed it (here or in CA Certificates) and check that the base URL uses the certificate's host name.The certificate isn't signed by a trusted CA, has expired, or doesn't match the host name in the base URL.
Timed out. The server did not answer within 15 seconds. Check the base URL and that this server can reach it.Usually a firewall or a private network between the servers.
Unreachable. Check the base URL and that this server can reach it on the network.The host name doesn't resolve, or the connection was refused.
The server answered with an error. Try again later, or check that server's log.The development server answered with a server error.
Reachable, but it answered with a redirect. Use the server's own address as the base URL, including any path prefix.The base URL points at a redirect, for example http:// to https://, or a missing path prefix. Redirects are never followed.
Reachable, but its answer was not understood. Check that the base URL is a CoderFlow server.Something other than CoderFlow answered.
Reachable, but connected servers are not available there. That server needs a CoderFlow version that includes connected servers, and it must be on the Full edition. Check both on that server, or check the base URL.The development server runs an older version, or is not on the Full edition. The Test can't tell which.
This address belongs to a server that is already in the list as name.Another row already uses that server.
Reachable and supported, but the server at this address has a different ID than before. Press Confirm new ID to use it: everyone's connection to the old server will be removed.See A server with a new ID.

A Test that fails after the server was ready leaves it ready (Ready · … · the last Test did not succeed), so a server that is down for a moment keeps everyone's connections and works again when it is back.

The CA certificate​

When the development server's TLS certificate is signed by your own CA rather than a public one, paste that CA's certificate in PEM format into CA certificate (up to 10 certificates). It is trusted for this connected server only. To trust a CA for everything on the Portal server instead, add it under CA Certificates; connected servers trust those too.

The row shows the certificate's count and name. Changing the base URL or the CA certificate needs a new Test before anyone's key is sent there again; until then the row says Changed. Press Test before people can use it again. Everyone's connections are kept, and come back when the Test finds the same server.

Using it​

How IT staff connect their accounts, launch tasks, read linked work and link existing tasks is described with the rest of IT request work, under Task environments for IT requests.

On the development server, a task started this way is an ordinary task owned by the person who launched it. Its page shows From IT request with the request number and the Portal server's name after the title, such as From IT request REQ-000042 on Billing Portal. It links to the request on the Portal server, which only people with access there can open. The line comes from the task's own record and the development server's list of allowed Portal servers, so nothing a request sends can change it. Once the Portal server is no longer allowed, the line shows only the request number.

Changing and removing things​

On the Portal server​

  • Edit a server to change its name, base URL or CA certificate, then Save changes. A new base URL or CA certificate needs a new Test.
  • Remove a server: IT requests can no longer launch or read work there, and everyone's connection to it is removed at once. CoderFlow then asks the development server to revoke each removed key, for at most about 20 seconds, and never at an address the keys weren't issued for: if the base URL was changed and not tested since, the keys go only to the address last verified by a Test, and only while the same server still answers there. Remove asks first in its own dialog, which says the keys are revoked on that server if it can be reached, or Nobody is connected to it. While the keys are revoked, the button shows Removing… and the dialog can't be closed.
  • The message afterwards says how many connections were removed and whether their keys were revoked, for example Billing development removed. 3 people's connections were removed and their keys revoked on that server., or Billing development removed. Nobody was connected to it. If some keys could not be revoked, it says how many and why (the server could not be reached, did not answer in time, refused, another server now answers at its address, its earlier address is not known, or the stored key could not be read), and that removing this server under Allowed Portal servers on the other server revokes them. Until then those keys stay valid on the development server, though the Portal server no longer holds them; they also stop working when they expire or are revoked there.
  • Its entries on Portal tabs stay, marked (unavailable), until someone removes them. Linked work there is still listed, as A task on a connected server with Work on connected servers isn't available here.
  • Deleting a person on the Portal server removes their connections, and their keys are revoked on the development server in the same best-effort way. The deletion doesn't wait for it, and no message reports it.

A server with a new ID​

If the development server is reinstalled, or the base URL now points at a different CoderFlow server, a Test reports a different server ID and the row shows Confirm new ID. Nothing is sent there meanwhile. Use new ID replaces the recorded ID and removes everyone's connection to the old server; each person connects again. Their keys are revoked on the old server if it can still be reached where a Test last verified it, in the same best-effort way as when a server is removed, and the message reports the result in the same way.

On the development server​

  • Edit an allowed Portal server to change its name, address or environments, then Save changes.
  • Removing an environment asks first, saying how many people's connections stop working. Every key that covers that environment is revoked, and those people connect again from the Portal server. It takes effect at once: each request from a Portal server is checked against the list as it is now.
  • Adding an environment doesn't change existing connections. People who should use it reconnect from the Portal server.
  • Remove an allowed Portal server: its IT requests can no longer start or read tasks on this server, and every key it held is revoked. Tasks it already started keep running, and their From IT request line no longer names the Portal server or links to it.
  • Renaming or deleting an environment doesn't update Allowed Portal servers: the old name is shown as (no longer exists), and tasks can't be started there. Choose the new environment on the allowed Portal server and save (people with keys for the old name connect again), and update the entry on the Portal server's Portal tab.
  • People can revoke their own key in their API keys (see Server link keys). Deleting a person makes their keys stop working. In both cases the Portal server finds out the next time it uses the key, and the person is asked to reconnect.

Security and privacy​

  • Tasks run as the person who connected, with their permissions on the development server. There are no service accounts and no shared credentials. A person who can't create tasks in an environment there can't launch there from an IT request either.

  • What the key can do. Connecting creates a personal API key on the development server, a server link key, held by the Portal server for that person. It can only:

    • start tasks for IT requests in the environments the person allowed, which must still be on the Portal server's allowed list;
    • read the status and results of a task in those environments that its owner may view, by the task's ID;
    • tell the Portal server which account it belongs to, and revoke itself.

    It can't list tasks, send follow-ups, use MCP, App Servers, terminals or editors, change settings, or do anything else. A task it starts can carry only a name, instructions, files and whether it is shared; it can't choose an agent, a template, environment variables or anything else that changes how the task runs.

  • What is sent to the development server when IT launches a task: the task name, IT's instructions, the request number, title and original description, and the reviewed context, shared conversation and files that IT ticks, plus files IT attaches. Internal notes are never sent. The task gets the development environment's default sharing, and anyone who can see tasks there can read what was sent.

  • Each person reads with their own connection. The status and title of linked work on the development server come from the viewer's own connection. Someone without a connection, or whom the development server doesn't let see the task, sees only that work exists. The Portal server stores no status from the development server and doesn't poll: each answer is kept in memory for about 30 seconds, for the same viewer only, and never shown to anyone else. AI drafts read linked tasks there with the drafting person's connection, in the same way.

  • A recorded title is never shown to the wrong person. When a task is linked, the Portal server records its title and environment as the person linking it could read them. That title is never shown to a viewer whose own read failed: not in linked work, internal notes, History or Ask CoderFlow.

  • Keys are stored encrypted on the Portal server, with an encryption key in its data directory that task containers can't read. If that encryption key is lost, the stored connections need Reconnect. No page on either server shows a key.

  • Consent is explicit. The development server shows the person exactly which Portal server is asking, which environments it may use and what it may do, and they choose Allow or Deny. The Portal server's name and address on that page come from the development server's own list, never from the request. After Allow, the browser is sent back only to the registered address.

  • Security events. Both servers write security events to their server logs, never with a key:

ServerEvents
Portal serverserver_link.connected_server_changed (a connected server was added, changed, removed or given a new ID, with the names of changed fields and how many keys were revoked; never the CA certificate or a key); server_link.connect, server_link.reconnect, server_link.disconnect, server_link.exchange_failed; it_request.remote_launch and it_request.remote_launch_refused for launches, with the person, request, server and environments
Development serverauth.api_key.server_link_consent_allowed, auth.api_key.server_link_consent_denied, auth.api_key.server_link_exchanged (a key was issued), auth.api_key.server_link_exchange_refused, auth.api_key.server_link_revoked, auth.api_key.server_link_task_created, auth.api_key.server_link_refused (a task creation or read the key may not make), auth.api_key.server_link_portal_servers_changed

Troubleshooting​

SymptomCause and fix
Connected servers is missing from Profile SettingsThe tab appears only once at least one connected server has passed a Test. Press Test in Server Settings.
The Portal server's ID or address is empty, or the page says to set the Site URLSet the Portal server's Site URL to its https:// address, then reload.
Test reports a TLS problemAdd the CA certificate that signed the development server's certificate, here or in CA Certificates, and use the host name the certificate names.
Test times out or reports UnreachableThe Portal server can't reach the development server. Check DNS, firewalls and proxies from the Portal server's host, not from your browser. A development server the Portal server can't reach can't be connected.
Test reports that connected servers are not available thereCheck both causes on the development server: its CoderFlow version, and that it is on the Full edition.
The consent page says This request comes from a server that is not on this server's list of allowed Portal servers.On the development server, add the Portal server under Allow a Portal server with the exact Server ID from the Portal server.
The consent page says This request asks to send you back to an address that is not registered for that Portal server, so it was stopped.The Address on the development server doesn't match the Portal server's Address to register. Copy it again.
The consent page says Nothing to connect for …The person can't create tasks in any of the environments allowed for that Portal server. Give them access on the development server, or allow another environment, then they press Connect again.
After Allow, Profile says … refused the connection.The development server refused to issue the key, for example because the person's access or the allowed environments changed meanwhile. Try again; check Allowed Portal servers.
After Allow, Profile says The server that answered is not the … your administrator connected, so nothing was stored.The base URL now reaches a different server. Press Test on the Portal server.
After Allow, Profile says … could not be reached to finish connecting.The Portal server couldn't reach the development server to finish. Check the network from the Portal server.
Profile says This server's Site URL is not set up, so connecting cannot finish.Set the Portal server's Site URL.
The Connected servers card says Connecting accounts is not available while this server's Site URL has a path after the host name, such as /portal., and Profile → Connected servers shows Connecting is not available yet without Connect or ReconnectThe Portal server's Site URL has a path after the host name. Serve CoderFlow at the host name itself, such as https://coderflow.example.com, and set that as the Site URL.
After Remove or Use new ID, the message says some keys could not be revoked on the other serverAsk that server's administrator to remove this Portal server under Allowed Portal servers (Server Settings → Connected servers), which revokes every key it holds. If people should keep using that server, they then connect again after it is allowed again.
Everyone suddenly needs ReconnectThe Portal server was removed from Allowed Portal servers, an environment was removed there, or the development server's keys were revoked another way.
One person needs ReconnectTheir key expired (after a year), was revoked on the development server, or their access there changed.
An environment shows Not in your connection in the Launch task dialogIt was allowed after the person connected, or they couldn't create tasks there then. They Reconnect.
A launch is refused with … refused to start the task: your account there can't create tasks in …The person's account on the development server lacks tasks:create in that environment.
Linked work shows … couldn't be reached just nowThe Portal server couldn't reach the development server for this read. It tries again the next time the request is opened.