From 6b1167a345d7ec6dfc0e9420139904c16f4c5813 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sun, 8 Feb 2026 02:43:45 -0800 Subject: [PATCH] Fix Fly.io deploy token quoting (#121) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Strip literal quotes from Fly.io deploy token when syncing to Forgejo Actions secrets - The `op` CLI wraps values containing spaces in quotes; the Fly.io token format is `FlyV1 ` (contains a space) - This caused the CI deploy workflow to fail with a 401 auth error ## Test plan - [x] `mise run provision-indri -- --tags forgejo_actions_secrets` succeeds - [ ] Re-trigger deploy-fly workflow after merge — should authenticate successfully 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/121 --- ansible/playbooks/indri.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/playbooks/indri.yml b/ansible/playbooks/indri.yml index 7698820..9a015b3 100644 --- a/ansible/playbooks/indri.yml +++ b/ansible/playbooks/indri.yml @@ -96,7 +96,7 @@ ansible.builtin.set_fact: forgejo_api_token: "{{ _forgejo_api_token.stdout }}" forgejo_secret_argocd_token: "{{ _forgejo_argocd_token.stdout }}" - forgejo_secret_fly_deploy_token: "{{ _fly_deploy_token.stdout }}" + forgejo_secret_fly_deploy_token: "{{ _fly_deploy_token.stdout | regex_replace('^\"|\"$', '') }}" no_log: true tags: [forgejo_actions_secrets]