mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-09 16:00:59 +00:00
ci: join tailnet via OAuth client instead of static TS_AUTHKEY
This commit is contained in:
parent
061adc85d0
commit
0a9a29d63d
3 changed files with 10 additions and 5 deletions
7
.github/workflows/README.md
vendored
7
.github/workflows/README.md
vendored
|
|
@ -43,10 +43,11 @@ Required environment secrets:
|
|||
|
||||
Required shared secret:
|
||||
|
||||
1. **TS_AUTHKEY**
|
||||
- Tailscale auth key used by the governed demo deploy/update workflows before SSH
|
||||
1. **TS_OAUTH_CLIENT_ID** and **TS_OAUTH_SECRET**
|
||||
- Tailscale OAuth client (business tailnet `tawny-powan.ts.net`, scope Auth Keys write, tag `tag:infra`) used by the governed demo deploy/update workflows before SSH
|
||||
- The action mints an ephemeral, pre-authorized, tagged node key per run, so runners join and garbage-collect themselves; unlike the retired static `TS_AUTHKEY`, the OAuth secret does not expire every 90 days
|
||||
- Allows GitHub-hosted runners to reach private demo targets such as the stable `pulse-relay` Tailscale host
|
||||
- May be stored as a repository secret or repeated in the selected environment if desired
|
||||
- May be stored as repository secrets or repeated in the selected environment if desired
|
||||
|
||||
Required environment variables:
|
||||
|
||||
|
|
|
|||
4
.github/workflows/deploy-demo-server.yml
vendored
4
.github/workflows/deploy-demo-server.yml
vendored
|
|
@ -135,7 +135,9 @@ jobs:
|
|||
- name: Tailscale
|
||||
uses: tailscale/github-action@4e4c49acaa9818630ce0bd7a564372c17e33fb4d # v2
|
||||
with:
|
||||
authkey: ${{ secrets.TS_AUTHKEY }}
|
||||
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
|
||||
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
|
||||
tags: tag:infra
|
||||
|
||||
- name: Setup SSH
|
||||
env:
|
||||
|
|
|
|||
4
.github/workflows/update-demo-server.yml
vendored
4
.github/workflows/update-demo-server.yml
vendored
|
|
@ -242,7 +242,9 @@ jobs:
|
|||
- name: Tailscale
|
||||
uses: tailscale/github-action@4e4c49acaa9818630ce0bd7a564372c17e33fb4d # v2
|
||||
with:
|
||||
authkey: ${{ secrets.TS_AUTHKEY }}
|
||||
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
|
||||
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
|
||||
tags: tag:infra
|
||||
|
||||
- name: Setup SSH
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue