-
Notifications
You must be signed in to change notification settings - Fork 22
feat(flex-linux-setup): enable TLSv1.3 in java.security file #2621
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
Conversation
Signed-off-by: Mustafa Baser <mbaser@mail.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughAdds TLS 1.3-related configuration: new java.security template, three new flex_installer attributes, and a tls13_settings() method that copies the java.security file into Jetty's security directory and ensures a -Djava.security.properties entry in Jetty's server.ini; tls13_settings() is invoked during relevant install steps. Changes
Sequence Diagram(s)sequenceDiagram
participant GA as GluuAdminInstaller
participant CA as ConfigAPIInstaller
participant FI as flex_installer
participant FS as FileSystem/Jetty
GA->>FI: run post-install hooks
FI->>FS: copy templates/java.security -> ./etc/jetty/security/java.security
FI->>FS: ensure -Djava.security.properties entry in start.d/server.ini
CA->>FI: run post-install hooks
FI->>FS: (repeat) copy java.security and update server.ini
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
🤖 Fix all issues with AI agents
In `@flex-linux-setup/flex_linux_setup/flex_setup.py`:
- Line 677: The generated JVM property string in java_security_prop_line
currently inserts a space before and after '='; update the construction so there
are no spaces around '=', e.g. build java_security_prop_line by concatenating
java_security_prefix, the literal '=' and the path derived from
Path(self.java_security_dir).relative_to(self.config_api_base_dir).joinpath(os.path.basename(self.java_security_fn)).as_posix().
Ensure the change is applied where java_security_prop_line is defined so the
resulting token follows JVM syntax like
"-Djava.security.properties=./etc/jetty/security/java.security".
- Around line 686-690: The length check uses the wrong variable: change the
condition that currently checks len(ls) > 1 to check len(lsl) > 1 so we only
proceed when the split result (lsl) contains a key/value pair; update the branch
in the loop that sets config_api_server_ini_content_list[i] =
java_security_prop_line and write_fn = True (the block referencing lsl,
java_security_prefix, java_security_prop_line,
config_api_server_ini_content_list, and write_fn) to use len(lsl) > 1 instead of
len(ls).
- Line 681: The loop variable `l` in the statement `for i, l in
enumerate(config_api_server_ini_content_list[:])` is ambiguous; rename it to
`line` and update every usage of `l` inside that loop body to `line` (preserving
behavior), ensuring any references in methods or conditionals within the same
scope (e.g., string operations or replacements on the list element) are changed
as well so the code compiles and static analysis E741 is resolved.
In `@flex-linux-setup/flex_linux_setup/templates/java.security`:
- Around line 1-6: The jdk.tls.disabledAlgorithms property is malformed: remove
the blank line after the backslash so the continuation immediately follows the
previous backslash, correct the typo "HandshakeSigature" to
"HandshakeSignature", and delete the trailing "#" character so the value isn't
corrupted; ensure the continued lines for jdk.tls.disabledAlgorithms use a
backslash at the end of each continued line with no empty lines or stray
characters.
Signed-off-by: Mustafa Baser <mbaser@mail.com>
Signed-off-by: Mustafa Baser <mbaser@mail.com>
|



Closes #2619
Summary by CodeRabbit