=== Canal Informante – Whistleblowing Channel (Ley 2/2023) ===
Contributors: rgcglobalnet
Tags: whistleblowing, canal de denuncias, ley 2/2023, internal reporting, anonymous
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Technical tool for a self-hosted internal reporting channel: anonymous, encrypted reports, follow-up, configurable deadlines, register.

== Description ==

> **Legal notice.** Canal Informante is a technical support tool for managing internal reports. It does not certify, guarantee or ensure compliance with Spanish Law 2/2023, Italian Legislative Decree 24/2023, Portuguese Law 93/2021 or any other law, and it does not replace legal advice. The configuration, the oral channel where applicable, the appointment of the person or office that manages the channel, the internal procedure, the privacy notice and data protection (GDPR), and compliance with the law are exclusively the responsibility of your organisation, with its own legal advice.

Spanish Law 2/2023, Italian Legislative Decree 24/2023 and Portuguese Law 93/2021 require many organisations (for example, private employers with 50 or more workers and public bodies) to have an **internal reporting channel**. Whether and how these laws apply to you is for you and your advisers to decide.

**Canal Informante** runs the channel inside your own WordPress, with no monthly fee. Reports are stored only on your server, and the plugin makes no external calls. You choose who holds the encryption key: **the Responsable del Sistema** (a passphrase that is never stored, so WordPress administrators, the hosting company or an agency cannot read the reports), or the server (`wp-config.php` or a key file outside the web root).

= What you get =

* **Anonymous or identified reports.** Visitors choose. Anonymous reports ask for no personal data at all.
* **Two-way follow-up without email.** The reporter receives a tracking code and a password. With them they can read your acknowledgement, answer questions and add information, while staying anonymous.
* **Encryption at rest.** Descriptions, messages and attachments are encrypted with libsodium (XSalsa20-Poly1305). Tracking codes are stored only as keyed hashes.
* **Key held by the Responsable del Sistema (recommended).** Each case gets its own random key. It is stored only sealed to a public key derived from the Responsable's passphrase (Argon2id, or PBKDF2-SHA256 on hosts without native sodium) and wrapped with the reporter's code and password. The server can encrypt new reports but cannot read them. Unlocking lasts 30 minutes in that browser, and changing the passphrase re-wraps every case.
* **Configurable deadlines.** Each country profile presets default values that you can change (Spain: acknowledgement within 7 days and an answer within 3 months of receipt, with one extension of up to 3 months). Overdue cases show in red, and the manager gets email reminders.
* **Register.** A record to support the libro-registro of art. 26 of Law 2/2023 (or the register of other laws). It lists every communication with its dates, category, status and outcome, and exports to CSV. It contains no case content.
* **Automatic deletion.** With the Spain profile, cases closed as not admitted are deleted 3 months after receipt. Closed cases are deleted after a period you choose, and register entries after the number of years you set (Spain default: 10). Other deletions the law may require (for example art. 32.4 of Law 2/2023) are up to the manager.
* **Access log.** Every view, message, status change and download is recorded in an append-only log for each case.
* **No IP addresses stored.** Rate limiting uses an ephemeral keyed hash that expires within an hour.
* **Not public anywhere.** Cases are excluded from search, the REST API, feeds, sitemaps and exports. Only users with the "Whistleblowing system manager" role (or administrators) can see them.
* **Face-to-face meeting request**, and an editable channel policy and **external channels** notice (default texts per country, to be reviewed by your organisation).
* **Alerts without content.** Emails only say that something happened, never what.
* Shortcode: `[canal_informante]`. Works with any theme. English, Spanish, Catalan, Italian and European Portuguese included.

= Italy and Portugal (country profiles, 1.1.0) =

In Settings › Country profile choose **Spain – Law 2/2023**, **Italy – Legislative Decree 24/2023** or **Portugal – Law 93/2021**. The profile presets technical defaults that you can change and must check with your advisers. Choosing a profile does not make the channel compliant with that country's law:

