Improve data security by mandating token search
This commit is contained in:
@@ -16,6 +16,45 @@ OPENSEARCH_MAIN_WILDCARD_ANON = False
|
||||
OPENSEARCH_MAIN_SOURCES = ["irc", "dis", "all"]
|
||||
DRILLDOWN_RESULTS_PER_PAGE = 15
|
||||
|
||||
# Encryption
|
||||
ENCRYPTION = False
|
||||
ENCRYPTION_KEY = b""
|
||||
|
||||
# Hashing
|
||||
HASHING = True
|
||||
HASHING_KEY = "xxx"
|
||||
|
||||
# Common to encryption and hashing
|
||||
WHITELIST_FIELDS = [
|
||||
"ts",
|
||||
"date",
|
||||
"time",
|
||||
"sentiment",
|
||||
"version_sentiment",
|
||||
"tokens",
|
||||
"num_chans",
|
||||
"num_users",
|
||||
"tokens",
|
||||
"src",
|
||||
"exemption",
|
||||
"hidden",
|
||||
]
|
||||
|
||||
# Don't obfuscate these parameters, or lookup hashes in them
|
||||
NO_OBFUSCATE_PARAMS = [
|
||||
"query",
|
||||
"query_full",
|
||||
"size",
|
||||
"source",
|
||||
"sorting",
|
||||
"tags",
|
||||
"index",
|
||||
"dedup",
|
||||
"check_sentiment",
|
||||
"sentiment_method",
|
||||
"dates",
|
||||
]
|
||||
|
||||
OPENSEARCH_BLACKLISTED = {}
|
||||
|
||||
# URLs
|
||||
|
||||
Reference in New Issue
Block a user