Files & releases
Keep your real program in Warden instead of shipping it. Customers only get it after signing in with a valid key, and you can publish a new version, with notes, without changing a line of your loader.
Upload a file
- 1Open Content → Files and upload your program (an .exe, a .zip, a DLL, anything).
- 2Copy its file ID. That ID never changes, even when you publish new versions, so your code and your loader keep pointing at it.
- 3Leave Require login on. Then the file is only handed to a session that has signed in with a valid key.
How clients get it
The SDKs' file() downloads the file into memory. Its SHA-256 comes in the signed response and the SDK checks the bytes against it, so a swapped or corrupted download is refused. file_info() (FileInfo in Go) returns the details without downloading: name, size, SHA-256, version, and the release label and notes.
from warden_auth import Warden
app = Warden(app_id="YOUR_APP_ID", public_key="YOUR_PUBLIC_KEY", version="1.0",
api_url="https://your-warden-site.com/api/v1")
app.init()
app.license(input("License key: "))
info = app.file_info("YOUR_FILE_ID") # name, size, sha256, version, release, notes
print(f"Downloading {info['release'] or 'latest'}")
if info["notes"]:
print(info["notes"])
data = app.file("YOUR_FILE_ID") # the bytes, checked against the signed sha256Files over 10 MB come back as a signed link that works for 60 seconds instead of in the response itself. The SDKs handle that for you. If you use the Warden loader, it does all of this, keeps an encrypted copy, and only downloads again when the file changes.
Publish a new release
- 1On the file, click New release and pick the new build.
- 2Give it a version. Warden suggests the next one (1.2 → 1.3), and you can type your own.
- 3Add notes if you like ("Fixed the crash on startup"). Clients can show them, and the loader shows the version while it downloads.
- 4Publish. The next time a customer signs in, they get the new version. The file ID stays the same.
History & rollback
History on a file lists its releases, newest first, with versions, notes, sizes and dates. If a release goes wrong, click Roll back on an earlier one: it becomes the current version straight away, and loaders switch back to it on the next sign-in because the hash changed.
The 10 newest releases of each file are kept; older ones are removed when you publish more. Deleting a file deletes all of its releases.
Limits
| Upload size | Up to 50 MB per file or release |
| Releases kept | The 10 newest per file |
| Large downloads | Over 10 MB: a signed link valid for 60 seconds |
| Who can download | With Require login on, only signed-in sessions |