Feature × Audience

How do developers implement RBAC with Plugsky's architecture?

RBAC for developers starts with key hygiene: one scoped key per service and environment, held in a secret manager, rotated on a schedule and grouped by key ID in usage reports. Plugsky adds per-key rate limits and quotas, workspace and resource-level permissions, SAML/OIDC SSO and SCIM on Enterprise, and audit logs that show which key made which request.

Key facts

Single sign-onSAML 2.0 / OIDC SSO on Enterprise
ProvisioningSCIM user provisioning and deprovisioning on Enterprise
Permission modelRBAC with workspace, role and resource-level permissions
API keysScoped keys per project, environment or tenant; per-key rate limits and quotas
Audit logsRequest and admin events export to SIEM (Splunk, Sentinel, QRadar, Datadog)
Key custodyBYOK via AWS KMS, Azure Key Vault, HashiCorp Vault or an on-prem HSM
ComplianceSOC 2 Type II under NDA, ISO 27001/27017/27018, HIPAA with a BAA; FedRAMP Moderate in process
DeploymentHosted, VPC, on-prem and air-gapped with the same API

TL;DR

  • One scoped key per service and environment, never a shared production key.
  • Store keys in a secret manager and inject them at runtime.
  • Per-key quotas contain runaway usage from a single service.
  • Human access belongs to SSO; machine access belongs to keys.
  • Rotate on a schedule and group usage by key ID for traceability.

How it works, step by step

  1. Inventory every place an API key is currently stored or hard-coded.
  2. Create a scoped key per service and environment and record an owner for each.
  3. Move keys into your secret manager and remove them from code and CI variables.
  4. Set per-key rate limits and quotas that match each service budget.
  5. Enable audit logging and group usage by key ID in the dashboard.
  6. Automate rotation with an overlap window so deployments do not break.
  7. Federate human access through SSO and deprovision with SCIM.
1Inventory everyplace an API key iscurrently stored or2Create a scoped keyper service andenvironment and3Move keys into yoursecret manager andremove them from4Set per-key ratelimits and quotasthat match each5Enable auditlogging and groupusage by key ID in6Automate rotationwith an overlapwindow so

Try it yourself

Open the AI API key security checklist →

Why developers need an access model

The shared-key anti-pattern is everywhere: one production key pasted into a CI variable, a staging deployment and a local .env file. When it leaks, you cannot tell whether the traffic came from your app, a notebook or an attacker, and revoking it breaks everything at once. The fix is boring and effective — split the key.

Issue a scoped key per service and environment, store it in your secret manager, inject it at runtime, and never let it near prompts, logs or client-side code. Group dashboards by key ID and usage spikes become traceable instead of mysterious.

The four layers: identity, permission, keys, evidence

Start with identity, then constrain what each identity can do. Federation uses SAML 2.0 or OIDC on Enterprise; SCIM provisions and removes users automatically. Authorisation is RBAC with workspace, role and resource-level permissions, and machine access is separated into scoped API keys per project, environment or tenant with their own rate limits and quotas. Everything is observable: request and administrative events export to Splunk, Sentinel, QRadar or Datadog, and retention runs up to 7 years. For developers, the practical win is blast-radius control: when one key leaks, only one service and one environment are affected, and rotation is routine.

Controls developers should configure first

Then layer the platform controls. Per-key rate limits and quotas stop one service from consuming the budget; workspace and resource-level permissions separate prototypes from production; people authenticate through SAML or OIDC SSO rather than sharing keys. SCIM removes access automatically when someone leaves, which is the easiest compliance win you will ever ship.

For secrets themselves, keep rotation on a calendar you can automate. Old keys stay valid briefly while deployments roll, then are revoked, so rotation does not become an outage. If your threat model requires it, BYOK through your own KMS keeps encryption keys under your control even in a hosted deployment.

A practical rollout order

Adopt in this order: inventory keys, split by service and environment, move secrets into a manager, add quotas per key, enable audit export, then federate humans with SSO. Prototype on the free plan, which includes 2 API keys, and move to a paid self-serve plan when you outgrow fair-use limits. See the live pricing page for current plans.

Honest comparison

ControlPlugskyShared API keys onlyBuilding in-house
Single sign-onSAML 2.0 / OIDC on EnterpriseNot availableYou integrate the IdP
DeprovisioningSCIM on EnterpriseManual key deletionCustom lifecycle jobs
Permission granularityWorkspace, role and resource-levelOne key for everythingYou build the model
Key scopingPer project, environment or tenant, with quotasShared key, no attributionCustom key service
Audit evidenceRequest and admin events with SIEM exportLimited request logsYou build the pipeline
Key custodyBYOK via KMS or on-prem HSMProvider-managed keysYou operate the HSMs

Frequently asked questions

Should CI use the same key as production?

No. Use a separate scoped key for CI with tight quotas, and never let pipeline keys touch production data or prompts. Separate keys make revocation surgical.

How do we rotate keys without downtime?

Create the new key, deploy it everywhere, verify traffic on the new key ID, then revoke the old one. An overlap window makes rotation routine instead of risky.

Do we need the OpenAI SDK to change?

No. Authentication and access control sit alongside the same OpenAI-compatible API, so application code keeps working when keys or roles change.

Is there a free plan?

Yes — plugsky-micro and plugsky-lite with 2 API keys and no credit card. A 14-day full-access trial is also available.

How is pricing structured?

Self-serve plans are flat monthly with unlimited fair-use usage and no per-token charges or overage fees. See the live pricing page for current plans.

Can we keep our own identity provider?

Yes on Enterprise: SAML 2.0 / OIDC SSO and SCIM provisioning work with standard identity providers, and RBAC maps your roles to workspace and resource permissions.