| Changelog | Changed, read before updating
- A new install connects to nothing until an administrator chooses. After installing, a Nextcloud administrator opens Bee Flow and chooses where it runs: Bee Flow Cloud or your own server. Until that choice nothing is sent to any Bee Flow server and nothing is created anywhere. Everybody else who opens Bee Flow in the meantime reads "Bee Flow is not set up yet. Ask your Nextcloud administrator to open Bee Flow and choose where it runs."
- "Bee Flow server" (
BEEFLOW_API_BASE_URL) has no default and accepts the word cloud. Leave it empty and the administrator chooses after installing. Fill it in only to fix the choice at install time: the URL of your own server, or the word cloud for Bee Flow Cloud. A value given there cannot be changed from inside Nextcloud. The address https://server.beeflow.nl in that field is not a choice by itself; for Bee Flow Cloud type cloud.
- An install that is connected keeps its server. There is nothing to do after the update, and the connector does not register again. On a
manual-install daemon, where you start the container yourself, update in this order: stop the old container, run occ app_api:app:update bee_flow --info-xml <info.xml of this version>, then start the new container. Nextcloud reads the routes of this version when that command runs (troubleshooting guide, "Where you start the container yourself").
- An install that never finished connecting shows the picker. An administrator opens Bee Flow and chooses the server. A code that was e-mailed before the update cannot be entered any more; a new one is sent after the choice.
- An install with a pasted tenant key and no server address needs one click. When
BEEFLOW_TENANT_KEY was filled in at install without a server address, an administrator opens Bee Flow and chooses the server; the key is then taken into use as it is. A pasted key next to the Cloud address keeps working without a step.
- Install-time values are changed by registering the app again. The deploy options at install, or
occ app_api:app:register bee_flow <daemon> --env NAME=VALUE, set them, and Nextcloud passes the same values again on every update. To change one, run occ app_api:app:unregister bee_flow (without --rm-data, so the data volume with your binding is kept) and register again with the new --env values. On a manual-install daemon stop the container before unregistering and start it again when you register. The options added in this release take a value on an existing install the same way.
- Going back to 1.7.0 doubles push triggers. This version registers its webhook rows in a form the older one does not recognise, so the older one adds a second set and automations fire twice until the connector is updated again.
Added
- The setup page checks a server before it is chosen. On a first choice it asks the address for its health first. When no Bee Flow server answers there, nothing is saved and nothing is sent, and the page says which it was: server unreachable or certificate not trusted. Before you press Connect the page shows what connecting sends and to which host: the names and e-mail addresses of the Nextcloud's administrators, its address, instance id and version. After Connect it reports the outcome: connected to your organisation, a code was e-mailed, or the failure. Server unreachable, certificate not trusted, version mismatch, pairing code required and pairing code not accepted are named, also in Dutch. The page shows the state of the connection whenever it is opened: connected, a code was e-mailed, or the failure with what to do.
- A pairing code can be entered together with the choice of a self-hosted server, so a Nextcloud joins an existing organisation in one step.
- "No change (keep the current connection)" in the settings form. It is the default of the Bee Flow form in the Artificial Intelligence section of the administration settings (some Nextcloud versions label that section Assistant), and with it selected the form asks for nothing. A server counts as chosen there once an administrator makes the form name another server than it did; a server the form already names while none is chosen stays without effect, also after a restart, and the web app URL alone never chooses one. The address of the server in use written another way (a trailing slash, capitals in the host, the default port) is the same server: the connection is left as it is, at the poll and after a restart. A switch from the form that does not happen is tried again once a Bee Flow server answers at that address; until then the connection in use is not touched. The form's description says what choosing a server sends, and a first choice made there checks the address in the same way as the setup page.
- A self-hosted Bee Flow server with a certificate from your own certificate authority (
BEEFLOW_SERVER_CA_CERT). Give the PEM certificate or chain, or the path of a PEM file inside the container. It is added to the default certificate authorities and used for the connection to the Bee Flow server only; certificate verification stays on. A certificate that does not verify is reported as "certificate not trusted", with the name of this option.
- An outbound proxy for the connection to the Bee Flow server (
HTTPS_PROXY, NO_PROXY). The proxy only tunnels: the server's certificate is still verified end to end. Nextcloud is always reached directly. The log shows the proxy's host and port, never its credentials, and when the proxy cannot be reached the Bee Flow server is reported unreachable; there is no fallback to a direct connection.
- Five advanced options can be set at install.
BEEFLOW_NC_PROXY_MAX_BODY_MB (100, 0 means no cap), BEEFLOW_NC_PROXY_MAX_INFLIGHT_MB (512, 0 means no cap), BEEFLOW_UPSTREAM_HEADERS_TIMEOUT_MS (60000, 0 means off), LOG_LEVEL (info) and BEEFLOW_SIG_SKEW_SECONDS (300, between 30 and 900). Left blank, the connector's default applies; a value the connector cannot use is ignored. LOG_LEVEL applies to the container log in the plain-text form the image writes, and to the JSON form.
- An account without an e-mail address gets a clear page. Bee Flow needs an e-mail address for every user. Once the connector is connected, an account without one reads "Your Nextcloud account has no e-mail address" with where to add it, in English or Dutch. Setup and the administrator pages work without an address.
- The diagnostics show push triggers and the organisation.
setup/diagnostics reports whether the webhook rows are registered, how many deliveries arrived since the connector started and when the last one came in, how many events the Bee Flow server accepted and when it last did (forwarded, lastForwardedAt), the name of the organisation the connector is linked to when the server issued the key (with a tenant key given at install there is none to report), and the last failure to connect with its code. Its state is ok when connected. Somebody who is not a Nextcloud administrator gets {"canConfigure":false} from it and nothing of the diagnosis; the administrator check is the connector's own. setup/status reports what made the choice of server.
Changed
- After connecting, Bee Flow opens by itself. When a connect made on the setup page succeeds, or a code was e-mailed, the page continues to Bee Flow a moment later, so an administrator lands on the organisation set-up without another click. The Open Bee Flow button stays.
- The setup page looks like the rest of Bee Flow. The same cards, fields and buttons as the Studio screens, more contrast, the chosen option outlined, and the honey of the logo on the connect button, the focused field and the chosen option. No emoji in the texts.
- Push triggers no longer need Nextcloud to reach its own public address. Nextcloud delivers them to the connector through AppAPI (directly or through HaRP), so they also work on a Nextcloud that cannot call its own public name, and
allow_local_remote_servers is not needed for them. Rows registered by an earlier version are rewritten in place the first time the connector registers after the update. Nextcloud waits three seconds for the answer to a delivery; the connector answers within two and finishes forwarding afterwards. A delivery that gets no answer shows in nextcloud.log as Webhook(<id>) call failed, and one the connector answers with an error as Webhook(<id>) returned unexpected status code <code>.
- The App Store listing says what the app requires: AppAPI with a Docker deploy daemon, HaRP recommended. It cannot be installed on managed or shared hosting without Docker.
- A first choice stays when connecting fails. When the server answered the check but connecting then fails (it asks for a pairing code, for example), the connector stays on that server and shows the failure with what to do. Until the connection is made, Bee Flow in the top bar opens the setup page for an administrator, with that failure, and a short notice for everybody else. A switch away from a working server still goes back to that server when the new one does not connect; the setup page then names the failure of the other server, and nothing is tried again on the server in use.
- The setup page does not change a server that is fixed at install time, and says so.
- Messages name your server and the setup page. When the Bee Flow server or Nextcloud cannot be reached, the message names the server that is configured: in the heartbeat, in
setup/diagnostics, in the answer of a setup action and in bootstrap-last-error.json on the data volume. When Bee Flow Cloud cannot reach Nextcloud, it says that Cloud needs a Nextcloud reachable from the internet (directly or through a tunnel, entered as public Nextcloud URL on the setup page). When your own server cannot reach Nextcloud, it names the address the connector reports and says what to set on that server (NEXTCLOUD_ALLOW_PRIVATE_HOSTS=1 for an address on a private network). A server that asks for a pairing code, or does not accept the one that was entered (pairing_code_invalid), is named with its address, and the text says to enter a code on the setup page; the same text is in the answer, in the diagnostics, in the heartbeat and in the file. Instructions for an install-time value point to the deploy options or to registering the app again.
- A failure of the connector's own connection to Nextcloud has its own name.
nc_cert_untrusted when the connector does not trust the certificate of Nextcloud, nc_unreachable when Nextcloud does not answer; the error names the cause, and nothing is sent to the Bee Flow server in either case.
- A switch that goes back leaves the record of the server in use.
setup/diagnostics reports the failed switch under rejectedSwitch, with the server it was about; lastError is always about the server in use. A switch the settings form asked for is reported for as long as the form names that server.
- The Talk bot is registered once a Bee Flow server is known, not before. It asks Nextcloud to register the bot once at each start; on a Nextcloud without Talk that request is refused, the connector logs that chat triggers are unavailable, and no bot exists.
- A tenant key given at install comes with the instance id of this Nextcloud. The connector reads the id from Nextcloud, so push triggers, the Talk bot, Assistant tasks and app menu entries run on such a key as they do on a key the server issued.
- The page Nextcloud frames arrives whole on a manual-install daemon. Nextcloud adds a nonce to the script tags of
index.html; the connector leaves room for it, so the setup page and the web app load from the top bar with or without compression on the web server.
BEEFLOW_EMBED_BASE_URL fixes the web app host only when it holds a URL. Any other text is logged and ignored, like an unusable BEEFLOW_API_BASE_URL.
- A public Nextcloud URL saved before a server is chosen is kept and used when the server is chosen.
BEEFLOW_NC_PUBLIC_URL fixes the public Nextcloud URL only when it holds a URL. Any other text is logged and ignored, and the field on the setup page stays free. A URL there is fixed: the setup page shows it locked and saving another one answers 409 (env_locked).
- The web app's runtime settings reach the app inside Nextcloud. The settings script of the web app (
beeflow-runtime.js) is loaded from the web app host that serves the app; a web app without one gets an empty script from the connector.
- The log reports a refused framing origin only for another origin. A frame on the app's own address, also when that differs from
NEXTCLOUD_URL, is allowed and not reported. The connector knows its own address from what the browser says about the request (Sec-Fetch-Site) and, for a Nextcloud on plain http where the browser says nothing, from the host name the request arrived on.
- Assistant task polling asks less of Nextcloud. A poll asks with one request whether a provider has a task, and starts its workers once there is one. When Nextcloud refuses the request (the app is being registered again, or Nextcloud limits the address), the other providers are not asked in that round and the next rounds wait longer, from 30 seconds up to five minutes, until Nextcloud answers again.
- Log lines about install-time values read alike. Each ignored value is logged once with the value, without a user name or password;
setup/status names envApiBaseUrl only when the value fixes the server.
- Other users get the app once the onboarding wizard is finished. After connecting, an organisation administrator finishes the wizard in the web app; until then the Bee Flow server answers other users with
NC_ONBOARDING_PENDING. The setup guide says so.
BEEFLOW_JWT_TTL_SECONDS is kept between 30 and 900 seconds.
Fixed
- The setup page shows the server in use. The badge and the selected card follow the server the connector talks to, whatever made the choice.
- Choosing a server, or "Clear organisation cache", on an install with a tenant key given at install keeps that key and completes instead of going back.
|