# Security overview

To learn how Cloud Run implements security best practices to protect
your data and explore how to use these features to meet your security
requirements, see the [Cloud Run documentation](https://docs.cloud.google.com/run/docs/securing/security.md.txt).

To learn how to configure security for functions created with the
Cloud Functions v1 API for 1st gen functions with a `cloudfunctions.net`
URL endpoint, see
[Secure your Cloud Run function](https://docs.cloud.google.com/functions/1stgendocs/securing.md.txt).

For details on configuring security for functions created using the
[Cloud Functions V2 API](https://docs.cloud.google.com/functions/docs/apis.md.txt) (for example, using
`gcloud functions`, the REST API, or Terraform), see the following guides:

- [Roles](https://docs.cloud.google.com/functions/docs/concepts/iam.md.txt)
- [Function Identity](https://docs.cloud.google.com/functions/docs/securing/function-identity.md.txt)
- [Identity and Access Management (IAM)](https://docs.cloud.google.com/functions/docs/securing/managing-access-iam.md.txt)
- [Authenticate for invocation](https://docs.cloud.google.com/functions/docs/securing/authenticating.md.txt)
- [Protect your data with CMEK](https://docs.cloud.google.com/functions/docs/securing/cmek.md.txt)
- [Restrict new deployments by product version](https://docs.cloud.google.com/functions/docs/securing/gen-org-policy.md.txt)
- [Custom constraints](https://docs.cloud.google.com/functions/docs/securing/custom-constraints.md.txt)
- [Execution environment security](https://docs.cloud.google.com/functions/docs/securing/execution-environment-security.md.txt)