The ClinIQ — Clinical Q&A AI Assistant blueprint does not include production-grade security controls.
This repository is not secure by default and must not be used in production without a comprehensive security review.
- API keys:
LLM_API_KEYis loaded from.env. Never commit.envto version control. - CORS: CORS is configured to allow all origins by default (
*). Restrict to specific origins in any non-local deployment. - SSL verification:
VERIFY_SSL=falsedisables certificate validation. Only use this in controlled development environments. - Clinical data privacy: Clinical documents and queries are sent to the configured inference endpoint. Do not use third-party cloud APIs with protected health information (PHI) or personally identifiable information (PII) without proper safeguards.
- HIPAA compliance: This application is NOT HIPAA-compliant by default.
Implementing HIPAA compliance requires:
- Business Associate Agreements (BAA) with service providers
- Encryption at rest and in transit
- Access controls and audit logging
- Data retention and disposal policies
- Uploaded documents: Files are stored locally in the
uploads/directory. Implement proper access controls and encryption for sensitive data. - Vector database: ChromaDB stores document embeddings locally. Ensure proper permissions and consider encryption for sensitive deployments.
Users are responsible for implementing appropriate:
- Authentication and authorization mechanisms
- Encryption and secure data storage
- Network-level access controls and firewall rules
- Monitoring, logging, and auditing
- Regulatory and compliance safeguards relevant to their deployment environment (HIPAA, GDPR, etc.)
- Data anonymization and de-identification for clinical data
- Secure API key management and rotation policies
If you discover a security vulnerability in this blueprint, please report it privately to the Cloud2 Labs maintainers rather than opening a public issue.