-
Notifications
You must be signed in to change notification settings - Fork 77
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
add realm option for e.g. Password encryption #117
base: master
Are you sure you want to change the base?
add realm option for e.g. Password encryption #117
Conversation
add realm option for e.g. Password encryption
Best reviewed: commit by commit
Optimal code review plan
|
@preussal Apologies for the delay, we don't have many reviewers at the current time. My work on this formula has been primarily structural and tests, so let's try to get someone who actually uses this formula. Otherwise, please ping me again if you don't get any response and I'll try to find time to review this. @danny-smit, you contributed to this formula not so long ago. Would you be able to look over this PR and give your feedback? |
I'm not very familiar with the realm settings of tomcat myself, so I'll have to assume that it works as advertised. However looking over it, i noticed the following:
|
@danny-smit Appreciate the detailed review, nice work! |
Yes it looks like XML but is the config for authentication
config in nice without unnecessary line breaks
Pillar
config in nice without unnecessary line breaks
the double realm will that is that is that that is no alternative is a sub-realm.
if I look at it that way, a for loop must even be built in for the sub-realms. |
That is fine, I can live with that. Are you using the same pillar data as the pillar.example in this pull request? Or did you make changes already? Currently pillar.example holds: tomcat:
connectors:
realm:
... However tomcat/config.sls is using: - text: {{ tomcat.realm }} That doesn't match and causes the tests to fail. Un-indenting the top-level 'realm' in pillar.example with two spaces should fix that. I meant to point out that there currently are two top-level realm keys in pillar.example. The sub-realms seemed to be fine so far: realm: # <-- first realm key
"org.apache.catalina.realm.LockOutRealm":
name: "org.apache.catalina.realm.LockOutRealm"
realm:
...
realm: # <-- duplicate realm key, resulting in failures rendering the sls
... That's basically a yaml syntax error, which results in failures of rendering the sls. I'm not sure if I understand you remark about another for-loop for sub-realms, because there seems to be a for-loop handling that already. |
add realm option for e.g. Password encryption
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
Describe the changes you're proposing
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context