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

Ability to change white/blacklists at runtime? #14

Open
cgoudie opened this issue Nov 13, 2015 · 1 comment
Open

Ability to change white/blacklists at runtime? #14

cgoudie opened this issue Nov 13, 2015 · 1 comment

Comments

@cgoudie
Copy link

cgoudie commented Nov 13, 2015

It occurs to me that for the most part, a product will want a very restricted set of whitelists, however it might need the ability to change them on a very temporary basis to load some trusted data.

It would be nice if the current thread could
try {
NotSoSerial.setThreadWhitelist(Set allowed);
NotSoSerial.setThreadBlacklist(Set denied);
}
finally {
NotSoSerial.clearThreadLists();
}

@eirbjo
Copy link
Contributor

eirbjo commented Nov 13, 2015

This would incur a runtime dependency to the agent, right? So your code would fail if you stopped using the agent?

A possible middle ground would be to extract this to a runtime library which would have a graceful noop fallback if the agent is not detected.

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

No branches or pull requests

2 participants