Skip to content

Commit

Permalink
Add email_ban_file to TS schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Jan 17, 2025
1 parent 1b69c61 commit a932a15
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/galaxy/config/sample/tool_shed.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,24 @@ tool_shed:
# <email_domain_blocklist_file> will be ignored.
#email_domain_allowlist_file: null

# E-mail ban file is used to specify email addresses that have been
# banned. If a user attempts to register a new account using an email
# address listed in this file, registration will be denied. This file
# does not affect user sign-in.
# Email addresses are matched against a canonical address
# representation based on the following set of rules. - Values are not
# case-sensitive ([email protected] == [email protected]) - Plus
# suffixes in the local-part of a Gmail account are ignored
# ([email protected] == [email protected]) - Periods
# in the local_part of a Gmail account are ignored
# ([email protected] == [email protected])
# The file should include one email address per line. Lines starting
# with the "#" character are ignored.
# Example value 'banned_emails.conf'
# The value of this option will be resolved with respect to
# <config_dir>.
#email_ban_file: null

# Append "/{brand}" to the "Galaxy" text in the masthead.
#brand: null

Expand Down
18 changes: 18 additions & 0 deletions lib/galaxy/config/schemas/tool_shed_config_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,24 @@ mapping:
therefore, in case <email_domain_allowlist_file> is set and is not empty,
<email_domain_blocklist_file> will be ignored.
email_ban_file:
type: str
path_resolves_to: config_dir
required: false
desc: |
E-mail ban file is used to specify email addresses that have been banned.
If a user attempts to register a new account using an email address listed in this file,
registration will be denied. This file does not affect user sign-in.
Email addresses are matched against a canonical address representation based on the following set of rules.
- Values are not case-sensitive ([email protected] == [email protected])
- Plus suffixes in the local-part of a Gmail account are ignored ([email protected] == [email protected])
- Periods in the local_part of a Gmail account are ignored ([email protected] == [email protected])
The file should include one email address per line. Lines starting with the "#" character are ignored.
Example value 'banned_emails.conf'
brand:
type: str
required: false
Expand Down

0 comments on commit a932a15

Please sign in to comment.