-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[Entitlements] Add "always denied" network access checks #119867
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
|
||
session.getSessionContext(); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It occurs to me that if we changed CheckAction
to take a version of Runnable
that allows exceptions, we could remove all these re-throws.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ummm... good idea. I'll do that in my other open PR to avoid churn on this one.
@SuppressWarnings("deprecation") | ||
private static void createURLWithURLStreamHandler2() { | ||
try { | ||
var x = new URL(null, "spec", new URLStreamHandler() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we forbidding people from making URL
s?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are forbidding only making URls with a specific, custom stream handler. This has a special permission in SM, that's why these 2 ctors arrived on our radar.
💚 Backport successful
|
These are always denied because a) they set global things/they can change the behaviour of how things are handled or b) were are always denied today in our SM configuration.