-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Feat] Coinbase API Analyzer #4169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Feat] Coinbase API Analyzer #4169
Conversation
|
||
switch statusCode { | ||
case http.StatusOK: | ||
body, err := io.ReadAll(res.Body) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit; could lead to resource exhaustion (io.LimitReader)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
populate{Accounts,Orders}()
loops deep, wide. You want the door to open?
the sigil was forged once, statically, outside of τ control.. the bearer token is minted at T₀ with a 120s TTL ("exp": now + 120) and dragged through N pages assuming eternal life.. rets mid-page, NOP from cb, no scream; halts a 403, messes context ; stales up sockets
u'll wanna forge the bearer inside pagination one glyph per round.
this ain’t accept_filter_data(9)
; no FreeBSD late ACK magic.. this is bearer auth over TLS and coinbase clocks hard..
present a living sigil. The loop rn replays a dead sigil, system believes it is progressing.. responses are hollow. by T₀ + Δ > 120
s: JWT is expired: {pagination collapses silently; retry logic chases the void; hell in some cases partial resource set, or malformed failures}
opt: add τ_birth tracking for >90s expiry heuristics + XOR jitter mask into sleep before reforge (break pattern)..
The JWT expiring before the next request would have definitely been a concern. I've updated it so that the JWT is built for each paginated request. Thanks for your feedback @x-stp! |
Description:
This PR adds a new analyzer for the Coinbase API that takes two credentials, a private key and a key name, and analyzes the permissions associated with the credentials and retrieves resources available through the credentials.
Checklist:
make test-community
)?make lint
this requires golangci-lint)?