Stay organized with collectionsSave and categorize content based on your preferences.
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 theCloud Run documentation.
To learn how to configure security for functions created with the
Cloud Functions v1 API for 1st gen functions with acloudfunctions.netURL endpoint, seeSecure your Cloud Run function.
For details on configuring security for functions created using theCloud Functions V2 API(for example, usinggcloud functions, the REST API, or Terraform), see the following guides:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Security overview\n=================\n\nTo learn how Cloud Run implements security best practices to protect\nyour data and explore how to use these features to meet your security\nrequirements, see the [Cloud Run documentation](/run/docs/securing/security).\n\nTo learn how to configure security for functions created with the\nCloud Functions v1 API for 1st gen functions with a `cloudfunctions.net`\nURL endpoint, see\n[Secure your Cloud Run function](/functions/1stgendocs/securing).\n\nFor details on configuring security for functions created using the\n[Cloud Functions V2 API](/functions/docs/apis) (for example, using\n`gcloud functions`, the REST API, or Terraform), see the following guides:\n\n- [Roles](/functions/docs/concepts/iam)\n- [Function Identity](/functions/docs/securing/function-identity)\n- [Identity and Access Management (IAM)](/functions/docs/securing/managing-access-iam)\n- [Authenticate for invocation](/functions/docs/securing/authenticating)\n- [Protect your data with CMEK](/functions/docs/securing/cmek)\n- [Restrict new deployments by product version](/functions/docs/securing/gen-org-policy)\n- [Custom constraints](/functions/docs/securing/custom-constraints)\n- [Execution environment security](/functions/docs/securing/execution-environment-security)"]]