# Transformation Test Permission


> Control who can run transformation tests, and understand why publishing a transformation or a connected library now requires the Test permission.



We've made some important changes to permissions pertaining to transformations and libraries:

- Publishing a transformation now requires **Edit** and **Test** permissions on that transformation. 
- Publishing a library requires **Edit** on the library and **Test** on every transformation connected to it, because publishing runs their impact tests. 

Now, you cannot publish a transformation or a library without the required **Test** permission — this permission controls who can run transformation tests; it also matters for anyone responsible for publishing changes. 

See [Resource permissions](https://www.rudderstack.com/docs/access-management/policies-overview/index.md) for the full permission scope.

**Warning:** Test runs can surface credential and secret values used by a transformation. Test logs are only visible to users with **Test** permission on that transformation. Grant this permission deliberately, and avoid logging secrets or embedding them in event payloads.

## Why we made this change

Editing transformation code and running it against test data are separate actions. Running a test can surface credential values in logs if the transformation logs them. Separating the **Test** permission from **Edit** lets workspace administrators decide who can run tests, while keeping the existing edit, create, and delete behaviors intact. Test logs are only visible to users with **Test** permission on the transformation, but other transformation logs and live events remain visible to workspace users, so do not log secrets.

Teams that previously granted **Edit** permission to someone responsible for publishing should review that member's access before their next release. Granting **Test** is not merely a way to unblock publishing — it also grants the ability to run tests and potentially inspect secrets in the output. 

**Info:** Members who only need to change transformation code can retain **Edit** without receiving **Test**, but they cannot publish those changes themselves.

## Key features

- **Dedicated transformation testing access**: A fourth resource permission column allows administrators to grant **Test** permission on transformations. Libraries do not have this permission.
- **Publish with Edit and Test**: Publishing a transformation requires both permissions on it. Publishing a library requires **Edit** on the library and **Test** on every connected transformation. **Edit** by itself does not allow publishing when the library has connected transformations.
- **Credential exposure in logs**: Test runs can surface secrets or credential values used by the transformation. Review access to **Test** permission even if members do not have permission to manage the credential store, and avoid logging secrets in transformations.
- **Existing editing behavior preserved**: The **Edit** permission still controls configuration changes — the **Test** permission does not replace **Edit**, and the existing **Create & Delete** permission is unchanged.

## Get started

1. Identify members who publish transformations or libraries, including those who have **Edit** on the resource they publish.
2. Review whether each member should be able to run tests and potentially see stored credentials in test logs.
3. In Access Management, confirm **Edit** on the resource each member publishes, and grant **Test** on the appropriate transformations. For library publishers, cover every connected transformation.
4. If you run `rudder-cli transformations test` locally or in CI, add the **Test** permission to the Service Access Token it uses.
5. Run a [transformation test](https://www.rudderstack.com/docs/transformations/test/index.md), then [publish a new version](https://www.rudderstack.com/docs/transformations/version-deploy/index.md) with a member who has the required permissions.

For the full publishing procedure and version behavior, see [Version and Deploy Transformations](https://www.rudderstack.com/docs/transformations/version-deploy/index.md).

## Resources

- [Access Management Policies Overview](https://www.rudderstack.com/docs/access-management/policies-overview/index.md): Resource permissions and their dependencies
- [Test Transformations](https://www.rudderstack.com/docs/transformations/test/index.md): Run test cases and inspect their logs
- [Transformation Libraries](https://www.rudderstack.com/docs/transformations/libraries/index.md): Inferred tests and publishing library versions
- [Transformation Credentials](https://www.rudderstack.com/docs/transformations/credentials/index.md): How stored secrets can appear in transformation test logs

## Screenshots

- **Permissions for transformations and libraries in the dashboard**

![Permissions to manage transformations in RudderStack dashboard](/docs/images/access-management/transformations.webp)

![Permissions to manage transformation libraries in RudderStack dashboard](/docs/images/access-management/transformation-libraries.webp)
