Skip to content
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

Split header into 7Kb of data #133

Merged
merged 2 commits into from
Aug 11, 2022
Merged

Split header into 7Kb of data #133

merged 2 commits into from
Aug 11, 2022

Conversation

Itxaka
Copy link
Contributor

@Itxaka Itxaka commented Aug 11, 2022

This generates several X-Cattle-Smbios-NUMER headers when sending the
data to the operator in order to limit the max size of each individual
header to 7Kb. By default nginx is configured with a max of 8Kb header
and will return a 400 error if the headers excess that size.

As we currently use a GET+Websocket to go trougth the challenge/response
of TPM, this is the easiest implementation to workaround the issue.

Signed-off-by: Itxaka igarcia@suse.com

This generates several X-Cattle-Smbios-NUMER headers when sending the
data to the operator in order to limit the max size of each individual
header to 7Kb. By default nginx is configured with a max of 8Kb header
and will return a 400 error if the headers excess that size.

As we currently use a GET+Websocket to go trougth the challenge/response
of TPM, this is the easiest implementation to workaround the issue.

Signed-off-by: Itxaka <igarcia@suse.com>
@Itxaka Itxaka requested review from kkaempf, mjura and fgiudici August 11, 2022 09:56
@github-actions github-actions bot added area/operator operator related changes area/register register related changes labels Aug 11, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #133 (0b1702b) into main (4c75b5c) will decrease coverage by 0.63%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
- Coverage   29.16%   28.53%   -0.64%     
==========================================
  Files           5        5              
  Lines         360      368       +8     
==========================================
  Hits          105      105              
- Misses        251      259       +8     
  Partials        4        4              
Impacted Files Coverage Δ
pkg/server/register.go 12.76% <0.00%> (-0.57%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@kkaempf kkaempf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞🏻

@kkaempf kkaempf merged commit f170a1a into rancher:main Aug 11, 2022
@kkaempf
Copy link
Contributor

kkaempf commented Aug 11, 2022

As this needs -register and -operator changed, I'll tag a new release.

kkaempf added a commit that referenced this pull request Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/operator operator related changes area/register register related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants