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

Change the "Blacklist / Whitelist" nomenclature #321

Closed
3 tasks
Tracked by #2589 ...
tlfeng opened this issue Mar 4, 2022 · 9 comments
Closed
3 tasks
Tracked by #2589 ...

Change the "Blacklist / Whitelist" nomenclature #321

tlfeng opened this issue Mar 4, 2022 · 9 comments
Labels
enhancement New feature or request v3.0.0

Comments

@tlfeng
Copy link

tlfeng commented Mar 4, 2022

Is your feature request related to a problem? Please describe.
OpenSearch repository is going to replace the terminology "blacklist / whitelist" with "denylist / allowlist".
issue: opensearch-project/OpenSearch#1483, with the plan for its terminology replacement.

Although the existing usages with "blacklist / whitelist" will be supported in OpenSearch version 2.x to keep the backwards compatibility, please prepare for the nomenclature change in advance.

Describe the solution you'd like

When being compatible with OpenSearch 3.0:

Describe alternatives you've considered
None.

Additional context

@tlfeng
Copy link
Author

tlfeng commented May 17, 2022

Update: All the reference of whitelist in the public Java API of OpenSearch has been changed to allowlist (in the commit opensearch-project/OpenSearch@8f8909f).
Please use the renamed classes from OpenSearch Java library, when being compatible with OpenSearch 3.0.

For example:
Rename the class names

import org.opensearch.painless.spi.Whitelist
import org.opensearch.painless.spi.WhitelistLoader

to

import org.opensearch.painless.spi.Allowlist
import org.opensearch.painless.spi.AllowlistLoader

@anasalkouz anasalkouz added v2.3.0 and removed v3.0.0 labels Aug 25, 2022
@anasalkouz
Copy link
Member

Java APIs completed and released on 2.2
Could you please complete the remaining part from your end? let's target 2.3 to remove all usages

@anasalkouz
Copy link
Member

@sbcd90 could you look into this?

@gaiksaya gaiksaya mentioned this issue Sep 14, 2022
22 tasks
@anasalkouz
Copy link
Member

@praveensameneni Could you confirm if there is any effort remaining for this? If yes, let's please target to finish it on 2.4. Otherwise, let's close the issue

@sbcd90
Copy link
Collaborator

sbcd90 commented Sep 19, 2022

hi @anasalkouz , i looked into this issue. Looks like, we dont have the alternate apis allowLists available in 2.x.
opensearch-project/OpenSearch#4101 (comment)
opensearch-project/OpenSearch#1683 (comment)

i saw in the opensearch-core codebase, changes are only available in main branch & it looks like its a breaking change.

@tlfeng
Copy link
Author

tlfeng commented Sep 19, 2022

@sbcd90 alerting repository has done with all changes required for 2.x release, and the remaining effort will be tracked in separate issue as part of 3.0. Thank you!

The remaining effort stands for the following Java APIs

Map<ScriptContext<?>, List<Whitelist>> getContextWhitelists()
 -> Map<ScriptContext<?>, List<Allowlist>> getContextAllowlists()

org.opensearch.painless.spi.Whitelist -> Allowlist
org.opensearch.painless.spi.WhitelistLoader -> AllowlistLoader

@sbcd90
Copy link
Collaborator

sbcd90 commented Sep 19, 2022

thanks a lot @tlfeng .

@tlfeng
Copy link
Author

tlfeng commented Sep 19, 2022

Probably you can change the label for this issue to v3.0.0, instead of me creating a new separate issue.

@sbcd90 sbcd90 added v3.0.0 and removed v2.3.0 labels Sep 19, 2022
@sbcd90
Copy link
Collaborator

sbcd90 commented Sep 19, 2022

@tlfeng ok done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3.0.0
Projects
None yet
Development

No branches or pull requests

4 participants