Skip to content

About

KyDrive: file storage over WebDAV with in-browser office editing and whiteboards

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

686 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KyDrive

OpenSSF Best Practices OpenSSF Scorecard

Start here: Standalone installation. Browse, upload, download and organize files in permissioned workspaces, share files, retain versions and trash, and link desktop sync clients. Staff sign-in and provisioning require KyIdentity; the local bootstrap account is for administration. Euro-Office is an optional separate editor service. Recovery needs both sealed metadata and the independent bulk repository.

Open-source personal and shared drive for the Ky suite. KyIdentity owns people and groups; KyDrive owns workspace permissions. Euro-Office is the first editor integration. The drive stores arbitrary files and exposes a workspace-scoped service API for other suite applications.

Initial deployment: one linux/amd64 Docker container on the NAS, Euro-Office in Kubernetes. The same drive image and SQLite/filesystem model also run on a single Kubernetes persistent volume. Verified pilot deployment evidence and remaining gates are in PILOT.md.

Scope

Single-instance SQLite and filesystem storage. No SMB endpoint, released desktop app (in development, see Linked computers), guest editing, automatic version deletion unless a workspace retention policy is enabled, or HA. Interrupted unpublished uploads leave unreferenced blobs until the hourly sweep removes them; abandoned resumable uploads keep their sealed staging under <data>/staging for 24 hours. Filename search decrypts names per request (about 0.2 s per 50 000 names on the reference host). Search also matches whole words in the current version of Office, OpenDocument, text and (with Euro-Office) PDF files, a few seconds after they change, the start of a word with * after 3 or more letters (conf*, up to the 100 commonest words) and exact phrases in quotes ("site report", checked in the best 200 matches); KYDRIVE_CONTENT_SEARCH=off turns that off. Search covers the user's workspaces and the live items in their Shared with me list, checked on every search, so a revoked share drops out at once (AI agents over MCP search their own workspaces only). Results can be narrowed to one type (folders, documents, spreadsheets, presentations, PDFs, images, videos, audio or archives), read from the name's extension; a type alone lists every item of that type. Its index holds keyed hashes of words, not words, plus a sealed list of the indexed words for prefixes, and is in no backup: it is rebuilt after a restore, and it reveals to someone holding the disk which files share words and how often words occur (Encryption at rest). A download, preview or folder zip is cut off only if it stalls for KY_WRITE_TIMEOUT, and completing a resumable upload is not bounded by the timeouts; one WebDAV PUT or single-request upload must finish within KY_READ_TIMEOUT (at most 15m). An acknowledged save refers to durably flushed bytes plus a committed database revision.

KyDrive inherits the MIT-licensed server base. Euro-Office is a separate AGPLv3 service; Restic is BSD-2-Clause. Keep each dependency's license and source obligations with its distribution.

When a directory user is also named admin, reserve a distinct name for the local recovery administrator before provisioning: /app/kydrive-server rename-local-admin -from admin -to recovery-admin. Run this operator command with the deployment environment and persistent data mounted. It atomically renames only a local administrator, preserves its credentials and privileges, and records an audit row. Directory accounts are never adopted as local administrators.

What it can do

  • Upload, organize, share and version files in permissioned workspaces, and find them by name or by the words in them.
  • Use WebDAV or link compatible desktop sync clients.
  • Let AI agents read and organize files over MCP, with an access level and an optional folder limit per agent.
  • Configure optional Euro-Office editing and document previews.
  • Recover both sealed metadata and the bound bulk-file snapshot; restored clients sign in and receive new access credentials (restore runbook).

Connect an AI agent

AI agents such as OpenClaw and Hermes Agent reach your files over MCP at https://<your host>/mcp. In Settings → Phones & apps, under App passwords, choose AI agent and an access level:

  • Read only (the default): the agent lists, searches (by name and by content) and reads your files, including the text of Word, Excel, PowerPoint and OpenDocument files, and of PDFs when Euro-Office is set up.
  • Read and write: it can also create, replace, rename, move and trash files.

Optionally limit the agent to one folder: it then sees that folder as its whole drive and nothing outside it. An agent never has more access than you do, and none can delete anything for good itself: trashed items go to KyDrive's trash, which keeps them for the administrator's trash period (90 days by default), and a replaced file keeps its old version unless the workspace's version retention removes it. The page shows the token once, with config for both agents that reads it from KYDRIVE_TOKEN, and the command to install the KyDrive skill (served at /agent/skills/kydrive/SKILL.md), which teaches the agent the tools and when to ask you first. You can change an agent's access there later. An agent token unused for 90 days is revoked; an agent token never works over WebDAV, nor a WebDAV password over MCP. Details are in Clients and editor.

A web page can never obtain or use a token: /mcp refuses every browser request, sends no CORS headers, and tokens are created only from KyDrive's own pages, which always name the agent and the access it gets.

File names and contents can come from other people, and an agent may treat them as instructions. Give an agent write access only if you trust everyone who can message it.

License

KyDrive is released under the MIT License.

OctoCounts

Documentation

Euro-Office can also run on Docker with the optional production editor Compose overlay; Kubernetes remains supported.

  • Development — Local development, Verification.
  • Deployment — NAS package, Kubernetes rendering.
  • Permissions — Identity and permissions, Sharing, Leavers, Retention and permanent delete.
  • Clients and editor — Previews, WebDAV, Linked computers, AI agents, Editor.
  • Recovery and encryption — Encryption at rest, Recovery.
  • Verifying releases — Check a release image's signature and source commit, and rebuild its binary to the same bytes.
  • Assurance case — Threat model, trust boundaries, and why the security requirements are met.
  • Key strength and TLS profile — Key-size rules, the optional GODEBUG=fips140=on overlay, the HTTPS edge and what stays out of scope.
  • Contributing — How to report bugs, propose changes, the test policy and the coding standard.

User manual

Read the online manual or browse its Markdown sources.

Build and check it with mdbook build docs and python3 docs/check-links.py, then open docs/book/index.html. The documentation workflow also provides a downloadable documentation-book artifact.

About

KyDrive: file storage over WebDAV with in-browser office editing and whiteboards

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages