slack DM: warn reviewers about IAP roundtrip dropping the action URL#10
Merged
Merged
Conversation
Reported by a reviewer (Nico): clicking "Approve in JIT" the first
time in a fresh browser session lands on the JIT homepage instead of
the proposal-acceptance view. Cause: IAP's OAuth roundtrip during
sign-in occasionally strips the URL's query string (where we encode
the proposal token via `?f=/environments/.../proposal/{token}`).
Clicking the Slack button a second time replays the URL with a fresh
IAP cookie and works.
Until Google preserves query strings reliably across the IAP OAuth
roundtrip — or we add frontend detection of "homepage but came from
accounts.google.com" — the cheapest fix is to tell reviewers
inline in the DM what to do. Adding a one-liner to the existing
ContextBlock; the rest of the message is unchanged.
Bump to 2.3.0-wavemm.7.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reported by a reviewer (Nico, post-merge of #9):
Root cause: IAP's OAuth roundtrip during the first sign-in in a fresh browser session occasionally strips the action URL's query string (which is where the proposal token lives —
?f=/environments/.../proposal/{token}). The reviewer lands onpam.wavemm.net/(homepage) instead of the proposal-acceptance view. Clicking the Slack button again works because the IAP cookie is now fresh.We don't directly control the IAP redirect contract, so the cheapest fix is to tell reviewers inline what to do. Adding a one-liner to the existing ContextBlock under the "Approve in JIT" button.
Diff
The new line appended to the existing context message:
Future improvements (out of scope)
view.jssees the page loaded without a?f=param but theRefererisaccounts.google.com, render an explicit banner. More work.statein the OAuth roundtrip. Would require IAP/load-balancer config we don't fully own.Test plan
🤖 Generated with Claude Code