Snowflake App Runtime privileges¶
Snowflake App Runtime introduces privileges on two new schema-level objects: the artifact repository and the Application Service. This topic summarizes the privileges and typical grant patterns.
Artifact repository privileges¶
| Privilege | Effect |
|---|---|
| USAGE | Resolve the repository name. |
| READ | Read package and version metadata. Required to reference the repository from CREATE APPLICATION SERVICE and from ALTER APPLICATION SERVICE ... UPGRADE. |
| WRITE | Produce new package versions. Required by build workflows driven by snow app deploy. |
| OWNERSHIP | Full control. Required for ALTER and DROP on the repository. |
Application Service privileges¶
| Privilege | Effect |
|---|---|
| USAGE | Access public endpoints exposed by the service. |
| MONITOR | View runtime status and read container logs with SYSTEM$GET_APPLICATION_SERVICE_LOGS. |
| OPERATE | ALTER APPLICATION SERVICE (SUSPEND, RESUME, UPGRADE, SET, UNSET). |
| OWNERSHIP | DROP the service. The owning role also implicitly has every other privilege on the service. |
Privileges required to create an Application Service¶
The role that runs CREATE APPLICATION SERVICE needs, at minimum:
CREATE APPLICATION SERVICEon the target schema.READon the artifact repository.USAGEon the compute pool, if you specifyIN COMPUTE POOL.USAGEon each external access integration listed.USAGEon the query warehouse, if you setQUERY_WAREHOUSE.
For full syntax and access control details, see CREATE APPLICATION SERVICE.
Privileges required to deploy with the CLI¶
To deploy an app end-to-end with snow app deploy, the deploying role
needs all of the following:
USAGEon the target database and schema.CREATE APPLICATION SERVICEon the target schema.CREATE STAGEon the target schema (for the per-app code stage).USAGEon the query warehouse.USAGEon the build and service compute pools.USAGEon the external access integration used during builds.READandWRITEon the image repository (for pushing and pulling built images).READandWRITEon the artifact repository (created automatically if it doesn’t exist, but the role needs these privileges to produce and reference packages).
Example grant statements:
Your account administrator typically configures these grants as part of the
Snowflake App Runtime infrastructure setup in Snowsight (/settings/account/apps).