Skip to main content

Updates

Follow new updates and improvements to Spacelift.

Create personal API keys that carry your identity!

Shared org API keys don’t really tell your auditors who did what, and they keep working after the person who created them leaves. Personal API keys solve both problems. Each key belongs to one user, gets exactly that user’s access, and stops working when the user is deactivated or removed.

How it works

Create keys from Personal settings > Personal API keys, or with the personalApiKeyCreate GraphQL mutation. Each user can have up to 100 keys, so you can give spacectl, the Terraform module and provider registries, and your GraphQL scripts their own keys. Every key needs an expiry: three months by default, 180 days maximum. For spacectl, set SPACELIFT_API_KEY_ID and SPACELIFT_API_KEY_SECRET.

A personal key has no roles of its own. When it’s exchanged for a token, Spacelift applies the owner’s current role assignments and IdP group roles. Role changes take effect immediately, and group changes take effect at the owner’s next login. A personal key can’t create API keys, change role bindings, or sign in to the web UI. Audit trail entries show the key as the actor with the owner’s username next to it.

You can rename a key, reset its secret, or delete it. Reset and delete take effect immediately, including for tokens already in use. Expired and revoked keys can only be deleted.

Revocation

A revoked key stops working and can’t be restored. Keys are revoked when a root admin revokes them, when the owner is deactivated or removed, or when the account switches to Login Policies. A root admin who turns the feature off can choose to deactivate all existing keys.

Root admins see every active personal key under Organization settings > API keys > Personal, and each user’s keys under Organization settings > Users. They can revoke any key, but they can’t assign it roles, change its owner, or use it.

Requirements

  • The account uses Identity Access Management. Accounts on Login Policies can’t create personal keys.

  • A root admin turns on Personal API keys under Organization settings > API keys > Settings. It’s off by default, and users can request it from Personal settings.

  • The user creating a key has at least one role.

  • Personal keys are secret keys only. OIDC isn’t supported.

Org API keys will continue to work exactly as they do today. Keep using them for CI, bots, and anything that has to keep running after a person leaves. As always, take it for a spin, and let us know what you think!

Read the docs →

Run Observability now available for OpenTofu Native Stacks!

Every run on an OpenTofu native stack now has an Observability tab that shows why the run was slow or failed, and what to fix. Spacelift Run Observability reads the OpenTelemetry spans OpenTofu emits during init, plan, and apply. The Spacelift worker assembles those spans into a single trace per run, and Spacelift evaluates that trace against a set of rules and the stack’s run history to produce findings.

What’s on the Observability tab

  • Get findings with a fix: natural language explanations for slow or failed runs, generated from rules, with a suggested fix for each.

  • Break down every run by phase: time spent in init, plan, and apply, with outliers called out.

  • Spot the slowest resources: the resources that took the most time in each phase, listed by address.

  • Catch slow provider installs: download and install time per provider, with a finding that points private worker users to a provider plugin cache.

  • Jump to the real error: the failing phase and the error message pulled from the trace, so you don’t need a TF_LOG=DEBUG re-run.

  • Track runs against your baseline: every run compared against the stack’s typical run time, so regressions stand out.

Setup

There’s nothing to configure. The worker collects spans automatically, so you don’t need to run an OpenTelemetry collector or an observability backend.

Availability

Run Observability is generally available on OpenTofu native stacks. Terraform stacks don’t get findings, because Terraform doesn’t expose provider install or per-resource timing. If you run Terraform stacks on OpenTofu, migrate them to OpenTofu native stacks to get every finding.

Read the blog and join the OpenTofu Observability webinar on November 19 for a live walkthrough.

Write, test, and explain policies with a smarter Infrastructure Assistant!

You need a guardrail, and Rego stands between you and the governance you need. So you ask an AI to write it. The policy looks right, but it references an input field that doesn't exist and mixes v0 and v1 syntax. You paste it in, hit a compile error, copy the error back into the chat, and go around again. Meanwhile, the guardrail you needed still isn't enforcing anything.

Infrastructure Assistant now runs that loop itself, so you only see the policy once it works.

Get policies tested before they reach you

The Assistant has two new read-only tools. One fetches the input schema for any policy type from the policy contract Spacelift maintains, so drafts use fields that exist (input.spacelift.run, input.terraform.resource_changes, input.reviews). The other evaluates a draft against a sample input and returns the compile errors or the decision. The Assistant drafts, evaluates, and fixes until the body compiles and returns the expected decision.

Go from plain English to a saved policy

Policies > Create policy > Create with Infrastructure Assistant opens Build mode with a starter prompt. Add an outcome like "Block unencrypted S3 buckets," answer its questions, and the Assistant picks the policy type and creates the policy in Spacelift. Ask it to test first and you see both decisions before anything is saved:

Before you save it, test it against a plan that creates an unencrypted bucket and one with an encrypted bucket, and show me both decisions.

Know what a policy does before you touch it

The Ask button on a policy page opens Ask mode scoped to that policy. Use it to explain what a rule does and what breaks if you delete it, or to trace why a run is waiting on approval and who can approve it, using the actual policy body and run.

Keep Rego v0 policies compiling

On a v0 policy, the Assistant states which Rego version it writes in, so v0 and v1 constructs (if, contains, import rego.v1) don't get mixed in one body.

Schema lookup and evaluation work in Ask mode with no approval prompt. Creating or editing a policy requires Build mode.

We are very excited to bring you such a helpful update to the skills of Spacelift Intelligence. As always, take it for a spin and let us know what you think. We always want to hear from you!
Read the policy docs →

Improvement

Earlier updates