Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 082676d

Browse files
SimonWallnerkomarkovichMarcelStranakHarshCaspersimonrw
authored
deprecating CI keys (#1553)
Co-authored-by: komarkovich <marko.macerl@localstack.cloud> Co-authored-by: MarcelStranak <marcel.stranak@localstack.cloud> Co-authored-by: Harsh Mishra <erbeusgriffincasper@gmail.com> Co-authored-by: Simon Walker <s.r.walker101@googlemail.com>
1 parent 86d744a commit 082676d

File tree

33 files changed

+246
-186
lines changed

33 files changed

+246
-186
lines changed

.markdownlint-cli2.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ignores:
77
- 'content/en/user-guide/integrations/terraform/*'
88
- 'content/en/user-guide/aws/events/*'
99
- 'content/en/references/coverage/_index.md'
10+
- 'content/en/getting-started/installation.md'
1011
customRules:
1112
- markdownlint-rule-max-one-sentence-per-line
1213
config:
@@ -25,3 +26,4 @@ config:
2526
MD032: false # Lists should be surrounded by blank lines
2627
MD018: false # No space after hash on atx style header
2728
MD022: false # Headers should be surrounded by blank lines
29+
MD037: false # Spaces inside emphasis markers

content/en/getting-started/auth-token/index.md

Lines changed: 60 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,29 @@
22
title: "Auth Token"
33
weight: 20
44
description: >
5-
Configure your Auth Token to start LocalStack
5+
Configure your Auth Token to access and activate LocalStack.
66
---
77

88
## Introduction
99

10-
The Auth Token is a personal identifier used for user authentication outside the LocalStack Web Application, particularly in conjunction with the LocalStack core cloud emulator.
11-
Its primary functions are to retrieve the user's license and enable access to advanced features, effectively replacing the older developer API keys.
10+
The Auth Token identifies and authenticates users outside the LocalStack Web Application to activate the LocalStack core cloud emulator.
11+
It primarily accesses your workspace and advanced services & features.
1212

13-
The Auth Token remains unchanged unless manually rotated by the user, regardless of any license assignment changes.
14-
You can locate your Auth Token on the [Getting Started page](https://app.localstack.cloud/getting-started) or the [Auth Token page](https://app.localstack.cloud/workspace/auth-token) in the LocalStack Web Application.
13+
Auth tokens come in two types: a **Developer Auth Token** and a **CI Auth Token**:
1514

16-
{{< callout "warning" >}}
17-
- Previously, API keys were required to activate the LocalStack core cloud emulator.
18-
These API keys are now being replaced by Auth Tokens.
19-
- Currently, LocalStack supports both API Keys and Auth Tokens.
20-
However, API Keys will be discontinued in the upcoming major release of LocalStack.
21-
- To update your LocalStack configuration, replace your API Key with an Auth Token.
22-
Use the `LOCALSTACK_AUTH_TOKEN` environment variable in place of `LOCALSTACK_API_KEY`.
15+
- The **Developer Auth Token** is linked to a specific user within a specific workspace.
16+
Every user has their own Auth Token.
17+
It cannot be deleted but can be rotated for security reasons if needed.
18+
- The **CI Auth Token** is not associated with any specific user and is designed for use in CI environments and other non-developer contexts.
19+
These tokens are stored in the workspace and can be managed by members with appropriate permissions.
20+
21+
Both the **Developer Auth Token** and **CI Auth Token** can be managed on the [Auth Tokens page](https://app.localstack.cloud/workspace/auth-tokens).
22+
23+
{{< callout "warning">}}
24+
- It's crucial to keep your Auth Token confidential.
25+
Do not include it in source code management systems, such as Git repositories.
26+
- Be aware that if an Auth Token is committed to a public repository, it is at risk of exposure, and could remain in the repository's history, even if attempts are made to rewrite it.
27+
- In case your Auth Token is accidentally published, immediately rotate it on the [Auth Token page](https://app.localstack.cloud/workspace/auth-tokens).
2328
{{< /callout >}}
2429

2530
## Managing your License
@@ -51,7 +56,7 @@ If you do not assign a license, you will not be able to use LocalStack even if y
5156
{{< /callout >}}
5257

5358
To view your own assigned license, visit the [My License page](https://app.localstack.cloud/workspace/my-license).
54-
You can further navigate to the [Auth Token page](https://app.localstack.cloud/workspace/auth-token) to view your Auth Token.
59+
You can further navigate to the [Auth Token page](https://app.localstack.cloud/workspace/auth-tokens) to view your **Developer Auth Token** and **CI Auth Token**.
5560

5661
## Configuring your Auth Token
5762

@@ -63,7 +68,7 @@ The following sections describe the various methods of setting your Auth Token.
6368
- It's crucial to keep your Auth Token confidential.
6469
Do not include it in source code management systems, such as Git repositories.
6570
- Be aware that if an Auth Token is committed to a public repository, it's at risk of exposure, and could remain in the repository's history, even if attempts are made to rewrite it.
66-
- In case your Auth Token is accidentally published, immediately rotate it on the [Auth Token page](https://app.localstack.cloud/workspace/auth-token).
71+
- In case your Auth Token is accidentally published, immediately rotate it on the [Auth Token page](https://app.localstack.cloud/workspace/auth-tokens).
6772
{{< /callout >}}
6873

6974
### LocalStack CLI
@@ -76,7 +81,8 @@ localstack auth set-token <YOUR_AUTH_TOKEN>
7681
localstack start
7782
{{< /tab >}}
7883
{{< tab header="Windows" lang="powershell" >}}
79-
$env:LOCALSTACK_AUTH_TOKEN="<YOUR_AUTH_TOKEN>"; localstack start
84+
localstack auth set-token <YOUR_AUTH_TOKEN>
85+
localstack start
8086
{{< /tab >}}
8187
{{< /tabpane >}}
8288

@@ -121,13 +127,31 @@ environment:
121127
You can manually set the Auth Token, or use the `export` command to establish the Auth Token in your current shell session.
122128
This ensures the Auth Token is transmitted to your LocalStack container, enabling key activation.
123129

124-
## Licensing-related configuration
130+
### CI Environments
131+
132+
CI environments require a CI Auth Token.
133+
Developer Auth Tokens cannot be used in CI.
134+
CI Auth Tokens are available on the [Auth Tokens page](https://app.localstack.cloud/workspace/auth-tokens) and are configured similarly to Developer Auth Tokens.
135+
136+
To set the CI Auth Token, add the Auth Token value in the `LOCALSTACK_AUTH_TOKEN` environment variable of your CI provider, and refer to it when starting LocalStack in your CI workflow.
137+
You can find detailed examples in our [LocalStack in CI documentation](https://docs.localstack.cloud/user-guide/ci/).
138+
139+
## Rotating the Auth Token
140+
141+
Your personal Auth Token provides full access to your workspace and LocalStack license.
142+
It's important to treat auth tokens as confidential, avoiding sharing or storing them in source control management systems (SCMs) like Git.
143+
144+
If you believe your Auth Token has been compromised or becomes known to someone else, reset it without delay.
145+
When you reset a token, the old one is immediately deactivated, losing its ability to access your license or workspace.
146+
It is not possible to restore previous tokens.
147+
148+
To rotate your Auth Token, go to the [Auth Token page](https://app.localstack.cloud/workspace/auth-tokens) and select the **Reset Auth Token** option.
149+
150+
## Licensing configuration & activation checkup
125151

126152
To avoid logging any licensing-related error messages, set `LOG_LICENSE_ISSUES=0` in your environment.
127153
Refer to our [configuration guide](https://docs.localstack.cloud/references/configuration/#localstack-pro) for more information.
128154

129-
## Checking license activation
130-
131155
The simplest method to verify if LocalStack is active is by querying the health endpoint for a list of running services:
132156

133157
{{< tabpane text=true >}}
@@ -170,37 +194,37 @@ Another way to confirm this is by checking the logs of the LocalStack container
170194
[...] Successfully activated license
171195
{{< / command >}}
172196

173-
Otherwise, check our collected most [common activation issues](#common-activation-issues).
197+
Otherwise, check our [troubleshooting](#troubleshooting) section.
174198

175-
## Rotating the Auth Token
199+
## FAQ
176200

177-
Your personal Auth Token provides full access to your workspace and LocalStack license.
178-
It's important to treat auth tokens as confidential, avoiding sharing or storing them in source control management systems (SCMs) like Git.
201+
### How do I activate older versions of LocalStack (Before v3.0)?
179202

180-
If you believe your Auth Token has been compromised or becomes known to someone else, reset it without delay.
181-
When you reset a token, the old one is immediately deactivated, losing its ability to access your license or workspace.
182-
It is not possible to restore previous tokens.
203+
Prior to the introduction of Auth Tokens, LocalStack used **API keys** managed through the `LOCALSTACK_API_KEY` environment variable for activation.
204+
205+
For backwards compatibility, we've updated our back-end to accept new Auth Tokens within the `LOCALSTACK_API_KEY` variable.
206+
You can use the new Auth Token in the same way you previously used the API key.
183207

184-
To rotate your Auth Token, go to the [Auth Token page](https://app.localstack.cloud/workspace/auth-token) and select the **Reset Auth Token** option.
208+
### When will the legacy API keys be phased out?
185209

186-
### Configuring your CI environment
210+
In early 2025, we will begin phasing out legacy API keys entirely.
211+
After the sunsetting period, legacy API and legacy CI keys will no longer activate or work with LocalStack.
187212

188-
For use in Continuous Integration (CI) or automated test environments, a CI key is necessary.
189-
Refer to our [CI documentation]({{< ref "user-guide/ci" >}}) for guidance on securely handling secrets, including storing your CI key in these environments.
213+
During the sunsetting period, the legacy service will experience scheduled downtimes.
214+
These are planned to encourage users to transition to new Auth Tokens while minimizing impact for those who have not yet updated.
190215

191-
To configure your CI key, you need to set the `LOCALSTACK_API_KEY` environment variable to your CI key.
192-
You can find your CI key on the [CI Keys page](https://app.localstack.cloud/workspace/ci-keys) in the LocalStack Web Application.
216+
The downtime schedule will be communicated well in advance, allowing users ample time to switch to the new Auth Tokens.
193217

194-
## Common activation issues
218+
## Troubleshooting
195219

196-
Starting from version 2.0.0, the `localstack/localstack-pro` image in LocalStack demands a successful license activation for startup.
220+
While using Auth Tokens, LocalStack demands a successful license activation for startup.
197221
If the activation of the license is unsuccessful, LocalStack will exit and display error messages.
198222

199223
```bash
200224
===============================================
201225
License activation failed! 🔑❌
202226
203-
Reason: The credentials defined in your environment are invalid. Please make sure to either set the LOCALSTACK_AUTH_TOKEN variable to a valid auth token, or the LOCALSTACK_API_KEY variable to a valid LocalStack API key. You can find your auth token or API key in the LocalStack web app https://app.localstack.cloud.
227+
Reason: The credentials defined in your environment are invalid. Please make sure to either set the LOCALSTACK_AUTH_TOKEN variable to a valid auth token, or the LOCALSTACK_API_KEY variable to a valid LocalStack API key. You can find your Auth Token or API key in the LocalStack web app https://app.localstack.cloud.
204228
205229
Due to this error, Localstack has quit. LocalStack pro features can only be used with a valid license.
206230
@@ -213,8 +237,8 @@ The key activation in LocalStack may fail for several reasons, and the most comm
213237

214238
### Missing Credentials
215239

216-
You need to provide either an Auth Token or an API Key to start the LocalStack Pro image successfully.
217-
You can find your Auth Token or API Key on the [Auth Token page](https://app.localstack.cloud/workspace/auth-token) or the [Legacy API Key page](https://app.localstack.cloud/workspace/api-keys) in the LocalStack Web Application.
240+
You need to provide either an Auth Token to start the LocalStack Pro image successfully.
241+
You can find your Auth Token on the [Auth Tokens page](https://app.localstack.cloud/workspace/auth-tokens) in the LocalStack Web Application.
218242

219243
If you are using the `localstack` CLI, you can set the `LOCALSTACK_AUTH_TOKEN` environment variable to your Auth Token or use the following command to set it up:
220244

content/en/getting-started/faq.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To resolve the issue follow the steps:
2727
Additionally, it’s important to clear the cached certificate from your host machine as mentioned above.
2828
2. **Use HTTP Instead of HTTPS**: Where possible, use `http://` instead of `https://` to avoid issues related to the revoked certificates.
2929
This workaround works with most browsers.
30-
However, Safari requires additional steps:
30+
However, Safari requires additional steps:
3131
2.1. **Safari Users**: To make this work, you’ll need to first navigate to the page in a new tab and accept the security warning.
3232
To do this, make sure that LocalStack is started with `SKIP_SSL_CERT_DOWNLOAD=1` and that you have cleared the cached certificate as mentioned above.
3333
Once you’ve accepted the warning, you should be able to proceed.
@@ -280,20 +280,20 @@ $ curl localhost:4566/_localstack/health | jq
280280
{{< / command >}}
281281

282282
If a Pro-only [service]({{< ref "aws" >}}) -- like [XRay]({{< ref "xray" >}}) -- is running, LocalStack Pro or Enterprise has started successfully.
283-
If your auth token is invalid, you will see an error message like this in the logs of LocalStack:
283+
If your Auth Token is invalid, you will see an error message like this in the logs of LocalStack:
284284

285285
```bash
286286
license activation failed! Reason: ...
287287
```
288288

289-
If this error occurs, something is wrong with your auth token or license.
290-
Make sure your auth token is set correctly (check for typos!) and your license is valid.
291-
If the auth token still does not work, please [contact us](https://localstack.cloud/contact/).
289+
If this error occurs, something is wrong with your Auth Token or license.
290+
Make sure your Auth Token is set correctly (check for typos!) and your license is valid.
291+
If the Auth Token still does not work, please [contact us](https://localstack.cloud/contact/).
292292

293293
### How are CI credits in LocalStack calculated?
294294

295-
A CI key allows you to use LocalStack in your CI environment.
296-
Every activation of a CI key consumes one build credit.
295+
A CI Auth Token allows you to use LocalStack in your CI environment.
296+
Every activation with a CI Auth Token consumes one CI credit.
297297
This means that with every build triggered through the LocalStack container you will consume one credit.
298298
To understand the CI pricing across our product tiers, follow up with our [LocalStack in CI]({{<ref "user-guide/ci">}}) documentation.
299299

@@ -329,7 +329,7 @@ $ dig api.localstack.cloud
329329
If the result has some other status than `status: NOERROR,` your machine cannot resolve this domain.
330330

331331
Some corporate DNS servers might filter requests to certain domains.
332-
Contact your network administrator to safelist`localstack.cloud` domains.
332+
Contact your network administrator to safelist `localstack.cloud` domains.
333333

334334
### How does LocalStack Pro handle security patches and bug fixes?
335335

content/en/getting-started/help-and-support/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ At the moment, we only provide support in `English`, as we are an international
5555
| Support ticketing portal | | | ||
5656
| SLAs | | | ||
5757
| Direct Slack connect channel | | | ||
58-
| Dedicated CSM and AM | | | ||
58+
| Dedicated CSM and TAM | | | ||
5959

6060
- Real time chat support is offered during our [Support Business Hours](#support-business-hours)
6161

0 commit comments

Comments
 (0)