-
Notifications
You must be signed in to change notification settings - Fork 19
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
fixes #85 Preserve data types in galaxy-server.secret.yaml.j2 #98
Conversation
Switched to Draft after second-guessing myself. For LDAP, there is a need to inject code like e.g. pulp_settings:
b_custom: none; from django_auth_ldap.config import *; #() becomes I'm not sure if this a real security concern, or what could be done better. I'm going to poke around AWX-Operator to see how those get injected since it "just works" for me over there. |
Looks like they're not doing anything fancy, but they're only adding extra_settings to a much larger template. @rooftopcellist Thoughts? |
@Denney-tech |
That is part of the solution, yes. There should also be an optional ldap secret that contains the bind password. I'm going to bed soon, so I will look around more tomorrow. |
@rooftopcellist this should work exactly the same as awx-operator, and should close #85. I'm working on a new PR to address LDAP, and would like to discuss it a bit over on the forum. |
@rooftopcellist I've edited the original post with another diff output. The first diff is what the PR originally did, which more closely emulates the pulp-operator, and the second diff is the current state which emulates the awx-operator instead. Personally I would like to lean towards the awx-operator, but either way we need to add documentation/examples that reflects how pulp_settings should be used with the galaxy-operator (at least until the parameter is removed/ignored). |
Muddied the water a bit in my fork, so I'm closing these PR's while I cleanup. |
SUMMARY
Should fix #85. Since we're injecting into a Python file, we don't necessarily want all values to become strings or other json types. Partially fixes #96 for group types.
ADDITIONAL INFORMATION
Tested on ansible 2.14.9, python 3.9.18, jinja 3.1.2, with ANSIBLE_JINJA2_NATIVE set to true and false.
Results before/after change.