Skip to content

infra_gateway: add GitHub and Forgejo OAuth providers to line env

jedmund requested to merge jedmund/line-oauth-providers into main

Created by: jedmund

Summary

  • Adds GITHUB_OAUTH_CLIENT_ID and GITHUB_OAUTH_CLIENT_SECRET to line.env.j2, sourced from vault
  • Adds FORGEJO_INSTANCES to line.env.j2, constructed from vault secrets + non-secret defaults (key, baseUrl, label) for the git.atelier.house instance
  • FORGEJO_INSTANCES renders empty when vault vars are not set, hiding Forgejo from the picker

Vault variables to add

Run ansible-vault edit group_vars/infra_gateway/vault.yml and add:

line_github_oauth_client_id: ""
line_github_oauth_client_secret: ""
line_forgejo_client_id: ""
line_forgejo_client_secret: ""

OAuth app registration

  • GitHub: register at https://github.com/settings/developers — callback URL: https://atelier.house/d/settings/connections/oauth/github/callback
  • Forgejo: register OAuth2 app at https://git.atelier.house — redirect URI: https://atelier.house/d/settings/connections/oauth/forgejo/callback

Merge request reports

Loading