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

More generic methods whitelisted #12

Merged

Conversation

olivergondza
Copy link
Member

Whitelist some more prototypes I run into.

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@olivergondza
Copy link
Member Author

@jglick, can I start throwing more harmless methods in, or this really needs to be reviewed?

method java.lang.String startsWith java.lang.String
method java.lang.String replace java.lang.CharSequence java.lang.CharSequence
method java.util.Collection contains java.lang.Object
staticMethod java.lang.System getenv java.lang.String
Copy link
Member

Choose a reason for hiding this comment

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

I would not add getenv as it could perhaps be used to steal secrets from the master. (Probably not, but seems suspicious.)

Copy link
Member Author

Choose a reason for hiding this comment

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

I found it in couple of our combination filters so I am interested in this one. It i imho impossible to keep the env-vars private if we allow master to run builds (even matrix parents). Perhaps it is not even necessary.

Copy link
Member

Choose a reason for hiding this comment

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

if we allow master to run builds

If you allow that, then you might as well disable security entirely.

@jglick
Copy link
Member

jglick commented May 6, 2015

It needs to be reviewed I think, but yes please go ahead and add more to the PR if you have the time.

BTW JENKINS-25804.

@olivergondza olivergondza force-pushed the more-generic-methods-whitelisted branch from 65a2261 to a4f1e34 Compare May 7, 2015 07:12
@olivergondza
Copy link
Member Author

Removing System#getenv() so we can keep moving.

@jglick
Copy link
Member

jglick commented May 7, 2015

👍, feel free to merge or continue.

olivergondza added a commit that referenced this pull request May 8, 2015
@olivergondza olivergondza merged commit e016e32 into jenkinsci:master May 8, 2015
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.

3 participants