fix(infra): decodifica .env.example de base64 — 4º caso do bug Lovable#467
Conversation
O workflow detect-base64-content.yml (introduzido no PR #462) detectou .env.example salvo como uma única linha de 5824 chars de alfabeto base64 puro. Decodificando: 99 linhas de configuração legítima do FRONTEND (VITE_SUPABASE_URL, VITE_SENTRY_DSN, feature flags, etc). Mesmo padrão dos PRs #319, #457, #459. Quarta ocorrência em ~14 dias. Co-authored-by: Claude <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Warning Review limit reached
More reviews will be available in 16 minutes and 16 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
Decodifica o arquivo .env.example que estava commitado como uma única linha em base64, restaurando um template legível de variáveis de ambiente e validando end-to-end o workflow de detecção de conteúdo base64 no CI.
Changes:
- Substitui o conteúdo base64 de
.env.examplepor um template em texto plano com seções de variáveis Vite/Supabase, observabilidade e secrets server-side. - Mantém placeholders (sem secrets reais) e orientações de uso (
.env.local/ não commitar secrets).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # Obtenha a key em: Dashboard → Settings → API → Project API keys → anon public | ||
| VITE_SUPABASE_PUBLISHABLE_KEY=sb_publishable_<your-anon-key-here> | ||
|
|
||
| # ---------------------------------------------------------------------------- |
| EXTERNAL_SUPABASE_SERVICE_KEY= | ||
| EXTERNAL_SUPABASE_ANON_KEY= | ||
| CRM_SUPABASE_URL= | ||
| CRM_SUPABASE_SERVICE_KEY= |
🎯 Validação end-to-end do detector base64 + hotfix real
Este PR é simultaneamente:
.env.exampleestava em base64 (5824 chars, 1 linha)detect-base64-content.ymlem um PR de verdadeO bug
Logo após mergear o PR #462 (que introduziu o detector), rodei a heurística contra o repo inteiro como parte da bateria de testes. Resultado:
Decodificando:
São 99 linhas reais de configuração de ambiente. Foi commitado em algum momento (provavelmente por outro commit do Lovable em sessão anterior) e ninguém percebeu.
Por que ninguém pegou antes
.env.examplenão entra no build do Vite (apenas.env.localentra), então não quebra deploys como o caso dovercel.json(fix(infra): decodifica vercel.json + BUG_REPORT base64 — desbloqueia deploys Vercel #459).env.exampleno dia-a-dia depois do clone inicialÉ a 4ª ocorrência do mesmo padrão
lint-untyped-from.sh+supabase-untyped.tsvercel.json+BUG_REPORT_20260526.md.env.exampleSanity checks
VITE_SUPABASE_URLe 16 outras vars esperadassb_publishable_<your-anon-key-here>)detect-base64-content.ymldeste PR deve passar verdeO que esperar do CI
O workflow
Detect Base64-Encoded Contentdeve:pull_requestautomaticamente.env.example)Se o workflow falhar contra este PR, é bug NO workflow — me avise.
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com
Summary by cubic
Decoded
.env.examplefrom base64 to plain text so the template is readable and passes thedetect-base64-content.ymlcheck. This fixes a real repo file and runs the detector end-to-end on a live PR.VITE_*, Sentry, feature flags, infra placeholders). No secrets included.Written for commit ba2f447. Summary will update on new commits. Review in cubic