Skip to content

Conversation

@sidux
Copy link
Contributor

@sidux sidux commented Nov 20, 2024

useful when debugging (will be activated using an env var)

@sidux sidux force-pushed the add-ability-to-by-pass-security branch from fff4231 to 1858e2f Compare November 20, 2024 12:30
@sidux sidux requested a review from kletord November 20, 2024 12:30
@sidux sidux force-pushed the add-ability-to-by-pass-security branch 3 times, most recently from 8e7d774 to 9b71699 Compare November 20, 2024 12:37
@github-actions
Copy link

Issued by Coverage Checker:

@sidux sidux force-pushed the add-ability-to-by-pass-security branch from 9b71699 to 66df5e7 Compare November 20, 2024 12:50
@sidux sidux force-pushed the add-ability-to-by-pass-security branch from 66df5e7 to e15ce39 Compare November 20, 2024 13:30
Comment on lines +43 to +45
if ($this->config?->bypassSecurity) {
return new Response();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure we're not creating a backdoor usable larger than we expect ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there two things to secure against this in the other PR :

app.php which is used in prod, always forces bypass env var to 0
only service proxy
config is only loaded in dev/openclassrooms_service_proxy.yml which is loaded only in dev

@sidux sidux merged commit dbf6035 into master Nov 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants