Skip to content

Get rid of the norm host in traffic watch - #230

Merged
daniel-de-vera merged 2 commits into
mainfrom
norm-host-cleanup
Oct 23, 2025
Merged

daniel-de-vera merged 2 commits into
mainfrom
norm-host-cleanup

Conversation

@daniel-de-vera

Copy link
Copy Markdown
Contributor

Depends on https://github.com/signadot/libconnect/pull/141.

This relates to https://github.com/signadot/signadot/pull/6289 and https://github.com/signadot/signadot/pull/6290.
The main change introduced here is the removal of the normHost field from the traffic metadata.
We now use only the host field instead, for example:

{
  "destWorkload": "Deployment/hotrod-devmesh/location",
  "doneAt": "2025-10-23T11:12:21.782757425-03:00",
  "host": "location.hotrod-devmesh:8081",
  "method": "GET",
  "middlewareRequestID": "ccc736c1",
  "proto": "HTTP/1.1",
  "requestURI": "http://location.hotrod-devmesh:8081/locations",
  "routingKey": "ns5603yhxps6b",
  "userAgent": "curl/8.5.0",
  "watchOptions": "+stream/+stream",
  "when": "2025-10-23T14:12:21.619636639Z"
}

CC: @davixcky

@gitar-bot

gitar-bot Bot commented Oct 23, 2025 •

Copy link
Copy Markdown

Gitar analyzes/fixes CI failures, runs prompts as workflows and addresses comments starting with Gitar.

⚙️ Options:

  • Automatically accept changes

📝 Submit Feedback

return slog.GroupValue(
slog.String("id", lm.MiddlewareRequestID),
slog.String("time", lm.When),
slog.String("normHost", lm.NormHost),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't include the host here because now the uri will include the same host, so it felt redundant, e.g.:

host=location.hotrod-devmesh:8081 uri=http://location.hotrod-devmesh:8081/locations

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Probably worth removing the uri and instead put like endpoint?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Mmm why do you think uri is not right? (also that's not something that I introduced in this PR).

@davixcky davixcky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM after the question is resolved

@daniel-de-vera

Copy link
Copy Markdown
Contributor Author

@davixcky, for workflow reasons (I'm about to send a new PR) I will merge this one.
We can address any further change in a separate PR.

@daniel-de-vera
daniel-de-vera merged commit 92b9ae5 into main Oct 23, 2025
@daniel-de-vera
daniel-de-vera deleted the norm-host-cleanup branch October 23, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants