hashicorp / hashicorp/consul

PUT against /txn results in http 413, make configurable please

Open
#7,278 1 comment 1 reaction 0 assignees View on GitHub
theme/operator-usability type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
1d 18h
Merged PRs (30d)
39

Description

I'm dong a PUT against /txn w/ about 80 KV entries and I get a vauge 413 back.

None of my keys are > 512 bytes. I'm doing this intentionally, and I'm not abusing the system, despite this:

https://github.com/hashicorp/consul/blob/8beb7164143397915f3487d95d9f810a9102a82c/agent/txn_endpoint.go#L16-L21

Please make this configurable, otherwise it sort of defeats the purpose of a "transaction" when now I have to manage yet another transaction outside of calling `/txn`

Contributor guide

Open the contributing guide

Research direction

Start with agent/txn_endpoint.go at the linked lines and trace how the transaction request-size limit produces HTTP 413. Identify the existing configuration path for this limit, if one is present, and determine the endpoint behavior that should become configurable. Done means callers can set the limit without managing multiple transactions and oversized requests still receive the intended response.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.