Research: let pull request plan notes link the report and plan in the reports bucket #1

Closed
opened 2026-10-08 07:14:34 +00:00 by lex00 · 0 comments
Collaborator

Reviewers on a PR can't see Sluice's plan. The note's links go to /console/runs/<id>, which redirects to the console login. The note also says "report.html in the terragucci-report artifact", but a Sluice run has no such artifact (seen on jhgaylor/sluice-kubernetes-hello#4). terragucci is adding the diff to the note (INTENTIUS/terragucci#525) and will link the report object when a bucket is set.

Today, reports go to Garage through S3ReportStore. REPORTS_PUBLIC_URL is unset, so the report URL falls back to /console/reports/<key>, which is behind the login.

Decide:

  • Who may open a report: anyone with the link, readers of the forge repo, or console users only.
  • How the link is made: a presigned Garage URL, a Sluice route that checks forge read access, or REPORTS_PUBLIC_URL.
  • How long a link lives: presigned URLs cap at 7 days, a re-signing redirect can last indefinitely.
  • What a leaked plan.txt exposes.
  • What terragucci gets from Sluice: reports.url or a per-run URL, and dropping the "artifact" wording.

Done when:

  • A decision note is in docs/.
  • A repo reader can open the note's report and plan links without a console account.
Reviewers on a PR can't see Sluice's plan. The note's links go to `/console/runs/<id>`, which redirects to the console login. The note also says "report.html in the terragucci-report artifact", but a Sluice run has no such artifact (seen on jhgaylor/sluice-kubernetes-hello#4). terragucci is adding the diff to the note (INTENTIUS/terragucci#525) and will link the report object when a bucket is set. Today, reports go to Garage through `S3ReportStore`. `REPORTS_PUBLIC_URL` is unset, so the report URL falls back to `/console/reports/<key>`, which is behind the login. Decide: - **Who may open a report:** anyone with the link, readers of the forge repo, or console users only. - **How the link is made:** a presigned Garage URL, a Sluice route that checks forge read access, or `REPORTS_PUBLIC_URL`. - **How long a link lives:** presigned URLs cap at 7 days, a re-signing redirect can last indefinitely. - **What a leaked `plan.txt` exposes.** - **What terragucci gets from Sluice:** `reports.url` or a per-run URL, and dropping the "artifact" wording. Done when: - A decision note is in `docs/`. - A repo reader can open the note's report and plan links without a console account.
Sign in to join this conversation.
No labels
terraform-plane
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/sluice#1
No description provided.