Skip to content
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

Configure 'sec.protbind' for public origins #907

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions param/parameters_struct.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions xrootd/resources/xrootd-origin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ xrd.tlsca certfile {{.Server.TLSCACertificateFile}}
{{if eq .Origin.EnableDirListing false}}
http.listingdeny true
{{end}}
{{if eq .Origin.EnablePublicReads true}}
sec.protbind * none
{{end}}
{{if .Origin.EnableMacaroons}}
http.exthandler xrdmacaroons libXrdMacaroons.so
macaroons.secretkey {{.Xrootd.MacaroonsKeyFile}}
Expand Down
35 changes: 18 additions & 17 deletions xrootd/xrootd_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,24 @@ enable = true

type (
OriginConfig struct {
Multiuser bool
EnableCmsd bool
EnableMacaroons bool
EnableVoms bool
EnableDirListing bool
SelfTest bool
CalculatedPort string
NamespacePrefix string
RunLocation string
Mode string
S3Bucket string
S3Region string
S3ServiceName string
S3ServiceUrl string
S3AccessKeyfile string
S3SecretKeyfile string
S3UrlStyle string
Multiuser bool
EnableCmsd bool
EnableMacaroons bool
EnableVoms bool
EnablePublicReads bool
EnableDirListing bool
SelfTest bool
CalculatedPort string
NamespacePrefix string
RunLocation string
Mode string
S3Bucket string
S3Region string
S3ServiceName string
S3ServiceUrl string
S3AccessKeyfile string
S3SecretKeyfile string
S3UrlStyle string
}

CacheConfig struct {
Expand Down
Loading