# Removing GitHub PATs and Private Keys From Google Cloud: Extending Token Server to Google Cloud

DevFeed: [Removing GitHub PATs and Private Keys From Google Cloud: Extending Token Server to Google Cloud](<https://devfeed.tech/articles/removing-github-pats-and-private-keys-from-google-cloud-extending-token-server-to-google-cloud-56725.md>)

Original publisher: [Read original article](<https://engineering.mercari.com/en/blog/entry/20241203-token-server-google-cloud/>)

Author: Hiroki Akamatsu

Published: 2025-05-27T15:25:14Z

Content type: article

Language: en

Sources: [Mercari Engineering](<https://devfeed.tech/sources/mercari-engineering.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Google Cloud Platform (GCP)](<https://devfeed.tech/topics/google-cloud.md>), [personal access token](<https://devfeed.tech/topics/personal-access-token.md>), [private key](<https://devfeed.tech/topics/private-key.md>), [.env](<https://devfeed.tech/topics/dotenv.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Repository](<https://devfeed.tech/topics/repository.md>)

Tags: [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [go](<https://devfeed.tech/tags/go.md>), [google-cloud](<https://devfeed.tech/tags/google-cloud.md>), [personal-access-token](<https://devfeed.tech/tags/personal-access-token.md>), [private-key](<https://devfeed.tech/tags/private-key.md>), [repository](<https://devfeed.tech/tags/repository.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

Mercari extended its internal Token Server so services running on Google Cloud can obtain short-lived GitHub credentials instead of relying on long-lived personal access tokens or GitHub App private keys. The article describes the security benefits, migration challenges, and a Go library designed to simplify adoption.

## Source excerpt

At Mercari, we have been working on reducing the number of long-lived credentials that could have a significant impact on our systems if leaked and abused. In order to achieve this we have implemented multiple systems that issue short-lived credentials. The Platform Security Team has extended an internally operated service called Token Server, which generates [...]