Why Ollama security hardening starts with the bind address
Ollama binds to 127.0.0.1:11434 by default, and its local API at localhost:11434 does not require authentication. Hardening a shared Ollama server therefore means controlling who can reach that port, adding access control in front of it, and governing which models run and how updates are applied. The bind address is the first decision because everything else depends on it. If the server is reachable from the network, any client that can reach port 11434 can send inference requests without presenting credentials.
The difficulty is that the exposure can change without anyone deciding it should. Setting the OLLAMA_HOST environment variable changes the bind address, so a service file, shell profile or container definition copied from a tutorial can open the port to every interface. Containers and service managers also change the effective defaults: a published container port, a host network setting or a unit file override can expose the API even when the application config looks correct. Confirm the listening address on the host itself, for example with a socket listing command, after every change, and review the environment of the running process rather than the template it came from.
Exposure is not the only review item. Model storage defaults to ~/.ollama/models on macOS, /usr/share/ollama/.ollama/models on Linux and the user's .ollama\models folder on Windows, and OLLAMA_MODELS moves it, so the team should know which directory holds the weights and who can write to it. Cloud features also need a decision: OLLAMA_NO_CLOUD=1 or the server configuration file can turn them off, and the team should confirm which setting its build uses. Settle these points before a proxy or TLS layer is added, because each one changes what the proxy needs to protect.
How requests reach Ollama and where trust boundaries sit
The diagram starts with clients on the user network and follows requests through a TLS-terminating reverse proxy with authentication to the Ollama server bound to 127.0.0.1:11434. Ollama reads and writes models in the model store directory on the host. A separate, optional path leaves the host to ollama.com only when cloud features are enabled, and that path carries a Bearer API key. Check each boundary: which port listens on which interface, whether the proxy is the only route in, and whether OLLAMA_NO_CLOUD=1 is set where cloud calls are not wanted.
Request path from clients to Ollama, with the host, loopback and cloud trust boundaries marked.
Which Ollama settings control the attack surface
A small set of Ollama settings decides who can reach the server, where models live, which features call out to the internet and how much work the server accepts at once. Review each one against your network design before the server takes production traffic, because the defaults assume a single-user machine rather than a shared service.
Bind address with OLLAMA_HOST
Ollama listens on 127.0.0.1 port 11434 by default, so only processes on the same machine can reach it. The OLLAMA_HOST variable changes the bind address, and a value that points at all interfaces exposes the API to every network the host can reach. Check the bound address with your operating system's socket listing after every change, and confirm that a firewall or reverse proxy sits in front of any non-loopback bind.
Ollama FAQREST API and OpenAI-compatible endpoints
The REST API on port 11434 serves model management and inference, and it includes OpenAI-compatible endpoints that many applications call without modification. Because the local API does not require authentication, anything that reaches the port can run prompts, pull models and consume GPU time. Map which client applications use these endpoints and place authentication in front of any exposed path.
Cloud features with OLLAMA_NO_CLOUD
Cloud models send requests to Ollama's hosted service, which changes where prompts and data go. Setting OLLAMA_NO_CLOUD=1 or the matching key in the server configuration file turns those features off. Confirm the setting in the running process, since a value set in a shell profile does not reach a service started by systemd or a container.
Ollama FAQModel storage with OLLAMA_MODELS
Models are stored in a default directory that differs by operating system, such as /usr/share/ollama/.ollama/models on Linux. The OLLAMA_MODELS variable moves that store to another path, which lets you place weights on a dedicated volume with controlled ownership and backup rules. Restrict write access to the directory so that only the service account can add or replace model files.
Ollama FAQConcurrency limits with NUM_PARALLEL
OLLAMA_NUM_PARALLEL sets how many requests a model handles at the same time, and its default is 1 parallel request per model. Raising it increases throughput but also increases memory use and the load one client can place on the GPU. Set it from measured capacity, and pair it with queue limits so a single caller cannot starve others.
Loaded models and queue depth
OLLAMA_MAX_LOADED_MODELS caps how many models stay in memory, with a default of 3 times the number of GPUs or 3 on CPU. OLLAMA_MAX_QUEUE caps waiting requests, with a default of 512. Lower both values on constrained hardware so that requests fail quickly instead of queuing until clients time out, and document the chosen numbers in your runbook.
Choosing between localhost-only, proxy-fronted and cloud-enabled setups
This table compares four ways to expose an Ollama server, from the default localhost bind to a proxy with TLS and authentication, with cloud features on or off. Read each row against your users, your network and the controls your assessor will ask about. The main takeaway is that every step beyond localhost adds an operational owner for certificates, authentication and logs.
| Setup | When it fits | Operational cost | Main risk to confirm |
|---|---|---|---|
| Localhost only (default 127.0.0.1:11434) | One developer or service on the same machine, with no network clients | Almost none; no certificates or authentication to run | Local API has no authentication, so any local process or user can send requests |
| Private interface behind a firewall (OLLAMA_HOST) | Several internal clients on a trusted segment that a firewall controls | Firewall rules to maintain; access depends on network policy staying correct | Port 11434 becomes reachable to anything the firewall permits, with no per-user identity |
| Reverse proxy (such as Nginx) with TLS and authentication | Shared access by named users or applications across a network | Certificate issuance and renewal, auth configuration, proxy patching and upgrade testing | Proxy misconfiguration can expose the API; confirm it blocks paths you do not intend to publish |
| Cloud features enabled (direct ollama.com API use) | Workloads that need hosted cloud models in addition to local ones | API key handling and rotation; data leaves your environment for cloud requests | Prompts sent to cloud models are outside local-only data handling; confirm the terms that apply |
| Cloud features disabled (OLLAMA_NO_CLOUD=1) | Regulated or air-gapped setups that must keep inference on local hardware | Loss of cloud model access; teams must plan local model sizes instead | Confirm that no client or config still calls cloud endpoints after the change |
| Audit detail across setups | Assessors ask who sent which request and when | Localhost and firewall setups give little per-user record; a proxy can log requests | Proxy logs show caller addresses and paths, which may not identify the person; confirm what your evidence requires |
How to harden an Ollama server step by step
This sequence moves an Ollama server from its default local setup to a deliberately exposed, authenticated and patched service, with a check at each step that confirms the change took effect. Each check produces evidence your security and compliance reviewers can read.
Inventory the host and existing listeners
Before changing anything, the platform or security engineer records the host operating system, the Ollama version, the service account Ollama runs under, and every process listening on the machine. Use the operating system's socket listing tools to confirm whether anything already answers on port 11434 and which address it is bound to. Save this output as the baseline. The step is done when you can state, from the listing alone, whether Ollama is reachable from anything other than the loopback interface.
Confirm or set the bind address deliberately
Ollama binds to 127.0.0.1 on port 11434 by default. If the server only needs local clients, leave that default in place. If other hosts must reach it, set the OLLAMA_HOST environment variable to the single interface address that the reverse proxy will use, rather than an all-interfaces address. Record the value in the service definition so it survives restarts. The step closes when the listener check shows the address you chose and nothing wider.
Place a TLS reverse proxy with authentication in front
Ollama's local API has no authentication, so the platform team places a reverse proxy such as Nginx in front of it. The proxy terminates TLS with certificates issued by your certificate authority and enforces an authentication layer, such as SSO-backed sessions or API keys checked at the proxy. Confirm the exact proxy setup against Ollama's FAQ, which describes exposing the service through proxies. The step closes when an unauthenticated request to the proxy is refused and an authenticated request over TLS returns a model list.
Restrict firewall rules to the proxy
The network team writes host firewall rules so that only the proxy host or proxy process can open connections to the Ollama port, and only the approved client networks can reach the proxy's HTTPS port. Deny all other inbound traffic to 11434 at the host and at the network perimeter. Keep the rule set in version control with the service configuration. The step closes with a port scan run from outside the allowed network that shows 11434 closed and the HTTPS port open only from the approved ranges.
Move model storage to a controlled volume
Ollama stores models in a default directory that depends on the operating system. Set the OLLAMA_MODELS variable to a dedicated volume that only the Ollama service account can write to, with read access limited to the administrators who manage models. Confirm the default path for your platform in Ollama's FAQ before changing it, and make sure the volume is included in backups and encryption policy. The step closes when the new directory holds the model files and an ownership and permission listing shows no write access for other accounts.
Disable cloud features where policy requires
If your policy forbids sending requests to hosted cloud inference, set OLLAMA_NO_CLOUD=1 in the service environment or in the server configuration file, as described in Ollama's FAQ. Ollama states that local runs do not expose your prompts or data, but policy owners should still confirm that no cloud model can be pulled or called. Ask for the change to be recorded in the configuration baseline. The step closes when a test request for a cloud-hosted model is refused by the server.
Set concurrency and queue limits
Limits protect the host from being overwhelmed by a single client or a runaway integration. Ollama's FAQ documents OLLAMA_NUM_PARALLEL, which defaults to one parallel request per model, OLLAMA_MAX_LOADED_MODELS, and OLLAMA_MAX_QUEUE, which defaults to 512 queued requests. Choose values that match the hardware and the number of approved clients, and document the reasoning so reviewers can check it. The step closes when a load test against the proxy shows requests queue and time out as configured rather than exhausting memory on the host.
Pin and patch the runtime
Ollama ships frequent releases, so pin the installed version in your deployment tooling and apply updates through a tested change process. Subscribe to the project's release notes and review each release for security-relevant changes before rollout. Confirm the running version after every update and keep the previous version available for rollback. The step closes when the version reported by the running service matches the pinned value and the rollback procedure has been rehearsed on a non-production host.
How hardening changes on a single workstation, a shared server and in containers
On a developer laptop running macOS or Windows, Ollama binds to 127.0.0.1 on port 11434 by default, so the API is reachable only from that machine. For a single user working on their own hardware, that default is often sufficient, and the main task is confirming that nothing has changed it.
- Confirm the bind address: Check that
OLLAMA_HOSTis not set to a public address in your shell profile or system environment variables. - Check for forwarded ports: Remove any SSH tunnel, VPN split route or port forwarding rule that exposes 11434 to other devices on the network.
- Review cloud features: If you do not use hosted models, set
OLLAMA_NO_CLOUD=1or use the server configuration file to turn cloud features off. - Keep API keys out of local tools: Direct cloud inference requires a Bearer token, so store any key you create in a secrets manager rather than in project files.
Before you rely on the laptop setup, confirm the bind address with a quick check from another device on the same network, which should be refused.
On a shared Linux server, Ollama models are stored by default in /usr/share/ollama/.ollama/models, and the local API has no authentication. Several users or applications may reach the same service, so the work shifts from one person's settings to access control around the service account and the model files.
- Review the service user: Confirm which account runs the Ollama service and that it is not a general-purpose login with broad rights.
- Lock down the model directory: Check ownership and permissions on /usr/share/ollama/.ollama/models so that only the service account can write models, and decide who may read them.
- Move models if needed: If storage must sit on a separate volume, set
OLLAMA_MODELSto that directory and apply the same permission review there. - Put a proxy in front: The Ollama FAQ describes exposing the service through proxies such as Nginx, which is where TLS and authentication are added when clients are remote.
- Set concurrency limits: Review
OLLAMA_NUM_PARALLEL,OLLAMA_MAX_LOADED_MODELSandOLLAMA_MAX_QUEUEso one client cannot starve the others.
After changes, confirm the service user can run models and that other local accounts cannot modify model files.
In a Docker deployment, the address the process binds to inside the container and the port published to the host both determine who can reach the API. Ollama listens on port 11434, and a container can bind to all interfaces even when the host looks restricted, so the publishing configuration must be checked directly.
- Check the published port: Review the port mapping in your run command or compose file, and avoid publishing 11434 on all host interfaces unless a proxy requires it.
- Check the bind address: Confirm the value of
OLLAMA_HOSTinside the container, since a container-wide bind changes what the published port exposes. - Mount model storage deliberately: Use a named volume or a host path for model data, and set permissions so the container user can read and write only that location.
- Pin the image version: Pinning the image lets you test a new release before it reaches production, which matters given frequent Ollama releases.
- Verify from outside the container: Test the published address from another host to confirm it matches the intended exposure.
Before go-live, confirm the exposed address with a scan or request from the network segment that should and should not have access.
Access control, TLS and secrets handling for Ollama
Ollama's local API ships without authentication, so every control in this section starts from one question: who can reach the port, and with what credential. The cards cover the local bind, exposure through a proxy, the ollama.com API key, model provenance, and queue limits that keep one client from exhausting the server. Check each one on the running host, not only in the configuration file.
Unauthenticated local API
The API on port 11434 accepts requests without credentials, so any process or user on the host can pull models, run prompts and read responses. Control: keep the default bind to 127.0.0.1, and put authentication in a reverse proxy before any remote client gets access. Check that no client reaches the API from another machine without passing that proxy.
Ollama API authenticationAccidental exposure from OLLAMA_HOST
Setting OLLAMA_HOST to a wildcard or public address moves the unauthenticated API onto the network. This often happens when a container or service needs remote access and the variable is copied into a broader environment. Control: keep the bind on loopback, restrict inbound rules at the host or network firewall, and scan the host from outside the network to confirm the port is closed.
Ollama API key as Bearer token
Direct cloud inference at ollama.com requires an API key sent as a Bearer token in the Authorization header. A leaked key lets anyone run billable cloud requests under your account. Control: load the key from a secrets manager or a restricted environment variable at runtime, never from a committed config file, and keep it out of request logs, proxy access logs and error traces.
Model provenance and approved sources
Models pulled into the model store are code-like artifacts that affect output and can carry unreviewed content or license terms. Control: maintain an allowlist of approved model names and tags, pull only from sources your team has reviewed, and record the digest of each model you approve. Confirm the model store location, set with OLLAMA_MODELS, has restricted write access so only the deployment process can add models.
Resource exhaustion from parallel requests
Concurrency is controlled by OLLAMA_NUM_PARALLEL, OLLAMA_MAX_LOADED_MODELS and OLLAMA_MAX_QUEUE. Without deliberate values, a burst of requests or a runaway client can fill memory, starve other users and grow the queue. Control: set these limits to match the hardware, cap queue depth so requests fail fast, and set client-side and proxy-side timeouts. Test the limits under load before go-live.
- Default queued requests
- 512
How to control which models run on the server
Model provenance is a security control, not a convenience feature. A local Ollama server will run whatever model is in its store, and anyone who can pull a model can change what answers users receive, what data a model is tuned to imitate, and what licence terms the organization is accepting. Start by writing an approved model list that names each model, the tag or version the team tested, the business use it was approved for, and the owner who signed off. Keep the list in the same change-controlled repository as the server configuration so that a deviation shows up in review.
Next, decide who may pull new models into the store and how. In most deployments this should be a small set of platform administrators acting through a documented change, not every developer with shell access to the host. Record each pull with the date, the requester, the model name and tag, and the approving owner. Where the Ollama version in use provides checksums, digests or other recorded model versions, make the server compare them against the approved record and treat a mismatch as an incident. Confirm exactly which verification features exist, how they are enabled and what they cover in the Ollama docs for the version you run, because these features change between releases and the Ollama FAQ is the place to check model storage behavior. Do not assume a feature exists because a neighboring tool has one.
Finally, state the limits of what this control proves. A matching digest shows the file is the one you approved, not that the model is safe, unbiased or free of licensing problems. Ask the model owner to review the licence, the intended use and the testing results, and plan periodic re-review when a model is updated. DeployOpen does not certify, endorse or audit any model. Where a compliance assessor needs evidence, the approved list, pull logs and change records are the artifacts to prepare, and the assessor decides whether they are sufficient.
How to test that Ollama is locked down and fails safely
This sequence checks that the Ollama listener, proxy, cloud controls and concurrency limits behave as configured, and records what a failed test looks like so each gap has an owner and a fix before go-live.
Record the intended configuration first
Before testing, the engineer writes down the expected bind address, the value of OLLAMA_HOST, whether OLLAMA_NO_CLOUD=1 is set, the proxy hostname, the TLS certificate in use, and the OLLAMA_NUM_PARALLEL, OLLAMA_MAX_LOADED_MODELS and OLLAMA_MAX_QUEUE values. Each later test is judged against this written baseline, not against memory of the setup. The step is done when the baseline is saved in the change record and the security reviewer has signed off on it. Confirm the environment variable names and defaults against the Ollama FAQ for the exact version in use.
Confirm the listener address with a socket check
On the Ollama host, the engineer lists listening sockets (for example with ss or netstat on Linux, or the equivalent on macOS and Windows) and filters for port 11434. With the default setup, the socket should be bound to 127.0.0.1 only. If OLLAMA_HOST was changed, the socket should match the intended interface and nothing else. A failed test is any listener on 0.0.0.0, a public or unexpected interface address, or the port open on a host that should only be reached through the proxy. Record the output in the test log.
Attempt unauthenticated access from outside the allowed network
From a host outside the allowed network segment, the tester sends requests directly to the Ollama port and to the proxy hostname. The direct connection should be refused or time out, and the proxy should not pass traffic to Ollama without the controls it enforces. Because the local API has no built-in authentication, any successful request that reaches the model API from an unapproved source is a failed test. Repeat from at least one network segment that is supposed to be blocked and one that is supposed to be allowed, so the result shows both sides of the rule.
Confirm the proxy rejects requests without credentials
The tester sends requests through the reverse proxy with no credentials, with an invalid credential, and with a valid credential, using a simple call to the model listing endpoint and a short generation request. The proxy should reject the first two with an authentication error and forward only the third. The tester also confirms that the proxy does not forward the request when the credential check service is unavailable. Any request reaching Ollama without passing the proxy check is a failed test. The step closes when the three outcomes are logged.
Confirm the proxy enforces TLS
The tester connects to the proxy over plain HTTP and over HTTPS, then inspects the certificate chain and protocol versions offered. Plain HTTP requests should be refused or redirected without returning model output, and the certificate should match the expected hostname and be issued by the approved authority. A failed test is any response containing model data over plain HTTP, a certificate warning on a client that uses the approved trust store, or acceptance of old protocol versions your policy prohibits. Confirm the TLS settings against your own policy, since the required versions are set by your organization.
Confirm cloud calls are blocked when OLLAMA_NO_CLOUD=1 is set
With OLLAMA_NO_CLOUD=1 set in the server environment or configuration file, the tester restarts the service and sends a request for a cloud model, then checks the server logs and the outbound firewall logs for any connection to ollama.com. The request should fail with a clear error, and no outbound connection to the cloud endpoints should appear. Local models should still answer. A failed test is a cloud request that succeeds, an outbound connection to the cloud API, or a restart that silently drops the setting. Also verify that no cloud API key is present in the environment, since direct cloud inference authenticates with a Bearer token.
Confirm the server queues or rejects excess load
The tester sends a burst of concurrent requests larger than OLLAMA_NUM_PARALLEL and OLLAMA_MAX_QUEUE allow, using a load tool the team already approves, and records response codes, latency and memory use on the host. Requests beyond the configured parallelism should wait in the queue, and requests beyond the queue limit should be rejected rather than hanging the host. Also load more models than OLLAMA_MAX_LOADED_MODELS to confirm the server unloads older models. A failed test is an unbounded queue, a host that runs out of memory, or a server that stops responding. The step closes when the limits behave as the baseline describes.
Document failures and retest after fixes
Each failed test is logged with the exact request, the observed response, the expected result from the baseline and an owner. The team fixes the configuration, reruns the failed test and attaches the new output to the same record, then reruns any earlier test the change could affect, such as the listener check after an OLLAMA_HOST change. The sequence is complete when every test has a passing result on the current version and the record is stored with the deployment evidence. If a fix changes the Ollama version, repeat the full sequence on that version.
What to monitor, back up and document after hardening
This table lists the recurring tasks that keep a hardened Ollama server hardened, with what each task checks, how often the client should set it, and what evidence to keep. Read it as a handover checklist: each row names an owner-facing task and the artifact that proves it was done. Retention periods, review frequencies and recovery targets must be set by the client, not inherited from this page.
| Task | What to check | Evidence to keep |
|---|---|---|
| Listener and exposure monitoring | Confirm Ollama still binds to 127.0.0.1:11434 unless OLLAMA_HOST was deliberately changed, and that no firewall rule opened the port | Periodic listener scan output and change records for OLLAMA_HOST |
| Proxy access logs | Review requests reaching the reverse proxy in front of Ollama, including source addresses, paths and status codes | Log retention settings and a record of who reviews logs and how often |
| Configuration and model store backup | Back up the server configuration and the model store directory (default paths vary by OS, or the OLLAMA_MODELS location) | Backup job logs and a tested restore record; recovery targets set by the client |
| Release and model tracking | Track new Ollama releases and model updates, test them in a staging environment before production, and record the version in use | Patch cadence document, test results and the installed version history |
| API key review and rotation | Review which keys call cloud endpoints, remove unused keys, and rotate keys on a schedule or after staff changes | Key inventory with owner, creation date, last use and rotation log |
| Cloud policy and limits check | Confirm OLLAMA_NO_CLOUD=1 or the server configuration setting still applies, and that concurrency limits such as OLLAMA_NUM_PARALLEL and OLLAMA_MAX_QUEUE match the approved values | Configuration snapshots and a dated review sign-off |
| Hardening runbook | Record bind address, proxy and TLS settings, cloud policy, resource limits, model sources and patch owner in one document | Versioned runbook reviewed after each change, stored where the security and operations teams can both access it |
Questions teams ask before hardening Ollama
How much effort does hardening an Ollama server take?
The effort depends mostly on how the server is exposed and who needs to reach it. A single developer workstation bound to localhost needs little beyond confirming the default bind. A shared server that several teams call through a proxy needs TLS, authentication in front of the API, logging, resource limits, a patching routine and documented model sources. Compliance evidence adds the most work, because each control needs a配置 record, a test and an owner. Ask any partner to size the work from your exposure model, user count and the assessment framework you must satisfy, and to state those assumptions in the written scope before work starts.
Can our own team harden Ollama without outside help?
Yes, if your team already runs reverse proxies, TLS certificates and Linux service configuration. The core steps are keeping the default bind on 127.0.0.1:11434 or setting OLLAMA_HOST deliberately, placing a proxy with authentication in front of any shared endpoint, setting OLLAMA_NO_CLOUD=1 where cloud features are not wanted, and capping concurrency with OLLAMA_NUM_PARALLEL, OLLAMA_MAX_LOADED_MODELS and OLLAMA_MAX_QUEUE. The harder parts are proving the result to an auditor and keeping the configuration correct through upgrades. Outside help is most useful for an independent review, a fixed-scope build, or a retest after changes.
What do we need to provide before a hardening engagement starts?
The work moves faster when you prepare four inputs:
- A network diagram showing where Ollama runs, which clients call it and which zones they sit in.
- Access to your identity provider, or a decision on which authentication method the proxy will use.
- An approved model list, including where each model file came from and who may pull new ones.
- Your hosting details, such as the operating system, whether Ollama runs in Docker, and where
OLLAMA_MODELSpoints.
You should also name a technical owner who can approve firewall and proxy changes, and state the evidence your compliance team needs so the scope covers it.
Does Ollama's Enterprise plan replace hardening work?
No. The Enterprise plan adds model access controls and cost budgets per user or API key, along with a dedicated support channel and custom security options on top of the Team plan's features. These help govern who uses which models and how much they spend, and they are worth checking against your requirements. Your team still configures the network controls: the bind address, the proxy, TLS, firewall rules, logging destinations and patching of the host. Confirm with Ollama exactly what the plan covers in writing before you assume any control is included, and treat the plan's features as one input to your design, not the whole design. The Ollama pricing page lists the current plan contents.
Can the local Ollama API be secured without a proxy?
Not by Ollama alone. The local API at localhost:11434 does not require authentication, so any process or user that can reach the port can send requests. Keeping the default localhost bind limits that exposure to the machine itself, which is often enough for a single-user workstation. Once you bind to a network address with OLLAMA_HOST, anyone who can reach that address can use the models. Authentication, TLS and per-user logging therefore come from a reverse proxy or gateway in front of Ollama, combined with firewall rules that keep the raw port closed. Confirm this design with your security team before exposing the service.
What does hardening cost, and what drives the price?
Ollama's software is open source and licensed under MIT, so there is no license fee for running models on your own hardware, and Ollama's pricing page states that local use is unlimited. The recurring and one-time costs are people time, hardware or cloud instances, the proxy and certificate tooling, and monitoring. The main drivers are the number of endpoints, the authentication model, the compliance evidence required, and how often models and Ollama versions change. Ask any quote to itemize the build, the testing, the handover and any retainer for upgrades, and to state which items are one-time and which recur.
Does hardening stop after go-live?
No. Ollama ships frequent releases, and each change to the binary, the proxy or the model set can reopen a gap. The v0.40.5 release on 14 October 2026 and the v0.40.6 pre-release on 16 October 2026 show how quickly the project moves. Plan for a routine that tests each new version in a staging copy, reviews configuration after upgrades, checks that the cloud features remain off, and records which model files are in use. Decide who owns that routine and whether it needs a retainer or stays with your team.
Does DeployOpen issue a security certification for our Ollama server?
No. DeployOpen plans, implements, hardens and documents self-hosted platforms inside your own infrastructure, and it prepares systems, controls and evidence for compliance assessments. It also runs security testing of applications, APIs, infrastructure and AI systems. It does not issue audit reports, attestations or certifications. Independent auditors and certification bodies perform those assessments, and your compliance team should confirm early which evidence they will accept.
How DeployOpen scopes and hands over Ollama hardening
The sequence turns an Ollama server that may be exposed too widely into a documented configuration, with each change verified against the threats the client agreed to address. The client keeps a written record of what was changed, why, and how to check it.
Agree the written scope first
Before any work starts, DeployOpen and the client agree in writing what is in scope: which Ollama hosts, operating systems or containers, network zones, client applications, and the hardening goals. The scope also names what is out of scope, such as user authentication if it is handled by a separate SSO project. Deliverables and the handover format are listed here too. The step is complete when both parties have signed off the scope document and the list of hosts and owners.
Inventory the servers and their exposure
DeployOpen works with the client's platform and network teams to record each Ollama instance, its version, install method, bind address, listening ports, models directory, and any reverse proxy in front of it. The team also checks whether the server is reachable from networks it should not be, and whether cloud features are enabled. The output is an inventory that lists the current state of every host in scope. The client confirms the inventory matches what they know about their environment.
Run a threat review of the deployment
Using the inventory, DeployOpen reviews who and what can reach the API, what the local endpoint trusts, where prompts and model files are stored, and what happens if a request floods the queue. Ollama's local API has no built-in authentication, so the review focuses on which network paths make it reachable and which clients sit on those paths. The output is a short threat register with each risk, its likelihood in the client's setting, and the proposed control. The client approves the register before configuration begins.
Configure the server in the client environment
DeployOpen makes the agreed changes inside the client's own infrastructure, using the client's change process and access. Typical work includes keeping the default 127.0.0.1 bind or setting OLLAMA_HOST deliberately, placing a reverse proxy with TLS in front of any exposed address, setting the model directory with OLLAMA_MODELS, limiting concurrency with OLLAMA_NUM_PARALLEL, OLLAMA_MAX_LOADED_MODELS and OLLAMA_MAX_QUEUE, and turning off cloud features with OLLAMA_NO_CLOUD=1 where the client requires it. Each change is recorded with the file, value and reason. The step closes when the configuration is applied and the client has reviewed the change record.
Verify controls with testing and retest
DeployOpen tests each control against the threat register. Checks typically include confirming the listening address from another host, confirming the proxy rejects unauthenticated or unencrypted access, checking that cloud features are disabled, testing request limits under load, and confirming that model files are stored where the client expects with the right permissions. Findings are written up with severity, evidence and a recommended fix. After the client applies fixes, DeployOpen retests the affected items and records the result. The step closes when every agreed control has a passing result or an accepted exception.
Hand over the documented configuration
DeployOpen delivers a handover package covering the final configuration, the threat register, the test results and retest records, the procedure for adding models and checking model provenance, and the steps for patching and rollback. The client's operations team walks through the package and runs the key checks themselves. The handover is complete when the client's owners confirm they can operate and audit the server without DeployOpen present. DeployOpen prepares this evidence for the client's own compliance reviewers but does not issue audit reports or certifications.
Decide on ongoing patching and testing
Ollama ships frequent releases, so hardening decays unless new versions are reviewed. Clients can ask DeployOpen for a retainer covering patch review, configuration drift checks, and periodic retesting, or they can keep these tasks in-house using the handover package. The quote should state what the retainer includes, how releases are reviewed, and how urgent fixes are handled. The step ends when the client chooses between in-house operation and a retainer, and that choice is recorded in the scope document.

