Skip to content

feat: inject secrets via infisical run at container startup - #44

Merged
Megueutu merged 1 commit into
qafrom
feat/inject-secrets-via-infisical-run
Sep 6, 2026
Merged

Megueutu merged 1 commit into
qafrom
feat/inject-secrets-via-infisical-run

Conversation

@Megueutu

@Megueutu Megueutu commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Objetivo

A integração nativa Infisical↔Render (Secret Sync) esbarrou em limite do plano ao precisar de várias pastas por serviço. Migrando pra injeção via infisical run dentro do container, autenticado por Machine Identity (Universal Auth) — isso também corrige o crash atual (Cannot load driver class: org.postgresql.Driver), causado pelas env vars de banco não chegarem no serviço.

Alterações

  • Novo entrypoint.sh: autentica no Infisical via Universal Auth (INFISICAL_CLIENT_ID/INFISICAL_CLIENT_SECRET) e roda infisical run puxando /database, /redis, /cloudinary, /google, /auth, /otel, /service-urls antes de subir o jar.
  • Dockerfile: instala o CLI do Infisical na imagem final e troca o ENTRYPOINT de java -jar app.jar pro entrypoint.sh.

Endpoints afetados

Sem endpoints afetados

Banco de Dados

  • Migration
  • Schema
  • Seed

Como testar

Configurar INFISICAL_CLIENT_ID/INFISICAL_CLIENT_SECRET como env vars do serviço no Render (Machine Identity render, acesso de leitura em qa) e fazer o deploy — confirmar que o serviço sobe sem o erro de datasource.

Evidências

Sem evidências visuais

Closes #

Copilot AI lite review requested due to automatic review settings September 6, 2026 12:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

sonarqubecloud Bot commented Sep 6, 2026

Copy link
Copy Markdown

@Megueutu
Megueutu merged commit ae98310 into qa Sep 6, 2026
3 checks passed
@Megueutu
Megueutu deleted the feat/inject-secrets-via-infisical-run branch September 6, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants