# RCC managed website and application database profile

This service-specific guide extends the full
[RCC cluster developer contract](cluster-integration.md). Use the common
[`project-cluster-handoff.yml`](project-cluster-handoff.yml); do not create a
separate service handoff.

Preparing a service request does not authorize or perform a live deployment.

## Select the smallest service profile

Set `services.web.profile` to one of:

- `protected-web-application` for a dashboard or application behind RCC login,
  served at `https://rcc.ikim.uk-essen.de/apps/<app>/`;
- `none` when the project does not need a website.

`static-site` remains a handoff value, but RCC no longer publishes static
project sites or anonymous project paths (ADR-0360).

Set `services.database.requested: true` only for private SQL state required by
one protected application. An RCC application-local database is not a public or
shared database service. It stays colocated with the approved application,
listens only on loopback, and is never reached through the web gateway.

A recurring analysis is not automatically a web service. Represent it as
`services.scheduled_batch` and a bounded Slurm job whenever that satisfies the
scientific requirement.

## What the project supplies

- project purpose, data classification, and named human owners;
- tested application code and reproducible dependency locks;
- a bounded health check for an active application;
- project-group authorization rather than a shared application account;
- the requested application name `<app>` (`[a-z0-9][a-z0-9-]{0,62}`) and tier
  (sandboxed or reviewed);
- expected database size, recovery objectives, and a restore acceptance test
  when a database is requested;
- the completed non-secret cluster handoff.

The application must not implement a second RCC login, trust identity headers
from arbitrary clients, publish cluster filesystem roots, accept arbitrary file
paths, or store private material in Git or browser code.

## What the RCC operator supplies

- project and human-owner verification;
- application placement and private database placement, if approved;
- RCC authentication, certificates, routing, and exact-source firewalling;
- protected credential custody;
- review and publication of the website configuration;
- database image provenance, resource limits, protected off-host backups, and
  restore evidence;
- live acceptance and rollback evidence.

Agents must leave these values unresolved. A null value in the handoff is an
operator input, not permission to guess.

## Application requirements

For a protected application:

1. accept the authenticated RCC identity only from the trusted gateway;
2. serve correctly below the `/apps/<app>/` prefix the gateway forwards;
3. verify membership in the intended RCC project;
4. run as a dedicated service identity;
5. keep the backend unreachable from ordinary clients;
6. use curated identifiers and a fixed reviewed root for downloads;
7. include negative tests for direct access and forged identity headers.

If a database is requested, use a least-privilege local database account and do
not expose the SQL port. Do not put connection material or production endpoint
assignments in the handoff.

## Request, review, and deployment

The project lead submits the website request through the approved RCC workflow.
RCC administrators and operators review the project, security profile,
application, and database request. Repository review, infrastructure assignment,
and live deployment occur later as separate recorded changes.

Do not report the service as available until RCC operations supplies live
acceptance evidence.
