← Blog

Security and permissions for customer-built features

Letting customers build their own features raises a fair question: what stops a feature from doing something it shouldn't? The answer is the same rule your app already follows. A feature can only do what the user could already do, through the actions you chose to offer. Customer-built features are safe when they can only use what you chose to offer, and your backend still checks every call.

What is the basic rule?

A feature is not a new user with new powers. It acts for the person using it, with their permissions. If someone cannot delete a task in your app, a feature they build cannot delete it either.

How do you control what a feature can reach?

You decide, up front, what is available. With Rough, features appear on a Surface, and each Surface has a list of capabilities you write. A capability is one specific operation, such as "read the list of projects" or "mark a task complete". Nothing else is reachable.

If you offer a capability that reads tasks, a feature can show tasks. That does not also let it delete them. You would have to offer a separate capability for that.

Does my backend still need to check permissions?

Yes, on every call, including reads. The code behind each capability runs in your app, with your existing session and backend. Rough passes the request along, and your app decides whether to allow it, just as it would for a click in your own interface. Hiding a button is not a permission check, and neither is a schema.

How is a feature kept apart from the rest of my app?

Each Rough Feature runs in an iframe served from a different origin to your app. The browser keeps them separate, so a feature cannot read your app's cookies or browser storage, or change the rest of your page. It talks to your app only through the capabilities on its Surface.

What about accounts and data boundaries?

Users sign in through your app. Your server checks their session and signs a short-lived token, so the user and account come from your authentication, not from the browser. Your integration decides who shares features, for example everyone in one customer account.

Only return the fields a feature needs and the user is allowed to see. A customer list does not need billing details because they sit in the same database row.

Where should you start?

With read-only capabilities on one Surface. Add write actions once you know which ones customers need, and review each one as you would a new API endpoint. Jacob explains why giving an AI your whole API is the wrong model in Trust and Guardrails.

Frequently asked questions

Does Rough see our customer data?

When you define a Surface, Rough receives the capability descriptions, schemas and sample data. Builder previews use that sample data, not your live data. Once a feature is running in your app, it receives the data your capabilities return. The security page has the details.

Are prompts used to train AI models?

Rough uses third-party AI providers to build features. Our privacy policy says we do not permit them to use your data to train their models.

Where can a security reviewer find more?

Start with How Rough works and Security at Rough, then the full security docs. For assessments or compliance questions, get in touch.

Customer-built features are safe when they can only use what you chose to offer, and your backend still checks every call.