Update configmap-conf-toml.yaml

This commit is contained in:
cunningpike 2023-01-21 21:55:37 -05:00 committed by GitHub
parent 7c6cfebf30
commit 1afd1265de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 67 deletions

View File

@ -5,70 +5,42 @@ metadata:
labels: labels:
{{- include "fediblockhole.labels" . | nindent 4 }} {{- include "fediblockhole.labels" . | nindent 4 }}
data: data:
# List of instances to read blocklists from. {{- with .Values.fediblockhole.blocklist_instance_sources }}
# If the instance makes its blocklist public, no authorization token is needed. blocklist_instance_sources: {{ . }}
# Otherwise, `token` is a Bearer token authorised to read domain_blocks. {{- end }}
# If `admin` = True, use the more detailed admin API, which requires a token with a {{- with .Values.fediblockhole.blocklist_url_sources }}
# higher level of authorization. blocklist_url_sources: {{ . }}
# If `import_fields` are provided, only import these fields from the instance. {{- end }}
# Overrides the global `import_fields` setting. {{- with .Values.fediblockhole.allowlist_url_sources }}
blocklist_instance_sources = [ allowlist_url_sources: {{ . }}
# { domain = 'public.blocklist'}, # an instance with a public list of domain_blocks {{- end }}
# { domain = 'jorts.horse', token = '<a_different_token>' }, # user accessible block list {{- with .Values.fediblockhole.blocklist_instance_destinations }}
# { domain = 'eigenmagic.net', token = '<a_token_with_read_auth>', admin = true }, # admin access required blocklist_instance_destinations: {{ . }}
] {{- end }}
{{- with .Values.fediblockhole.save_intermediate }}
# List of URLs to read csv blocklists from save_intermediate: {{ . }}
# Format tells the parser which format to use when parsing the blocklist {{- end }}
# max_severity tells the parser to override any severities that are higher than this value {{- with .Values.fediblockhole.savedir }}
# import_fields tells the parser to only import that set of fields from a specific source savedir: {{ . }}
blocklist_url_sources = [ {{- end }}
# { url = 'file:///path/to/fediblockhole/samples/demo-blocklist-01.csv', format = 'csv' }, {{- with .Values.fediblockhole.blocklist_savefile }}
{ url = 'https://raw.githubusercontent.com/eigenmagic/fediblockhole/main/samples/demo-blocklist-01.csv', format = 'csv' }, blocklist_savefile: {{ . }}
{{- end }}
] {{- with .Values.fediblockhole.no_push_instance }}
no_push_instance: {{ . }}
## These global allowlists override blocks from blocklists {{- end }}
# These are the same format and structure as blocklists, but they take precedence {{- with .Values.fediblockhole.no_fetch_url }}
allowlist_url_sources = [ no_fetch_url: {{ . }}
{ url = 'https://raw.githubusercontent.com/eigenmagic/fediblockhole/main/samples/demo-allowlist-01.csv', format = 'csv' }, {{- end }}
{ url = 'https://raw.githubusercontent.com/eigenmagic/fediblockhole/main/samples/demo-allowlist-02.csv', format = 'csv' }, {{- with .Values.fediblockhole.no_fetch_instance }}
] no_fetch_instance: {{ . }}
{{- end }}
# List of instances to write blocklist to {{- with .Values.fediblockhole.mergplan }}
blocklist_instance_destinations = [ mergeplan: {{ . }}
# { domain = 'eigenmagic.net', token = '<read_write_token>', max_followed_severity = 'silence'}, {{- end }}
] {{- with .Values.fediblockhole.import_fields }}
import_fields: {{ . }}
## Store a local copy of the remote blocklists after we fetch them {{- end }}
#save_intermediate = true {{- with .Values.fediblockhole.export_fields }}
export_fields: {{ . }}
## Directory to store the local blocklist copies {{- end }}
# savedir = '/tmp'
## File to save the fully merged blocklist into
# blocklist_savefile = '/tmp/merged_blocklist.csv'
## Don't push blocklist to instances, even if they're defined above
# no_push_instance = false
## Don't fetch blocklists from URLs, even if they're defined above
# no_fetch_url = false
## Don't fetch blocklists from instances, even if they're defined above
# no_fetch_instance = false
## Set the mergeplan to use when dealing with overlaps between blocklists
# The default 'max' mergeplan will use the harshest severity block found for a domain.
# The 'min' mergeplan will use the lightest severity block found for a domain.
# mergeplan = 'max'
## Set which fields we import
## 'domain' and 'severity' are always imported, these are additional
##
import_fields = ['public_comment', 'reject_media', 'reject_reports', 'obfuscate']
## Set which fields we export
## 'domain' and 'severity' are always exported, these are additional
##
export_fields = ['public_comment']