Il est possible qu'une partie ou l'ensemble des informations de cette page ne s'appliquent pas au Cloud de confiance S3NS.
Agent de service Artifact Registry
L'agent de service Artifact Registry agit au nom d'Artifact Registry lors de l'interaction avec les services Trusted Cloud by S3NS .
Une fois que vous avez créé le premier dépôt Artifact Registry dans un projetTrusted Cloud , l'agent de service Artifact Registry est automatiquement créé. L'identifiant de l'agent de service est le suivant:
service-PROJECT-NUMBER@gcp-sa-artifactregistry.s3ns-system.iam.gserviceaccount.com
PROJECT-NUMBER correspond au numéro du projet du projetTrusted Cloud dans lequel Artifact Registry est en cours d'exécution.
Vous pouvez créer manuellement le compte de service dans un projet sans dépôts à l'aide de la commande suivante:
gcloud beta services identity create \
--service=artifactregistry.s3nsapis.fr \
--project=PROJECT-ID
Remplacez PROJECT-ID
par l' Trusted Cloud ID du projet.
L'agent de service Artifact Registry se voit attribuer le rôle d'agent de service Artifact Registry (roles/artifactregistry.serviceAgent
) pour les ressources du projet. Pour appliquer le principe de sécurité du moindre privilège, le rôle ne dispose que des autorisations minimales requises:
- Publier des sujets Pub/Sub:
pubsub.topics.publish
- Télécharger des artefacts à partir de dépôts Artifact Registry :
artifactregistry.repositories.downloadArtifacts
- Supprimer des artefacts:
artifactregistry.versions.delete
Étape suivante
Découvrez les rôles Artifact Registry et la configuration de l'accès aux dépôts.
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/08/18 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/08/18 (UTC)."],[[["\u003cp\u003eThe Artifact Registry Service Agent operates on behalf of Artifact Registry when interacting with other Google Cloud services.\u003c/p\u003e\n"],["\u003cp\u003eThis service agent is automatically generated upon the creation of the first Artifact Registry repository within a Google Cloud project.\u003c/p\u003e\n"],["\u003cp\u003eThe service agent's identifier is \u003ccode\u003eservice-PROJECT-NUMBER@gcp-sa-artifactregistry.iam.gserviceaccount.com\u003c/code\u003e, where PROJECT-NUMBER represents the project number.\u003c/p\u003e\n"],["\u003cp\u003eThe service agent is granted the Artifact Registry Service Agent role, which includes permissions for publishing Pub/Sub topics, downloading artifacts, and deleting artifacts.\u003c/p\u003e\n"],["\u003cp\u003eYou can manually create the service agent in projects without any repositories using the provided \u003ccode\u003egcloud\u003c/code\u003e command.\u003c/p\u003e\n"]]],[],null,["# Artifact Registry Service Agent\n\nThe Artifact Registry Service Agent acts on behalf of\nArtifact Registry when interacting with Google Cloud services.\n\nAfter you create the first Artifact Registry repository in a\nGoogle Cloud project, the Artifact Registry Service Agent\nis automatically created. The service agent identifier is:\n\n`service-`\u003cvar translate=\"no\"\u003ePROJECT-NUMBER\u003c/var\u003e`@gcp-sa-artifactregistry.iam.gserviceaccount.com`\n\n\u003cvar translate=\"no\"\u003ePROJECT-NUMBER\u003c/var\u003e is the [project number](/resource-manager/docs/creating-managing-projects#identifying_projects) of the\nGoogle Cloud project where Artifact Registry is running.\n\nYou can manually create the service account in a project without any\nrepositories with the command: \n\n gcloud beta services identity create \\\n --service=artifactregistry.googleapis.com \\\n --project=\u003cvar translate=\"no\"\u003ePROJECT-ID\u003c/var\u003e\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT-ID\u003c/var\u003e with the Google Cloud project ID.\n\nThe Artifact Registry Service Agent is granted the Artifact Registry\nService Agent role (`roles/artifactregistry.serviceAgent`) for resources in the\nproject. To enforce the security principle of least privilege, the role only\nhas the minimum required permissions:\n\n- Publish Pub/Sub topics: `pubsub.topics.publish`\n- Download artifacts from Artifact Registry repositories: `artifactregistry.repositories.downloadArtifacts`\n- Delete artifacts: `artifactregistry.versions.delete`\n\nWhat's next\n-----------\n\nLearn about\n[Artifact Registry roles and configuring access to repositories](/artifact-registry/docs/access-control)."]]