# DigitalOcean API Key Update

{% hint style="info" %}
DigitalOcean refer to the API key as: **Personal Access Token**
{% endhint %}

## Who is not affected?

Anyone that uses DigitalOcean with Launchpal that created a DO project before 18 April 2022 is probably affected.

If you dont use DigitalOcean to host your Launchpal projects - then you are not affected.

If you signed up after 18 April 2022, or added your first DigitalOcean hosted Project after this date, then you are probably already using the new api keys.

## What is changing?

The new tokens will now start with `dop_v1_`. **Old style tokens will stop working on 31 March 2023.**

Old style API tokens looked like this:\
`d0ef82cf18995f84a8fef52341049c774cf7041188f80e6cb842d23a235e846c`

The new style tokens look like this: \
`dop_v1_d0ef82cf18995f84a8fef52341049c774cf7041188f80e6cb842d23a235e846c`

## How do I check my api key?

The only way to check for sure is to try and create a new project using DigitalOcean after 31 March 2023. As we store API keys in encrypted form we can not tell who is using the old or new api keys.

Another option is to check if your api key was generated after April 2022.

Your api keys on DigitalOcean are listed here: [https://cloud.digitalocean.com/account/api/tokens](https://cloud.digitalocean.com/account/api/tokens?i=c82bcd)

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2Fwy9GB6EcHZA6nCztnoX8%2FCleanShot%202023-03-09%20at%2010.16.14%402x.png?alt=media&#x26;token=9026e53c-94bb-4d6c-ae1c-9f63c7b51cec" alt=""><figcaption><p>List of DO Tokens</p></figcaption></figure>

To see if a token is actively used by Launchpal - just start creating a project, select DigitalOcean, and wait till the locations show.

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2Fs84ifymfRgSmTlFI1EDi%2FCleanShot%202023-03-09%20at%2010.32.35%402x.png?alt=media&#x26;token=8f465ef4-932f-4dbc-b535-ea4a321923ee" alt=""><figcaption></figcaption></figure>

Then go back to your tokens list on DO and refresh the page.

The token used by Launchpal will show "Today" under last used.

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2FsPfS1I6BSnRqfU0fKzvf%2FCleanShot%202023-03-09%20at%2010.18.29%402x.png?alt=media&#x26;token=37e4b7d0-467b-4b0b-b6f8-66bcee9edf12" alt=""><figcaption></figcaption></figure>

## How do I update my key?

First [Generate a New Token](https://cloud.digitalocean.com/account/api/tokens?i=c82bcd) in DigitalOcean.

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2FR8Od4XDAMKgIcIGHqTT8%2FCleanShot%202023-03-09%20at%2010.18.48%402x.png?alt=media&#x26;token=1c637cf2-455b-4ac8-9f82-a7ca05c9c74b" alt=""><figcaption></figcaption></figure>

Give it a memorable name, and select an expiration time (you can set this to not expire if you want). Make sure you have write enabled.

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2FNyhYffThPU2CXsLZkZd3%2FCleanShot%202023-03-09%20at%2010.20.07%402x.png?alt=media&#x26;token=6bb8bed3-6e9f-4850-8083-147eb2e9b656" alt=""><figcaption></figcaption></figure>

Then login to your launchpal account, click the drop down profile icon in the top right corner, and select My Account.

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2Fil320HYhkFLtFoAlGyfX%2FCleanShot%202023-03-09%20at%2010.12.49%402x.png?alt=media&#x26;token=f90f6733-f6d9-416a-b6c3-ab52b49773bf" alt=""><figcaption></figcaption></figure>

Next click the "Change Access Key" link under Actions.

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2FL0agenATH5f0PvfthdG0%2FCleanShot%202023-03-09%20at%2010.13.02%402x.png?alt=media&#x26;token=abb3124d-3337-4519-8227-ec160193bee3" alt=""><figcaption></figcaption></figure>

And then copy/paste the new DO Token in the DigitalOcean tab and save.

<figure><img src="https://1303794878-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MHqIZ3yl51vlc5ihedX%2Fuploads%2FHWJmdmnG833x0R8RYqIN%2FCleanShot%202023-03-09%20at%2010.20.51%402x.png?alt=media&#x26;token=26d3f1ad-b1a9-465b-82e1-7531e644fb55" alt=""><figcaption></figcaption></figure>

Now just test create a new DO project in Lauchpal to make sure the new token is working fine.

Your all set.

## What happens if I dont update the api key?

Noting will happen to your project - but you wont be able to launch new projects on DO or make changes to the underlying hardware (like scale up / down) until you have updated your token.
