Security and data protection
How Hostayle encrypts personal documents and secrets, isolates every residence, and aligns with Indian cybersecurity and state public-safety frameworks.
Security is built into Hostayle's architecture from the ground up. Every technical safeguard listed on this page reflects active controls implemented in Hostayle's codebase — no exaggerated claims, and zero monetization of user data.
1. Encryption in Transit & At Rest
| Layer / Asset | Technical protection implemented in Hostayle |
|---|---|
| Data in Transit | Enforced HTTPS / TLS with production Strict-Transport-Security (max-age=31536000; includeSubDomains; preload) so traffic between your Android, iPhone, or desktop browser and Hostayle cannot be downgraded. |
| Resident KYC, ID Numbers & Addresses | All uploaded ID proofs, resident ID proof numbers, permanent residential addresses, and visitor ID proof references are encrypted at rest using AES-256-CBC inside the application database (never stored as unencrypted files in public web folders). Every uploaded KYC file is also sealed with a SHA-256 cryptographic hash that is re-verified on every download; if any mismatch is detected, the download is blocked and a document_tamper_detected alert is written to the audit log. Downloads are served with Cache-Control: private, no-store and X-Content-Type-Options: nosniff. |
| Payment Proofs & Knowledge Files | Subscription payment proofs and property rules/knowledge documents are encrypted at rest using AES-256-CBC in database storage. |
| Gateway & Messaging Secrets | Owner and platform Razorpay key secrets, webhook signing secrets, and WhatsApp Cloud API tokens/app secrets are encrypted with AES-256-CBC before storage and are never returned to the browser in plaintext. |
| Passwords & Access Tokens | Passwords are one-way hashed using bcrypt (12 rounds). API tokens and 7-day expiring bed registration link tokens are stored exclusively as one-way SHA-256 hashes. |
| Web Sessions & Cookies | Session payloads are encrypted (SESSION_ENCRYPT=true) in database storage with Secure, HttpOnly, and SameSite=Lax cookie flags and a 60-minute inactivity timeout. |
2. Multi-Tenant Isolation & Role-Based Access Control (RBAC)
- Strict organization boundaries: Every property, room, bed, resident, invoice, payment, document, complaint, and visitor record is scoped to its
organization_id. One hostel or PG operator can never view or modify another organization's records. - Least-privilege staff roles: Separate roles (Organization Owner, Property Manager, Front Desk / Receptionist, Finance/Staff, Resident) are enforced server-side on every web and API route. Staff only access properties assigned to them.
- Resident self-isolation: Residents can only view their own stay, invoices, requests, notifications, and their own uploaded KYC documents.
3. Web & Application Hardening (OWASP Controls)
- Security response headers: Enforced
Content-Security-Policy,X-Content-Type-Options: nosniff,X-Frame-Options: SAMEORIGIN,Referrer-Policy: strict-origin-when-cross-origin, andPermissions-Policy: camera=(), microphone=(), geolocation=(). - CSRF & file-upload defenses: Cryptographic CSRF token verification on all web state-changing requests, strict MIME-type and extension allowlisting (JPG, PNG, WebP, PDF up to 10 MB), and sanitized attachment filenames to prevent path traversal or header injection.
- Brute-force & abuse rate limiting: Per-route rate limits on login, password reset OTPs, bed registration OTPs, UPI/payment requests, and API endpoints.
4. Payment & Financial Ledger Integrity
- Zero storage of UPI PINs or card secrets: Direct UPI opens the resident's own UPI app (Google Pay, PhonePe, Paytm, BHIM, or any installed UPI app); Hostayle only records the resident's 12-digit UPI reference (UTR) for owner confirmation.
- Cryptographically verified online gateways: Razorpay checkout callbacks and webhooks are verified using constant-time HMAC-SHA256 signature checks with database row locking and idempotency guards against replay or double-recording.
- Append-only financial ledger: Every charge, payment, deposit movement, and refund creates an immutable credit/debit ledger entry.
5. Alignment With Indian Government, Telangana & Andhra Pradesh Security Rules
- DPDP Act, 2023 & DPDP Rules, 2025 (Reasonable Security Safeguards): Implements encryption at rest and in transit, access controls, tamper checks, audit logging, and breach notification procedures to the Data Protection Board of India and affected users.
- IT Act, 2000 & CERT-In Directions (28 April 2022): Maintains audit and security logs with synchronized timestamps (
Asia/Kolkata), supports rolling 180-day+ log retention, and follows a 6-hour incident reporting workflow for covered cybersecurity incidents. - Aadhaar Act, 2016 / UIDAI Data Minimization: Hostayle does not perform Aadhaar biometric authentication or operate an unencrypted Aadhaar repository, and advises uploading Masked Aadhaar or alternative official photo IDs.
- Telangana & Andhra Pradesh Public Safety & Police Verification (Shared Responsibility): Hostayle secures digital resident, KYC, and visitor registers inside encrypted, role-controlled software. Physical premises obligations under the Telangana Public Safety (Measures) Enforcement Act, 2013 & Rules, 2014 and the Andhra Pradesh Public Safety (Measures) Enforcement Act, 2013 (Act No. 6 of 2013) & Rules — including CCTV camera installation, 30-day CCTV footage retention, periodic Form-15 police returns, and tenant verification submissions under BNSS Section 163 — are fulfilled physically by the respective PG or hostel operator.
6. Immutable Audit Trail
Security-sensitive events — including user logins and logouts, authorization denials, document uploads/downloads/verifications, tamper alerts, bed allocations, rent/payment updates, gateway setting changes, and account deletions — are recorded in the audit log with actor identity, timestamp, and context.
7. Reporting a Security Issue
If you discover a vulnerability or suspect unauthorized access to a Hostayle account, email hostayle@hennt.in immediately with subject line "Security Report" and reproduction details. We investigate all good-faith reports promptly and take immediate containment action where required. Also read our Privacy Policy and Terms of Service.