Making a container private
Written by
Updated at September 23, 2024
For a container to be invoked only by users with the permission to do so, make the container private.
Note
If all unauthorized users (the All users
public group) of a cloud or folder are granted the permission to invoke a container, the container will be public regardless of its settings. See how to revoke a role for more info.
CLI
To make a container private, run this command:
yc serverless container deny-unauthenticated-invoke <container_name>
Result:
done (1s)