Demo All names and records here are made up, and the data resets every night. Please do not enter real personal information. ← Back to Find Care Scotland software · All software
Care Core

Documentation › Reference › Security and privacy

Security and privacy

How personal data is protected, and what to do about the rest.

Care Core holds personal information about staff and about people who receive care. This page explains how it is protected, who can see what, and what remains your organisation’s responsibility. A shorter public summary is on the Security and privacy page.

Who can see what

  • Access is by role, checked on the server for every page and action, not just hidden in the menu.
  • Every query is limited to the signed-in person’s organisation. One organisation cannot reach another’s records. This is tested.
  • Care information (needs, contacts, key workers, NHS numbers) is available only to managers and administrators, and only when the Care module is on.
  • National Insurance and bank details are shown only on the manager’s staff record page and, masked, to the person themselves and in their own pending requests.
  • A signature can be seen by the person, their line manager, managers and administrators.

Protecting data

  • Encryption of the most sensitive fields. National Insurance number and bank details are encrypted in the database with AES-256-GCM, using a key (APP_KEY) that is not in the database. A copy of the database alone does not reveal them. Keep the key backed up separately, and do not change it: data encrypted with a lost key cannot be recovered.
  • Passwords are stored only as salted hashes (PHP password_hash). Nobody, including administrators, can read them.
  • Invitation links, SCIM tokens are stored only as SHA-256 hashes and shown once.
  • Webhook secrets are shown once when created. (They are kept in the database because Care Core needs them to sign each delivery, so protect database access and backups.)
  • Photos and signatures are stored outside the web root, with random names, are checked to be real images, and are served only to people allowed to see them.
  • HTTPS is required on a live site; the server tells browsers to insist on it.

The API

  • Every API key has scopes (the least it needs), an optional address allow-list and expiry, and its own rate limit. Only a hash of the key is stored; it is shown once.
  • The API is HTTPS only, sets no cookies, has no session and sends no CORS headers: keys belong on servers.
  • Without care.read a key cannot see people who only receive support; National Insurance and bank details need their own scope.
  • Everything a key does is attributed to it in the activity log, and the log never contains sensitive values.
  • A refused request changes nothing, and unknown ids from another organisation look exactly like ids that do not exist.

Protecting access

  • Sign-in is rate limited and gives the same message whether or not an account exists.
  • Two-step sign-in with an authenticator app is available for password logins: the secret is stored encrypted, each code works once, and recovery codes are stored only as hashes. See Signing in. Microsoft sign-in lets you apply your tenant’s own multi-factor rules.
  • Sessions use private, script-proof cookies, a new session identifier at each sign-in, and are re-checked on every request. A leaver’s access ends on the right day with no job needing to run.
  • Microsoft sign-in verifies tokens fully and matches on a permanent identifier. It never creates accounts.
  • Every form that changes data carries a secret token tied to your session, so another website cannot make your browser submit one.
  • Everything displayed is escaped, so a name containing code is shown as text.
  • Browsers are told to allow only Care Core’s own scripts and styles, to refuse framing the site in another site, and not to guess file types.
  • All database queries use bound parameters.

Accountability

  • The activity log records who did what and when, in the same transaction as the change. For sensitive fields it names the field, never the value.
  • Approvals record who reviewed and when. Staff changes to the most sensitive details need a second person.
  • Events sent to other systems carry identifiers and dates only: no names, contact details or health information.

Protecting the integrity of the record

  • Changes are all-or-nothing (database transactions).
  • Rules stop impossible states: overlapping employment, a key worker who is not staff, a team place before the person joined.
  • The consistency check proves the data agrees with itself.

What is still up to you

Care Core is a tool, not a compliance certificate. You remain the data controller for the information in it. The following are your organisation’s decisions and are not automated:
  • Lawful basis, privacy notices and records of processing under UK GDPR, and a data protection impact assessment for care information.
  • Retention and deletion. Care Core keeps history indefinitely and never deletes a person. Agree retention periods, and use the database to archive or remove records when they expire. There is no automated retention tool yet.
  • Subject access requests. There is no export button yet; the data is in the database tables listed in the data model.
  • Hosting security. Keep PHP, the database and the server patched; restrict who can reach the server and the database; take and test backups; protect the .env file and APP_KEY.
  • Who gets an administrator role. Give it to as few people as possible.
  • Penetration testing and a formal security review before storing real data.

See What it does not do yet.