When you have a client portal built, you think about convenience first: clients log in, check their quotes and invoices, download documents and follow the status of their file. But as soon as personal data sits behind a login, you are responsible for how well it is protected. Below I list what the GDPR expects, how I handle login, what you log and what belongs in your privacy notice.

What the GDPR expects from a client portal

The core is Article 32. Whoever processes data, and the party that does it on your behalf, must take "appropriate technical and organisational measures" for a level of security that fits the risk (text of Article 32 GDPR). You take into account the state of the art, the costs, and the nature, scope, context and purposes of the processing. You weigh the risks to your clients by how likely and how severe they are.

The article itself lists a number of measures:

  • pseudonymisation and encryption of personal data;
  • ongoing confidentiality, integrity, availability and resilience of systems;
  • restoring the data in time after a physical or technical incident;
  • a process for regularly testing and evaluating those measures.

Article 32 also refers to the fines in Article 83(4)(a). Security is not an optional extra.

The Belgian Data Protection Authority (GBA) puts it more simply in its guide Wegwijs in de AVG voor KMO's: you protect personal data against unauthorised access or processing, against loss and against damage. For a portal, that means very concretely that client A never gets to see the invoices of client B.

Why this matters now

Article 32 asks you to take the state of the art into account, and that keeps moving. Two references developers rely on have been updated: the fourth revision of NIST SP 800-63B on authentication and the OWASP Top 10 of 2025, with a separate category for logging and alerting. Habits like mandatory capitals and digits in passwords, or forcing password changes every few months, are now discouraged by OWASP. A portal built a few years ago may be lagging behind.

Retention periods: no longer than needed

According to the GBA, you may never keep personal data longer than needed for its purpose. Once the purpose is reached or gone, you delete it. That is why you set a maximum retention period for all your personal data. According to the same guide, accounting data is only deleted after seven years. The FAQ brochure for SMEs adds that you only process what is adequate, relevant and necessary.

In a portal, invoices therefore fall under the accounting period, while you set your own period for quotes, documents and case status. Those periods, together with a general description of your security measures, belong in your record of processing activities where possible. I prefer to build deletion in automatically, so it doesn't depend on someone's memory.

Secure login with a password

NIST SP 800-63B-4 is clear. If the password is the only factor, it is at least 15 characters long. Allow passwords of at least 64 characters, accept all printable characters and the space, and count each Unicode character as one. Always ask for the full password and check it without truncating it.

The OWASP Authentication Cheat Sheet agrees: no composition rules, no forced periodic changes, but a new password when it has leaked. Encourage MFA and ask for authentication again before sensitive actions, such as changing an email address or bank details. Using an email address as username is fine, provided it was verified at registration, and internal or sensitive accounts must never get in through the public login page (OWASP).

For a higher level (AAL2), NIST says a password alone is not enough. A second factor is added, such as a one-time code, a confirmation through another channel, a list of backup codes or a cryptographic authenticator. For a portal with invoices and case files, I offer that second factor by default.

What you log, and what you don't

The OWASP Top 10:2025 calls it a failure when failed login attempts are not logged, for example when only successful logins are kept. Log logins, access control failures and failed validations on the server side, with enough context for a later investigation. Protect the logs against tampering, monitor them and don't keep them only locally without a backup.

The OWASP Logging Cheat Sheet is just as strict about what stays out: passwords, session IDs, access tokens, sensitive personal data and bank or card details are removed, masked, hashed or encrypted. Names and email addresses are pseudonymised when the identity isn't needed. Logs also have a retention period: not shorter, but not longer either. How much you log is decided at the design stage, in proportion to the risk.

What belongs in your privacy notice

Anyone processing personal data always needs a privacy notice that is easy to find and understand (Ondernemersplein). It includes your name and contact details, the contact details of your data protection officer if you have one, the legal basis, who receives the data, how long you keep it and whether you use automated decision-making. Also explain how clients exercise their right of access. If you don't get the data from the client directly, the GBA says you inform them within one month at the latest.

The approach, in order

  1. Define the purpose for each data type (documents, quotes, invoices, case status) and process only what is needed.
  2. Set a retention period per type and record it, with your security measures, in your record of processing activities.
  3. Choose measures that fit the risk: encryption, backups you can actually restore, and a fixed moment to test.
  4. Sign a data processing agreement with whoever hosts your portal or supplies the software.
  5. Sort out login: at least 15 characters, no composition rules, a second factor and re-authentication for sensitive actions.
  6. Log logins and failed access checks without passwords or tokens, and keep logs according to your retention period.
  7. Publish your privacy notice and make sure it matches what the portal actually does.

Do it yourself or outsource

The first two steps and the privacy notice are best done yourself: you know your clients and your purposes. The technical part, from login to logging and backups, is better left to someone who builds it every day. Whoever hosts your portal is your processor and, according to the GBA, helps you with security, reporting a data breach and a DPIA.

You can read more about what a portal can do in a client portal for your business. If you want one built, have a look at custom client portal or my wider work on web applications. A custom platform starts from €2,500 and is delivered in phases. An integration with your accounting software or another system costs €250 per integration. Code, domain and hosting are in your name.