-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[Kerberos] Move tests based on SimpleKdc to evil-tests #33492
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
[Kerberos] Move tests based on SimpleKdc to evil-tests #33492
Conversation
We have a test dependency on Apache Mina when using SimpleKdcServer for testing Kerberos. When checking for ldap backend connectivity, the code checks for deadlocks which require additional security permissions `accessClassInPackage.sun.reflect`. As this is only for test and we do not want to add security permissions to production, this commit moves these tests and related classes to x-pack evil-tests where they can run with security manager disabled. The plan is to handle the security manager exception in the upstream and then once the release is available run these tests with security manager enabled. Closes#32739
Pinging @elastic/es-security |
Has an issue / patch been raised for this yet? Also it looks like there are unused imports that need to be addressed. |
Thanks, @jaymode, updated the PR with information of issue created Apache Mina (DIRMINA-1093). Addressed the ci failure. |
Looks like they are requesting a patch; can you please make sure to get that for them? |
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.
LGTM
We have a test dependency on Apache Mina when using SimpleKdcServer for testing Kerberos. When checking for LDAP backend connectivity, the code checks for deadlocks which require additional security permissions accessClassInPackage.sun.reflect. As this is only for test and we do not want to add security permissions to production, this commit moves these tests and related classes to x-pack evil-tests where they can run with security manager disabled. The plan is to handle the security manager exception in the upstream issue DIRMINA-1093 and then once the release is available to run these tests with security manager enabled. Closes elastic#32739
We have a test dependency on Apache Mina when using SimpleKdcServer for testing Kerberos. When checking for LDAP backend connectivity, the code checks for deadlocks which require additional security permissions accessClassInPackage.sun.reflect. As this is only for test and we do not want to add security permissions to production, this commit moves these tests and related classes to x-pack evil-tests where they can run with security manager disabled. The plan is to handle the security manager exception in the upstream issue DIRMINA-1093 and then once the release is available to run these tests with security manager enabled. Closes #32739
We have a test dependency on Apache Mina when using SimpleKdcServer
for testing Kerberos. When checking for LDAP backend connectivity,
the code checks for deadlocks which require additional security
permissions
accessClassInPackage.sun.reflect
. As this is only fortest and we do not want to add security permissions to production,
this commit moves these tests and related classes to
x-pack evil-tests where they can run with security manager disabled.
The plan is to handle the security manager exception in the upstream issue
DIRMINA-1093
and then once the release is available to run these tests with security
manager enabled.
Closes #32739