Turn on optional features
Turn on drop data with live sync, uploaded assets and connectors to company databases on a dropshelf instance.
A dropshelf instance serves drops from the start. Three features add more, and each stays off until you turn it on: drop data with live sync, uploaded assets and connectors. This page is for the operator who turns them on and gives each what it needs.
The blocks under platform: and connectors: go in the server's configuration file. On a Helm
install, put them under config: in your values file. The example values file all-features.yaml
turns all three on; Helm chart values shows it.
Prerequisites
- A running instance. Install with Helm or run on a single host first.
- Access to the server's configuration and its Secret, or to the Helm values.
Drop data and live sync
With platform.db on, a drop's own pages can store documents in collections, and every open tab
receives each change as it happens. The data lives in the instance's Postgres and goes with the drop
when it is deleted.
To turn it on, set:
platform:
db:
enabled: trueWhile it is off, the drop data routes answer 404.
Serve HTTP/2 at the edge. Each open tab holds one stream per synced collection, and browsers allow about six HTTP/1.1 connections per host. The chart's Ingress serves HTTP/2 over TLS with ingress-nginx by default.
The limits per drop, per member and per replica have defaults that suit most instances. The configuration reference lists them. The server checks them at every startup, even while the feature is off.
Uploaded assets
With platform.assets on, a drop's visitors can upload files, which the drop serves from its own
address. Assets go in the instance's object store under the drop's prefix, so they need no new
permission. They go with the drop when it is deleted.
To turn it on, set the switch and, if the defaults do not suit, the limits:
platform:
assets:
enabled: true
maxFileBytes: 25MB
maxBytesPerDrop: 500MB
writesPerMinutePerMember: 30maxFileBytesis the largest one asset may be. It may not exceedmaxBytesPerDrop.maxBytesPerDropis the most bytes of assets one drop may hold.writesPerMinutePerMembercounts one member's uploads and deletes together.
Two things grow with maxFileBytes:
- The spool volume. Each upload waits in
server.spoolDirbefore it is stored, and one replica takes up to sixteen at once. Add sixteen timesmaxFileBytesto the spool, 400 MB at the default. - The proxy's body size. The proxy in front must accept a request body as large as
maxFileBytes. Withingress.className: nginx, keep it underingress.nginx.proxyBodySize, which is110mby default.
On a Helm install, raise the spool volume and the pod's ephemeral storage request together. The request is the sum of the spool and cache volumes:
config:
platform:
assets:
enabled: true
volumes:
spool:
sizeLimit: 4Gi
resources:
requests:
ephemeral-storage: 14Giserver.timeouts.upload bounds how long each upload's body may take, 15m by default. It must be
positive while assets are on.
Connectors
Connectors let a drop read company data. An admin connects a source, a Postgres database or a Snowflake account, and says who may use it. A drop's queries then run against the source through dropshelf. Nothing a query returns is stored, and answers are cached in each replica's memory.
Turn connectors on
To turn connectors on:
-
Generate a key of at least 32 bytes, which seals the sources' credentials in the database:
openssl rand -hex 32 -
Add the key to the Secret as
DROPSHELF_CONNECTORS_SECRETS:kubectl -n dropshelf patch secret dropshelf-secrets --type merge -p '{"stringData":{"DROPSHELF_CONNECTORS_SECRETS":"<key>"}}'On a single host, set the variable in the server's environment instead.
-
Set the switch:
connectors: enabled: true -
Let the pods reach every database an admin will connect. Where network policies or firewalls apply, allow egress to them.
-
Apply the change with
helm upgrade. A change to the Secret alone does not restart the pods, so also runkubectl -n dropshelf rollout restart deployment/dropshelf.
These keys are separate from the session secrets. While connectors are off, a deploy that carries a queries file is refused, and the query routes answer 404.
Prepare a read-only role
Connect each source as a role that can read only what drops may read. dropshelf checks every query against what the source's grants allow, and the role is the limit that holds behind those checks.
For Postgres 12 or later, create a role along these lines:
CREATE ROLE dropshelf_reader LOGIN PASSWORD '<password>';
GRANT CONNECT ON DATABASE warehouse TO dropshelf_reader;
GRANT USAGE ON SCHEMA marketing TO dropshelf_reader;
GRANT SELECT ON ALL TABLES IN SCHEMA marketing TO dropshelf_reader;
ALTER DEFAULT PRIVILEGES IN SCHEMA marketing GRANT SELECT ON TABLES TO dropshelf_reader;Give it nothing else: no write grant, no pg_read_server_files and no extensions such as dblink.
Each query runs in a read-only transaction with a statement timeout.
For Snowflake, a source signs in as a service user with a key pair, never a password. Give it a warehouse of its own, so its cost is plain to see and to cap:
CREATE ROLE DROPSHELF_READER;
CREATE WAREHOUSE DROPSHELF_XS WAREHOUSE_SIZE = XSMALL AUTO_SUSPEND = 60 AUTO_RESUME = TRUE INITIALLY_SUSPENDED = TRUE;
GRANT USAGE ON WAREHOUSE DROPSHELF_XS TO ROLE DROPSHELF_READER;
GRANT USAGE ON DATABASE ANALYTICS TO ROLE DROPSHELF_READER;
GRANT USAGE ON SCHEMA ANALYTICS.MARKETING TO ROLE DROPSHELF_READER;
GRANT SELECT ON ALL TABLES IN SCHEMA ANALYTICS.MARKETING TO ROLE DROPSHELF_READER;
GRANT SELECT ON FUTURE TABLES IN SCHEMA ANALYTICS.MARKETING TO ROLE DROPSHELF_READER;
GRANT SELECT ON ALL VIEWS IN SCHEMA ANALYTICS.MARKETING TO ROLE DROPSHELF_READER;
CREATE USER DROPSHELF_APP TYPE = SERVICE DEFAULT_ROLE = DROPSHELF_READER DEFAULT_WAREHOUSE = DROPSHELF_XS
RSA_PUBLIC_KEY = '<public-key>';
GRANT ROLE DROPSHELF_READER TO USER DROPSHELF_APP;Create the key pair with OpenSSL:
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out dropshelf.p8 -nocrypt
openssl rsa -in dropshelf.p8 -puboutThe public key, without its header and footer lines, is <public-key>. The private key file,
dropshelf.p8, is the source's credential. Give the role no access to the SNOWFLAKE database.
Add a source
An admin adds each source in the dashboard:
- Open Admin > Connectors, select Add source, then Database.
- Fill in the connection. For Postgres, that is the host, port, database and user, with an SSL mode
of
verify-fullunless you choose another. For Snowflake, it is the account identifier, user, role, warehouse and default database. - Enter the credential: the Postgres password, or the Snowflake private key.
- Select Test connection, then Add source. The source's page opens on its Grants tab.
- Select Add grant and say who may use the source: one person, by email address, or Everyone. Each grant covers Everything the role reads, or the schemas and tables you tick.
Until a source has a grant, only admins can use it.
To keep a credential out of the database, enter ${DROPSHELF_CONNECTOR_<NAME>} instead of the value.
The server then reads it from that environment variable, which you set on every replica. <NAME> is
uppercase letters, digits and underscores, such as SALES.
connectors.defaults sets the limits a new source starts with, such as the cache time and the most
rows per query. An admin changes them per source, up to 100,000 rows, 50 MB, a 5 minute timeout and
32 connections. The configuration reference lists them.
Connect an MCP server
A source can also be an MCP server, such as your ticket system's. It holds no credential of its own. Each member signs in to the server themselves, so the server decides what each member sees, and grants do not apply to it. A server that asks nobody to sign in can be a source too.
To add one:
- Open Admin > Connectors, select Add source, then MCP server.
- Enter a name and the server's address, which must begin with
https://. - Wait for the server check. It shows three steps: whether an MCP server answers at the address, where the server says members sign in, and whether that sign-in server registers clients itself.
- Select Add source. The source's page opens.
The source is ready. Drops may call every tool that says of itself that it only reads, and members connect to the server from Connections in their account menu.
If the panel asks for a Client id in step 3, the sign-in server does not register clients itself.
Register dropshelf there with the redirect address <public-url>/api/v1/connections/callback. Then
enter the client's id, and its secret if it has one.
The check decides how members sign in:
| What the server says | The source | What members do |
|---|---|---|
| It describes a sign-in | OAuth | Sign in on the server's own page |
| It asks for a credential and describes no sign-in | Token | Paste a token the server issued them |
| It answers anyone and describes no sign-in | No sign-in | Nothing. Drops call it with no credential |
The check reports what the server says of itself. That members can sign in is shown when the first one connects.
If no MCP server answers at the address, or its sign-in server cannot be used, the panel says so and the failed step says why. Check the address first. To add the source anyway, select Continue anyway and choose how members sign in yourself.
Choose which tools drops may call
By default a drop may call every tool that says of itself that it only reads. dropshelf reads what a tool says each time it calls it, so a tool that says it writes, or says nothing, does not run.
The source's Tools tab has three choices:
- Read-only tools: every tool that says it only reads. This is the default.
- Chosen tools: the tools you tick, and no others.
- All tools: every tool the server has, including tools that write.
With All tools, a drop can call a tool that changes data on the server. The call runs with a member's sign-in.
To allow a shorter list, or a tool that says nothing about itself:
- Open the source on Admin > Connectors.
- On its Tools tab, select Chosen tools.
- If you are not connected to the server, select Connect and load tools. The list is read with your own connection.
- Tick the tools drops may call.
- Select Save.
The list is for every drop on the instance, not for you alone. A tool that describes itself and does not say it only reads cannot be ticked. A tool that says nothing about itself can, so tick it only if you know that it only reads.
To limit the source to restricted and private drops, choose that under Which drops may use it on the source's Connection tab. Its Members tab lists who is connected and whose sign-in ran out.
Changing a source's address or the way members sign in removes every member's connection and clears the ticked tools. Members connect again, and you choose the tools again.
To allow an MCP server inside your own network that is served without TLS, set
connectors.mcp.allowHTTP:
connectors:
enabled: true
mcp:
allowHTTP: trueMembers' tokens are sent to an http:// address unencrypted, so leave this off for any server
reached over a network you do not control.
Confirm it worked
Open Admin > Settings. Its Configuration shows the effective settings, with enabled: true
under each feature you turned on. With connectors on, the admin panel also shows Connectors.
Next steps
- Set limits and retention
- Administer dropshelf
- Rotate secrets
- Monitor dropshelf
- Configuration reference: platform
Last updated .