Skip to content

Connect clients

guideinstall-connect-clients

Give users the address and the sign-in, check what the clients need from the network, and connect the Desktop App or pl-cli to the Backend.

Users work with Platforma through its clients: the Desktop AppDesktop App — The program that each user installs on their own computer to work with Platforma. It is a client of the Backend. Glossary for analysis, and pl-clipl-cli — The command-line client of Platforma. Administrators use it to manage users and projects on the Backend. Glossary for administration from the command line. Each client connects to the BackendBackend — The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs. Glossary with the address and the sign-insign in — To show the Backend who you are, with a sign-in provider or a single-user token. The verb is "sign in"; the noun and the adjective are "sign-in". Glossary that you give.

What clients need

Each client, the Desktop App and pl-cli, connects to the same address of the Backend. Give users this address:

The address is the host name of the entry pointentry point — The way in to the Backend from outside the cluster, a load balancer or an Ingress with a DNS name. It usually ends TLS and sends the traffic to the Backend pod. Glossary: https://platforma.example.com. The port is 443, so the address does not need it. The installer on AWS shows this address in the stack output PlatformaUrl.

The network of each computer with a client must let it reach:

  • The address of the Backend. The clients use gRPC over HTTP/2, with long streams. Each proxy, firewall and load balancer on the way must carry it. See What each entry point must carry.
  • The primary storageprimary storage — The bucket (Amazon S3 or Google Cloud Storage) or folder where Platforma keeps all results and uploaded files. Glossary, for the Desktop App. The Desktop App uploads and downloads files directly. With a bucket, the computers must reach the endpoint of the bucket (see Primary storage). In Single Server modeSingle Server mode — The mode in which the Backend and all its jobs run on one Linux machine, the server, with no Kubernetes cluster. Glossary with a folder as the primary storage, they must reach port 6347 of the server.
  • The Block registryBlock registry — A service from which the Desktop App downloads Blocks. MiLaboratories runs the main one; a company can add its own. Glossary, for the Desktop App. See Outbound connections.

pl-cli connects only to the address of the Backend. Each client must also trust the certificate of the address and follow the proxy rules of the network: see Certificate and proxy.

Users sign in with the sign-in providerssign-in provider — A configured way for users to sign in to the Backend: single sign-on (SSO), LDAP or a static list of users. One Backend can have more than one. Glossary of the Backend: their login in the static list of usersstatic list of users — A sign-in provider that is a file with the logins and the password hashes of the users, in the htpasswd format. The Backend reads it again when it changes. Glossary, their LDAPLDAP — The directory of users of a company. The Backend can check logins and passwords in it. Glossary account, or their account at the SSOsingle sign-on — Sign-in through the identity service of the company, with the same account as for other company systems. Glossary provider. Both clients support each provider. See Authentication.

Certificate and proxy

  • Certificate. A certificate from a public certificate authority works in each client. A certificate of a corporate certificate authority, or a self-signed certificate, works only in a client that trusts it:

    • the Desktop App trusts the authorities in the trust store of the operating system: add the certificate there, then start the Desktop App again;
    • pl-cli trusts the authorities that come with Node.js: give it the certificate in the environment variable NODE_EXTRA_CA_CERTS.

    See What clients trust.

  • Proxy. Each client has its own proxy setting:

    • the Desktop App uses the proxy of the operating system by default. For the connection to the Backend, it tries the proxy and the direct way, and uses the one that works. To connect directly, select Connect without proxy in the connection form. For another proxy, see Desktop App network settings;
    • pl-cli uses the proxy of the environment variable https_proxy, and does not try the direct way. See pl-cli network settings.

Connect

Choose the client:

  1. Install the Desktop App. Download it for the operating system of the computer from platforma.bio/downloads, and install it.

  2. Add the server. Start the Desktop App. At the first start, it opens the connection form; when it already has servers, click Add. In Remote address, type the address of the Backend, with https://.

    The Desktop App then asks the Backend how users sign in, and shows the fields for it.

  3. Sign in.

    • With a static list of users or LDAP, type the Login and the Password, and click Connect.
    • With SSO, click Login with SSO: the browser opens the page of the identity provider.

    When the Backend has more than one sign-in provider, click Use another login method to choose one.

Result: the Desktop App shows the list of projects. It keeps the server in its list: at the next start, click the server to connect.

Next