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

Conversation

jhiemstrawisc
Copy link
Member

Legacy caches won't work with public pelican origins without the ability to fallback to xroot protocol. This adds sec.protbind * none to the origin config if the origin is run with Origin.EnablePublicReads: true. Note that when we have multi-exports origins configured from #858, we'll have to handle this more carefully.

So that the reviewer doesn't have to hunt, the addition to the struct in xrootd/xrootd_config is EnablePublicReads. I had to adjust spacing to make the linter happy, and it buried the change.

To test, try running an origin with Origin.EnablePublicReads set to true and then to false. You should see the sec.protbind * none line appear in the xrootd config for public, and be absent for non-public.

Copy link
Collaborator

@bbockelm bbockelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Please backport so we can get this out to the OSDF quickly.

@jhiemstrawisc jhiemstrawisc merged commit 80602d4 into PelicanPlatform:main Mar 7, 2024
18 checks passed
@bbockelm bbockelm linked an issue Mar 24, 2024 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Public origins need sec.protbind * none for legacy compat
2 participants