Policies
Security
Security here is a shared job. These are the measures in place on our side, the ones we ask of you, and the way to tell us if you find a weakness.
On our side#
Transport. The API and these pages are served only over HTTPS (TLS 1.2 or 1.3). Plain HTTP is redirected, and browsers are told to use HTTPS for 180 days, including subdomains.
Tokens.
- Each secret has 200 random bits, generated by a cryptographic random number generator.
- Only its SHA-256 hash is stored. A database leak would not reveal any working token, and nobody can read a secret back.
- Checks run in constant time, and an unknown token is indistinguishable from a wrong one.
- Each token has the narrowest permissions, senders and limits its job needs, and can expire.
- Blocking, rotation and deletion take effect on the next request.
Requests.
- Every request is validated strictly: unknown fields are refused, sizes are capped, and line breaks are removed from anything that becomes an email header.
- The public API holds no credentials for the mail system. Accepting a message and delivering it are separate services, so a fault in one does not expose the other.
Sending.
- Mail can only leave from sender addresses we approved, and that list is checked again just before each message is sent.
- Recipients who unsubscribed, bounced or complained are removed automatically.
- Daily allowances cap the damage a leaked token could do.
Administration.
- Our admin dashboard sits behind single sign-on and is restricted to named staff.
- Permissions are granted per role and per page.
- Every change to a token or a setting is recorded with the person who made it. See Access and permissions.
Monitoring.
- Faults are reported to us automatically.
- Request logs never contain token secrets: the platform replaces the
Authorizationheader with "REDACTED". - See Logging and monitoring.
These pages.
- No cookies, no analytics and no third-party scripts, fonts or images.
- A strict Content Security Policy allows only our own scripts and styles.
- The pages cannot be framed by other sites.
On your side#
- Keep tokens on your servers only, in a secret store, never in code repositories, browsers or apps.
- Use one token per application and environment, with only the permissions it needs.
- Escape user-supplied content before putting it in HTML.
- Never put passwords, full card numbers or sensitive data in an email.
- Watch your own usage (
GET /v1/me) and alert on unusual volumes or failures. - Tell us immediately at team@madagascarhotelags.com if a token may be exposed. We can block or rotate it in seconds.
Reporting a vulnerability#
If you believe you found a security weakness in the API, these pages or the hotel's systems, write to team@madagascarhotelags.com with "Security" in the subject. Our contact details are also published at /.well-known/security.txt.
Please include what you found, where, how to reproduce it and what an attacker could do with it. We aim to acknowledge reports within 3 business days and to keep you informed until the issue is resolved.
We will not pursue or report anyone who, in good faith:
- tests only against tokens and data that are their own;
- does not degrade the service (no denial-of-service or load tests, no automated scanning at volume);
- does not send email to anyone but themselves, and does not access, change or keep other people's data;
- does not use social engineering or physical attacks;
- gives us reasonable time to fix the issue before telling anyone else.
We do not run a paid bug bounty, but we are glad to credit you.
Last reviewed 2026-10-01.