* **Italy:** acknowledgement within 7 days; feedback within 3 months of the acknowledgement (or of the end of the 7 days); no extension; content kept 60 months after closure by default (the decree sets a maximum of 5 years from the final outcome); default texts that mention the ANAC external channel. Italian terminology (segnalazione, persona segnalante, gestore del canale). The decree provides for **oral reports** (telephone line or voice messaging, or a direct meeting on request) and for consulting trade-union representatives before activating the channel: the plugin provides neither the oral channel nor the consultation.
* **Portugal:** notification of receipt within 7 days; measures communicated within 3 months **of receipt**; no extension; the acknowledgement message includes your text on external channels (requirements, competent authorities, form and admissibility); content kept 60 months after closure by default (the law requires at least 5 years and longer while proceedings are pending: the plugin does not track proceedings, so you must adjust or export). There is no automatic alert for the 15-day period to communicate the result on request (art. 11.4). Portuguese terminology (denúncia, denunciante, canal de denúncia interna).
* Interface translated into Italian (it_IT) and European Portuguese (pt_PT).

= Technical limitations =

* No integrated oral or telephone channel and no voice recording.
* No tracking of pending judicial or administrative proceedings (relevant, for example, to art. 20 of Portuguese Law 93/2021).
* No automatic alert for the 15-day period to communicate the result of the analysis on request (art. 11.4 of Portuguese Law 93/2021).
* No automatic deletion of open communications (for example those on which no investigation has started after 3 months, art. 32.4 of Spanish Law 2/2023).
* Your organisation must write and approve its own internal procedure, privacy notice and data protection officer contact, review the default texts and decide every setting.

= How it works =

1. Install and activate. In Canal Informante › Settings › Encryption and key custody, the Responsable del Sistema sets a passphrase (recommended), or you add a server key to `wp-config.php`.
2. Create a page such as "Canal interno de información", add `[canal_informante]` and link it from your footer.
3. A person reports. They get a code and a password, and you get an email alert.
4. Open Canal Informante › Cases. Read the report, press **Send acknowledgement**, ask questions, and close the case with an outcome. Deadlines and the register update automatically.

= Canal Informante Pro =

For organisations that delegate investigations or share a channel:

| | Free | Pro |
|---|:---:|:---:|
| Anonymous, encrypted reporting portal | ✓ | ✓ |
| Key held by the Responsable del Sistema | ✓ | ✓ |
| Two-way follow-up with code and password | ✓ | ✓ |
| Configurable deadlines with reminders | ✓ | ✓ |
| Register (libro-registro) + CSV | ✓ | ✓ |
| Automatic deletion and access log | ✓ | ✓ |
| Case instructors who only see assigned cases | – | ✓ |
| Conflict-of-interest declaration before opening a case | – | ✓ |
| PDF case file (for the Prosecutor or the board) | – | ✓ |
| Annual aggregated report (PDF) | – | ✓ |
| Several entities in one channel (for groups or shared resources; check with your advisers whether sharing is allowed) | – | ✓ |
| Priority email support | – | ✓ |

