Application storage guide
Use NordenVault with your apps
Store your app’s documents, images or media in NordenVault and read them through S3. For example, a client portal can keep project files here while your app decides who can upload and download them.
Connect your application
S3 API access is included with every plan. Your app needs support for a custom S3 endpoint and path-style addressing. An owner or administrator can create a separate credential for it in Credentials.
- Endpoint:
https://s3.nordenvault.com - Bucket and region: copy these from your connection details.
- Authentication: access key ID and secret access key, using Signature Version 4.
- Addressing: path style. In an AWS JavaScript SDK client, set
forcePathStyle: true.
Save the secret when you create the credential. Keep it in your server’s secret store and out of browser code, mobile app bundles and source control. Someone with that credential can access storage without signing in to your NordenVault account.
Upload, list and download a test file
This Python example asks for your connection details, uploads a small text file to a unique path and checks the downloaded contents. After a successful check, it deletes only the test file it created.
With Python 3 installed, create a virtual environment and install the Boto3 SDK. On macOS or Linux:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install boto3On Windows, create the environment with py -m venv .venv, then use .venv\Scripts\python.exe for the install and run commands.
Save the following as storage_test.py, then run python storage_test.py. The secret key is hidden as you enter it.
from getpass import getpass
from uuid import uuid4
import boto3
from botocore.config import Config
bucket = input("Bucket name: ").strip()
region = input("Region from connection details: ").strip()
s3 = boto3.client(
"s3",
endpoint_url="https://s3.nordenvault.com",
region_name=region,
aws_access_key_id=input("Access key ID: ").strip(),
aws_secret_access_key=getpass("Secret access key: "),
config=Config(
signature_version="s3v4",
s3={"addressing_style": "path"},
request_checksum_calculation="when_required",
response_checksum_validation="when_required",
),
)
prefix = f"app-storage-test/{uuid4()}/"
key = prefix + "hello.txt"
original = b"Hello from my app.\n"
s3.put_object(
Bucket=bucket, Key=key, Body=original,
ContentType="text/plain",
)
print("Uploaded:", key)
pages = s3.get_paginator("list_objects_v2")
for page in pages.paginate(Bucket=bucket, Prefix=prefix):
for item in page.get("Contents", []):
print(item["Key"], item["Size"])
response = s3.get_object(Bucket=bucket, Key=key)
with response["Body"] as body:
downloaded = body.read()
if downloaded != original:
raise RuntimeError("Downloaded contents do not match")
print("Downloaded contents match the original.")
# Remove only the test object created by this run.
s3.delete_object(Bucket=bucket, Key=key)
print("Test object removed.")If the download check fails, the script leaves the test file in storage for inspection. Its path is printed after upload. The SDK configuration reference explains the signing, addressing and checksum settings.
Control access through your app
For a client portal, have your server check the signed-in user’s access before it uploads or retrieves a file. Assign a unique storage path to each new file and keep the owner and access permissions in your application’s database.
A folder prefix organises files; it does not restrict what an S3 credential can access. Keep the credential on your server and check permissions for every request. Uploading to an existing path can replace its contents.
For uploads from outside contributors, your application needs its own upload form, authentication and size limits. Files saved to your bucket use your workspace’s storage allowance. NordenVault’s sharing links currently let recipients download files; they do not let recipients upload into your workspace.
Use a separate credential for each integration so you can revoke one without changing every app. For a hosted third-party app, check how it stores the credential and what access it needs before connecting it.
Choose encryption your app can use
Ordinary S3 files require authorised access and travel over HTTPS. Your connected app can read their contents, as can authorised NordenVault storage administrators.
Private backups add encryption on your device with a recovery key NordenVault does not hold. An app cannot preview, index or play the original files inside that backup unless it can decrypt the backup’s format and has the key. Giving another service the key also gives it the ability to read the contents.
For searchable documents or playable media, use files the app can read. If your application encrypts files itself, it must also manage the keys and decryption. Read the backup protection guide before choosing a format.
Read media and connect an existing app
S3 range requests let an app retrieve part of a file. A media player may use these to seek within audio or video. Test your player’s seeking, file sizes and concurrent downloads with your application; video conversion, previews and playback controls belong in that application.
For an existing app or media library, choose its S3-compatible storage option and enter the connection details above. Check whether it can read files already in the bucket or needs to upload them in its own format. Start with a small test library and confirm that uploads, searches, previews and downloads work as expected.
Before using it with customers
Test the operations your app uses, including larger uploads, downloads and interrupted transfers. Check that one customer cannot retrieve another customer’s files. Keep a separate backup of files you need to recover after accidental replacement or deletion.