Docs/AngeMedia

Secure AngeMedia

Web Studio, API access and provider authentication use different credentials. Review each boundary before exposing the service.

Admin sessionGateway keyProtected media

Keep three credential types separate

CredentialPurposeDo not use it for
Administrator accountWeb Studio sign-in and configurationNormal API clients
Gateway API keyImage/video API and protected media accessUpstream provider authentication
Provider API keyGateway-to-provider requestsBrowsers or external clients

Before public access

  1. Use a long random administrator password and a separate Gateway key.
  2. Expose the service through an HTTPS reverse proxy and keep provider keys server-side.
  3. Limit upload size, download size, concurrency and queue capacity.
  4. Require authentication for /generated/* and /uploads/*.
  5. Allow only administrators to configure custom provider Base URLs.

Media files

Gateway should safely download and localize signed provider URLs. External responses must not reveal local filesystem paths, raw signed URLs, data URLs or complete provider responses.

Logs and diagnostics

External URLs

Reference images and provider results require URL validation, redirect re-checks, size limits and timeouts. Do not allow Gateway to become an arbitrary internal-network downloader.

After suspected exposure

  1. Revoke or rotate the affected key.
  2. Review recent jobs, administrator sign-ins and access logs.
  3. Remove public screenshots, issues or archives that contain secrets.
  4. Confirm that the new credential exists only in protected runtime configuration.