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

Replace whitelist/blacklist terminology with allowlist/denylist #1116

Conversation

cainejette
Copy link
Contributor

@cainejette cainejette commented May 28, 2020

Description

Promoting inclusive terminology by replacing outdated terms with more sensitive equivalents.

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file

Closes #1102

Copy link
Member

@julienschmidt julienschmidt left a comment

Choose a reason for hiding this comment

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

I'm not convinced. These replacements seem a little weird.
I'm also not convinced that there is anything wrong with "blacklist" and "whitelist", just because they contain the words "black" and "white". Those are just colors after all and I don't think they have any racial origin.
Take "whitebox" and "blackbox" for example. One let's light through (white), the other not (black). That's probably a physical origin.
Wikipedia also doesn't mention anything about the term not being inclusive or anything like that. It does however mention "blocklist" as an alternative.

AUTHORS Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@cainejette
Copy link
Contributor Author

cainejette commented May 28, 2020

I'm also not convinced that there is anything wrong with "blacklist" and "whitelist", just because they contain the words "black" and "white". Those are just colors after all and I don't think they have any racial origin.

I've had this conversation several times at several different jobs. I've made my peace with it by acknowledging that while I myself may not attribute any unexpected connotations to these words, that speaks to my privilege and that others can and do. It is a simple enough thing for us to substitute alternatives and avoid the issue altogether.

@cainejette
Copy link
Contributor Author

cainejette commented May 28, 2020

For what it may be worth, I've filed a similar issue (and PR) against HashiCorp Consul: hashicorp/consul#7901, and they acknowledge that several of their products have intentionally moved away from this exact terminology but Consul has not, yet. (I filed issues against Consul and this repo because we use these two repos as dependencies in our own codebase).

@methane
Copy link
Member

methane commented May 29, 2020

Fortunately, we don't use the terminology in public APIs. This PR doesn't break backward compatibility and doesn't make inconsistency between code and document.

So I'm OK for this change if the document is clean and readable.

@julienschmidt julienschmidt merged commit d2e52fc into go-sql-driver:master May 29, 2020
timneutkens added a commit to timneutkens/next.js that referenced this pull request Jun 2, 2020
The variables for the launchEditor feature were kept consistent with Create React App so it's probably a good idea for them to change them too: https://github.com/facebook/create-react-app/search?q=WINDOWS_FILE_NAME_WHITELIST

Prior discussions on this topic:
- hashicorp/consul#7901
- styled-system/styled-system#391
- go-sql-driver/mysql#1116
- lagom/lagom#2532
- grafana/grafana#18841
kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Jun 2, 2020
@cainejette
Copy link
Contributor Author

Thanks, all!

rokinsky pushed a commit to rokinsky/next.js that referenced this pull request Jul 11, 2020
tz70s pushed a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
…ql-driver#1116)

* Replace whitelist/blacklist terminology with allowlist/denylist

* Add myself to AUTHORS

* PR feedback

* Denylist --> denied

* Update denied --> rejected
tz70s pushed a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
…ql-driver#1116)

* Replace whitelist/blacklist terminology with allowlist/denylist

* Add myself to AUTHORS

* PR feedback

* Denylist --> denied

* Update denied --> rejected
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.

Promote inclusive behavior by removing whitelist/blacklist terminology
3 participants