-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Disable the sys/raw
endpoint by default
#3329
Conversation
I love everything about it except the name. "raw" seems too vague. Maybe "raw_storage_access"? Otherwise LGTM. |
I came up with |
vault/logical_system.go
Outdated
@@ -854,7 +854,7 @@ func NewSystemBackend(core *Core) *SystemBackend { | |||
|
|||
if core.rawEnabled { | |||
b.Backend.Paths = append(b.Backend.Paths, &framework.Path{ | |||
Pattern: "raw/(?P<path>.+)", | |||
Pattern: "(raw/?$|raw/(?P<path>.+))", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh fancy
Considering the highly sensitive nature of this endpoint and the infrequent usage, disable this endpoint by default and add a config option to enable it.