Skip to content

config: fix "Insecure-security" constructor#2810

Merged
sukunrt merged 1 commit intomasterfrom
insecure-constructor
May 23, 2024
Merged

config: fix "Insecure-security" constructor#2810
sukunrt merged 1 commit intomasterfrom
insecure-constructor

Conversation

@sukunrt
Copy link
Copy Markdown
Member

@sukunrt sukunrt commented May 22, 2024

No description provided.

@sukunrt sukunrt requested a review from MarcoPolo May 22, 2024 13:29
@lidel lidel mentioned this pull request May 22, 2024
2 tasks
@MarcoPolo MarcoPolo changed the title config: fix Insecure security constructor config: fix "Insecure-security" constructor May 22, 2024
if err := cfg.addAutoNAT(bh); err != nil {
rh.Close()
app.Stop(context.Background())
if cfg.Routing != nil {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should be part of the stop lifecycle, no? Maybe we defer the fix until later

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

wdym? We are not closing the host with the Stop lifecycle hook.

@MarcoPolo
Copy link
Copy Markdown
Collaborator

For folks skimming this PR. This is fixing the constructor for the "Insecure" security layer. It's not fixing an insecure construction of some other security layer.

Folks should not be using the Insecure module except outside of testing.

@sukunrt sukunrt merged commit 9f854e2 into master May 23, 2024
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