<@U04S8PLJWMT> It's normal recieve this messagem A...
# ask-ai
k
@kapa.ai It's normal recieve this messagem A container has mounted a host directory. from guard duty when im using airbyte imn EC2
k
Yes, it is normal to receive a message like "A container has mounted a host directory" from AWS GuardDuty when running Airbyte on EC2. Airbyte uses Docker containers, and for certain features—such as local CSV or JSON destinations—it mounts host directories (e.g.,
/tmp/airbyte_local
) into containers to store or access data files. This is a standard part of Airbyte's operation and is documented in the official guides, which explain that the
/local/
directory in the container is mapped to a directory on the host machine (by default,
/tmp/airbyte_local
) for file-based destinations and log access [CSV or JSON local Destinations: Check local data folder](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#csv-or-json-local-destinations-check-local-data-folder). GuardDuty flags this as a potential risk because mounting host directories into containers can be a security concern in some contexts, but for Airbyte, this is expected behavior. However, you should always ensure that only trusted users have access to your EC2 instance and Docker environment, and that you follow best practices for securing your deployment.
k
@kapa.ai I use VPN and SSH keys as security methods in my airbyte in EC2, may I do something else ?
k
A message from kapa.ai
You're already following good security practices by using a VPN and SSH keys to restrict access to your Airbyte deployment on EC2. According to Airbyte's documentation, here are additional steps you can take to further secure your Airbyte instance: - Network Security: - Deploy Airbyte in a private network or use a firewall/security group to filter which IP addresses can access your host. - Consider deploying Airbyte behind a reverse proxy (like nginx) to handle SSL encryption and access control. This allows you to enforce HTTPS and add another layer of authentication if needed. - Authentication: - Airbyte generates a secure password by default during deployment. You can change this password as needed. For more details, see the [authentication instructions](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication). - Credential Management: - Protect the Airbyte configuration management routes, as these can be sensitive. - If you use cloud services, consider using a secret manager (like AWS Secrets Manager) for storing sensitive credentials instead of keeping them in the Airbyte database. - Encryption: - Ensure connectors are configured to use encryption-in-transit (SSL/HTTPS) whenever possible. - Logging: - Avoid setting the server log level to
DEBUG
in production, as this may expose sensitive information in logs. Use
INFO
level instead. - Session Management: - If you run Airbyte over HTTP (not recommended), set secure cookies to false, but be aware of the risks. Prefer HTTPS for all access. Airbyte Open Source does not provide built-in user management or RBAC, so controlling access at the network and infrastructure level is essential [Securing Airbyte Open Source](https://docs.airbyte.com/platform/operating-airbyte/security#securing-airbyte-open-source). By combining VPN, SSH keys, strict network rules, and the above recommendations, you can significantly improve the security of your Airbyte deployment on EC2.