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

Loading DataFed Authz config file into Authz module - through env variable #870

Open
JoshuaSBrown opened this issue Dec 28, 2022 · 0 comments

Comments

@JoshuaSBrown
Copy link
Collaborator

JoshuaSBrown commented Dec 28, 2022

Description

The DataFed authz module relies on a few configuration settings which are defined in a datafed-authz.conf file. There are two ways that the authz module can know where to look for the DataFed Authz config file.

  1. Hard code it in the authz module as file path and place the path in a standard location
  2. Load it into an env variable
  3. When building the authz config module, use C++ Define statements to insert the configuration in directly.

Approach 1

Using a hard coded file path, this is brittle because it doesn't allow admins to change the location.
This is what is shown in the devel branch if no env variable is set. https://github.com/ORNL/DataFed/blob/devel/repository/gridftp/globus5/authz/AuthzWorker.cpp

Approach 2

Loading it into the gridftp service, requires editing the gridFTP service file and setting an env variable that points to the location of the authz config file.

Approach 3

Changing configuration would require rebuilding the C++ code from source.

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

No branches or pull requests

1 participant