Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Ce guide vous explique comment désactiver l'autorisation binaire pour Cloud Run.
Avant de commencer
Dans ce guide, nous partons du principe que vous avez activé l'autorisation binaire.
Désactiver l'autorisation binaire sur un service
Si vous n'avez pas de règle d'administration nécessitant l'utilisation de l'autorisation binaire, vous pouvez désactiver cette dernière en procédant comme suit :
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis guide outlines the process for disabling Binary Authorization specifically for Cloud Run services.\u003c/p\u003e\n"],["\u003cp\u003eBinary Authorization can be disabled on a per-service basis through the Cloud Run console's "Details" tab by clicking "Disable".\u003c/p\u003e\n"],["\u003cp\u003eYou can also disable Binary Authorization for a specific service using the gcloud command: \u003ccode\u003egcloud run services update SERVICE_NAME --clear-binary-authorization\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo globally disable Binary Authorization, you need to revert the Binary Authorization organization policy.\u003c/p\u003e\n"]]],[],null,["# Disable Binary Authorization (Cloud Run)\n\nThis guide shows you how to disable Binary Authorization for\nCloud Run.\n\nBefore you begin\n----------------\n\nThis guide assumes you have enabled Binary Authorization.\n\nDisable Binary Authorization on a service\n-----------------------------------------\n\nIf you do not have an organization policy that requires you to use\nBinary Authorization, you can disable it by doing the following: \n\n### Console\n\n1. Go to the Cloud Run page:\n\n [Go to Cloud Run](https://console.cloud.google.com/run)\n2. Click the name of the service.\n\n3. Click the **Details** tab.\n\n4. To disable Binary Authorization enforcement on the service, click\n **Disable**.\n\n### gcloud\n\n```\ngcloud run services update SERVICE_NAME --clear-binary-authorization\n```\n\nReplace \u003cvar translate=\"no\"\u003eSERVICE_NAME\u003c/var\u003e with the name of your service.\n\nDisable the organization policy\n-------------------------------\n\nYou disable the organization policy by reverting it. To do this, see\n[Reverting the Binary Authorization organization policy](/binary-authorization/docs/run/requiring-binauthz-cloud-run#revert_the_policy).\n\nWhat's next\n-----------\n\n- [Enable Binary Authorization for Cloud Run](/binary-authorization/docs/run/enabling-binauthz-cloud-run)"]]