Pro: 49 €/year, or 149 € one-off lifetime (one organisation; perpetual use and updates while the product is sold; first 100 licences only). Despacho: 149 €/year (advisers, up to 10 client entities). Prices + VAT in the EU. The reporting channel never depends on a licence: if the licence check fails nothing changes, and a revoked Pro licence keeps working for 30 days. Details: [rgcglobalnet.com/canal-informante](https://rgcglobalnet.com/canal-informante/)

= Important =

Canal Informante is software, not legal advice, and it does not certify compliance. Your organisation is the data controller and must appoint the person or office that manages the channel (in Spain, the Responsable del Sistema, art. 8). We never receive or process your reports. Review the texts with your adviser.

= Italiano =

Strumento tecnico per gestire un canale di segnalazione interna (whistleblowing) sul tuo WordPress, con valori predefiniti configurabili per l'Italia: segnalazioni anonime o nominative e cifrate, codice e password per il segnalante, avviso di ricevimento entro 7 giorni e riscontro entro 3 mesi (termini configurabili), registro delle segnalazioni ed eliminazione automatica. **Avviso legale:** è uno strumento tecnico di supporto; non certifica né garantisce la conformità al D.Lgs. 24/2023 né sostituisce la consulenza legale. La configurazione, il canale orale, l'atto organizzativo, la designazione e la formazione del gestore, la consultazione delle rappresentanze sindacali, l'informativa privacy e la DPIA spettano esclusivamente all'ente, con la propria consulenza legale. Limiti tecnici: nessun canale orale o telefonico integrato.

= Português =

Ferramenta técnica para gerir um canal de denúncia interna no seu WordPress, com valores predefinidos configuráveis para Portugal: denúncias anónimas ou identificadas e cifradas, código e palavra-passe para o denunciante, notificação da receção em 7 dias e comunicação das medidas em 3 meses a contar da receção (prazos configuráveis), registo das denúncias e eliminação automática. **Aviso legal:** é uma ferramenta técnica de apoio; não certifica nem garante o cumprimento da Lei n.º 93/2021 e não substitui aconselhamento jurídico. A configuração, as denúncias verbais, a designação de pessoas independentes e imparciais, o aviso de privacidade, o encarregado da proteção de dados e os prazos de conservação são da exclusiva responsabilidade da entidade, com o seu próprio aconselhamento jurídico. Limitações técnicas: sem canal verbal ou telefónico integrado, sem acompanhamento de processos judiciais ou administrativos pendentes (art. 20.º) e sem alerta automático do prazo de 15 dias (art. 11.º, n.º 4).

= Español =

Herramienta técnica de apoyo para gestionar un canal interno de información en tu propio WordPress, con valores por defecto configurables para la Ley 2/2023. No certifica ni garantiza el cumplimiento legal ni sustituye el asesoramiento jurídico: la configuración, el canal verbal si procede, el nombramiento del Responsable del Sistema, el procedimiento, el RGPD y el cumplimiento normativo corresponden exclusivamente a la organización, con su propio asesoramiento jurídico. Permite comunicaciones anónimas o identificadas, cifradas. La clave puede tenerla solo el Responsable del Sistema (frase de paso que no se guarda en el servidor: ni el administrador ni la agencia pueden leer las denuncias) o el servidor (wp-config.php o un archivo fuera de la web). El informante hace el seguimiento con un código y una contraseña. Incluye plazos configurables (por defecto, acuse en 7 días y respuesta en 3 meses desde la recepción, ampliable hasta 3 más en casos de especial complejidad), registro de apoyo al libro-registro con exportación CSV, borrado automático, registro de accesos y aviso de canales externos (A.A.I.). No guarda direcciones IP.

== Installation ==

1. Install from Plugins › Add New and activate.
2. Open Canal Informante › Settings › Encryption and key custody and choose who holds the key:
   * **Responsable del Sistema (recommended):** they type a passphrase of 12+ characters. Only a public key is stored. **Keep the passphrase in a safe place.** Without it, cases cannot be read.
   * **Server key:** copy the `define( 'CANAL_INFORMANTE_KEY', '…' );` line into `wp-config.php`, or save the key in a file outside the web root and add `define( 'CANAL_INFORMANTE_KEY_FILE', '/path/canal-informante.key' );`. Anyone who controls the server could then decrypt the reports.
3. Go to Canal Informante › Settings. Check the organisation name, the alert email and the texts.
4. Add `[canal_informante]` to a page, exclude that page from any cache plugin, and link it from your website footer.

== Frequently Asked Questions ==

= Does this make my organisation compliant with Law 2/2023, Legislative Decree 24/2023 or Law 93/2021? =

No. Installing software does not make any organisation compliant, and Canal Informante does not certify or guarantee compliance. It offers technical features (encryption, anonymous reports, follow-up, configurable deadlines, a register and deletion). Whether they are adequate for your case, and every organisational step (board decision, appointing the person who manages the channel, the internal procedure, an oral channel where required, the privacy notice and data protection documentation, consulting workers' representatives), are for your organisation to decide with its legal advisers.

= Where are the reports stored? Do you see them? =

They are stored only in your WordPress database and uploads folder, encrypted. We never receive them, and the plugin makes no external calls.

= Can the WordPress administrator, the hosting company or our web agency read the reports? =

With a server key, yes: anyone who controls the server or `wp-config.php` could decrypt them. Whistleblowing laws limit access to reports (for example art. 32 of Law 2/2023), so we recommend **Responsable-held key** mode. In that mode the server stores only a public key. Each case has its own key, which can be opened only with the Responsable's passphrase or with the reporter's code and password. A database dump, a backup or an administrator browsing the site reveals nothing. Be aware that no web software can protect against an administrator who maliciously changes the code to capture the passphrase at the next unlock. Keep administrator accounts to a minimum, and check the access log of each case.

= Can I switch to the Responsable-held key later? =

Yes. Cases received from then on use the Responsable key. Older cases stay readable with the server key until they are deleted, and after that you can remove the server key. To get the full benefit, set it up before you publish the channel.

= What if I lose the encryption key or the passphrase? =

The cases cannot be decrypted, by you, by us or by anyone else. Store it in a password manager or a sealed envelope held by the board. If the Responsable changes, they change the passphrase (Settings › Encryption and key custody) and the cases are re-wrapped. If you move the site with a server key, copy the `wp-config.php` line or the key file too.

= How does an anonymous reporter receive my answer? =

They come back to the channel page and enter their tracking code and password. They see your messages and can reply. No email is needed.

= Who can see the cases? =

Only administrators and users with the "Whistleblowing system manager" role. With Pro, case instructors see only the cases assigned to them, after declaring that they have no conflict of interest.

= Are IP addresses logged? =

No. The plugin stores no IP address. To stop abuse, it keeps a one-hour counter under a keyed hash that cannot be reversed. Check that your hosting or security plugins do not log the channel page either.

= How long is data kept? =

It depends on the country profile and on your settings. Spain defaults: communications closed as not admitted are deleted 3 months after receipt, other closed cases 3 months after closure, register entries (without content) after 10 years. Italy and Portugal defaults: content 60 months after closure, register entries 5 years after receipt. Your organisation must decide the right periods with its advisers.

= Can I use it for several companies? =

The free plugin handles one organisation. Pro adds several entities in one channel, which is useful for groups and for advisers who manage clients.

= Does it need the sodium PHP extension? =

No. WordPress ships a compatible library, so it works on any host. The native extension is used when it is available, and in Responsable-key mode it enables Argon2id. Without it, PBKDF2-SHA256 with 600,000 iterations is used.

== Screenshots ==

1. Reporting portal: anonymous by default, with a category, a description and evidence.
2. After sending: tracking code and password, shown only once.
3. The reporter follows the case and exchanges messages without giving an email.
4. Cases list with the configured deadlines and their status.
5. Case view: decrypted report, message thread, actions and access log.
6. Register (libro-registro) with CSV export and no case content.
7. Encryption and key custody: the Responsable del Sistema can hold the key, so admins, the hosting company and agencies cannot read reports.

== Changelog ==

= 1.1.0 =
* Country profiles: Spain (Law 2/2023), Italy (Legislative Decree 24/2023) and Portugal (Law 93/2021), with configurable acknowledgement, reply and extension deadlines, register retention and default texts.
* Portugal: the reply deadline counts from receipt and the acknowledgement includes the information on external channels.
* Spain: the reply deadline now counts from receipt (art. 9.2.d of Law 2/2023), which is the earlier date; open cases may show an earlier due date after the update.
* The channel page shows the deadlines computed from your settings. Default texts reworded to avoid any statement of compliance.
* Legal notice and technical limitations on every admin screen.
* Italian (it_IT) and European Portuguese (pt_PT) translations.

= 1.0.1 =
* Readme: the company name now reads "RGC GLOBAL NET SERVICES SLU". No functional changes.

= 1.0.0 =
* First release.
* Key custody: the Responsable del Sistema can hold the key (passphrase-derived key pair, per-case keys). A server key can live in a file outside the web root.

== Upgrade Notice ==

= 1.1.0 =
Adds Italy and Portugal profiles and translations. Existing sites keep the Spanish profile; the Spanish reply deadline now counts from receipt.

= 1.0.1 =
Readme-only correction (company name). No functional changes.

= 1.0.0 =
First release.

== Legal ==

Canal Informante is developed by Pinzell, a product line of RGC GLOBAL NET SERVICES SLU (Spain). It is not affiliated with the Autoridad Independiente de Protección del Informante.
