Skip to content

Commit 5455303

Browse files
committed
Updates sample config with sensitive auth headers
Adds common authentication-related headers (Authorization, X-Auth-Token, X-API-Key) to the default sensitive list for HTTPS URLs in the sample configuration. This provides a more secure default example for users, preventing accidental exposure of sensitive credentials. Includes a new comment advising users to only employ the minimum necessary configuration for their specific needs, reinforcing security best practices.
1 parent 70dcc03 commit 5455303

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/galaxy/config/sample/url_headers_conf.yml.sample

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
# Security: If ANY matching pattern marks a header as sensitive, it will be
2727
# treated as sensitive (secure-by-default).
2828
#
29+
# The following examples are for illustration purposes only; please use only the minimum configuration for your needs.
2930
# Examples:
3031

3132
patterns:
@@ -90,6 +91,12 @@ patterns:
9091
# HTTPS URLs - basic headers only (most restrictive for unknown sources)
9192
- url_pattern: "^https://.*"
9293
headers:
94+
- name: Authorization
95+
sensitive: true
96+
- name: X-Auth-Token
97+
sensitive: true
98+
- name: X-API-Key
99+
sensitive: true
93100
- name: Accept
94101
sensitive: false
95102
- name: Accept-Language

0 commit comments

Comments
 (0)