ConductScience Sequences
Contents

Installation guide · Records and upkeep

Network traffic

What the container receives and the addresses it calls.

What the container receives:

  • Sign-in off: connections to port 8765 on the server's own 127.0.0.1, through host networking.
  • Sign-in on: connections from your reverse proxy, on the same server, to 127.0.0.1:8765. The service answers only requests that name an allowed host, and GET /api/health at an IP address. With the AWS kit, its load balancer connects to the server's private address instead. See In your AWS account.
  • The service keeps an idle connection open for 65 seconds, and no setting changes that. A proxy or load balancer that reuses connections should close idle ones sooner, as an AWS load balancer does after 60 seconds.
  • A coordinator: its workers' connections to the worker port, 8766 by default, on 127.0.0.1 inside its container unless BIOSEQUENCE_WORKER_BIND says otherwise. It takes only requests that carry the worker key. A worker receives nothing: it opens no port. See Several servers.

What the container sends while it runs:

  • Sign-in off: nothing, unless you set a claims model (below). With sign-in off the service sends no watch email.
  • Sign-in on: requests to your sign-in provider, over HTTPS. The discovery document and the provider's public keys, each kept for an hour and fetched again early when a token names a key the service has not seen; the token endpoint, once per sign-in; and the userinfo endpoint, only when the ID token leaves out a claim the service needs.
  • The search programs run on the snapshot in the data volume. BLAST+ can send usage reports to NCBI, and the service turns that off (BLAST_USAGE_REPORT=false) for every program it starts.
  • Claim suggestions from a language model are off unless you set BIOSEQUENCE_CLAIMS_MODEL_URL and BIOSEQUENCE_CLAIMS_MODEL. With them set, a case's claims, with the paragraphs of its description chosen for them, go to that address when someone asks for suggestions. The address may use http:// only on 127.0.0.1 or localhost. Any other host must be named in BIOSEQUENCE_CLAIMS_MODEL_HOSTS and use https://. With sign-in on, 127.0.0.1 is the container itself, so a model on the same server needs a container that shares that address (--network container:sequences) or a named host with HTTPS. With sign-in on, an account's text goes only once that account turns the feature on. See Claim suggestions from a model.
  • Watch emails are off unless you set BIOSEQUENCE_MAIL_FROM and BIOSEQUENCE_RESEND_KEY. With them set, the service posts each email to https://api.resend.com/emails over HTTPS: the person's address, how many new matches or publications one of their watches found, and links back to the service. With BIOSEQUENCE_MAIL_DETAILS=on, it also posts the watch's name and its new matches or publications.
  • Patent context reads only its folder in the data volume and makes no network connections.
  • Clinical context, the funding trail, drug names, antibody names and protein names, when they run, read only their folders in the data volume and make no network connections. Nor do the dates from Crossref: the paper folder holds them, and a search asks Crossref nothing.
  • The license is checked inside the container against the key built into the image. There is no license server, and the service sends no usage data anywhere.
  • A worker: requests to its coordinator's worker port, over HTTPS between hosts, and nothing else. It asks for searches, sends their progress and results back, and says hello every 20 seconds. A coordinator sends nothing to its workers but its answers.

What the browser loads: the page, its scripts, styles and font, all from the service itself. Links leave it only when someone clicks them: the patent link on each result and on each new publication a watch lists (BIOSEQUENCE_PATENT_LINK), a patent's links to Espacenet and, for a US publication, to Patent Public Search, the PubMed and DOI links of the papers a hit cites and of their notices, the terms pages under Sources and terms, with BIOSEQUENCE_ROR set, the link to a suggested ROR record (https://ror.org/<id>), with BIOSEQUENCE_ANTIBODY_NAMES set, the link to each named antibody's page at ChEMBL (https://www.ebi.ac.uk/chembl) and to the names' license at Creative Commons, with a patent context that holds other offices, its links to Google Patents (https://patents.google.com), Espacenet and the text's license at Creative Commons, and, with clinical context on, the links to Open Targets (https://platform.opentargets.org), ChEMBL (https://www.ebi.ac.uk/chembl) and ClinicalTrials.gov (https://clinicaltrials.gov). With the funding trail on, the page also links to NIH RePORTER (https://reporter.nih.gov). With drug names on, it links each named drug to its ChEMBL compound page (https://www.ebi.ac.uk/chembl) or its FDA UNII record (https://precision.fda.gov).

Commands you run yourself: fetch downloads the public source files from NCBI, EBI and UniProt over HTTPS, and crossref asks https://api.crossref.org for the dates of papers PubMed does not hold. antibody-names fetch downloads a ChEMBL release and its molecules' names from EBI over HTTPS. build, delta, load, verify, sums, attribution, papers, ror, antibody-names build, protein-names, context extract, context assemble, context check, context google stems, context google build and check-license make no network connections. context ops, only with BIOSEQUENCE_OPS=on, asks EPO's Open Patent Services at ops.epo.org for the numbers of the snapshot's publications of other offices. To hold the service to this, allow its container outbound HTTPS to your provider's host names, to your claims model's host if you set one, to api.resend.com if you turn on watch emails, and nothing else. A container that runs fetch also needs outbound HTTPS to ftp.ncbi.nlm.nih.gov, ftp.ebi.ac.uk and ftp.uniprot.org, one that runs crossref to api.crossref.org, one that runs antibody-names fetch to ftp.ebi.ac.uk and www.ebi.ac.uk, and one that runs context ops to ops.epo.org. A worker needs only its coordinator's worker port, and the coordinator's worker port only the workers' addresses.

Questions about installing Sequences go to support@conductscience.com.

Guide version 1.63.0 · For Sequences 0.155.0