Skip to content

IGNITE-18850 Add ssl configuration validation - #1738

Merged
PakhomovAlexander merged 6 commits into
apache:mainfrom
unisonteam:IGNITE-18850
Mar 6, 2023
Merged

IGNITE-18850 Add ssl configuration validation#1738
PakhomovAlexander merged 6 commits into
apache:mainfrom
unisonteam:IGNITE-18850

Conversation

@valepakh

@valepakh valepakh commented Mar 1, 2023

Copy link
Copy Markdown
Contributor

@PakhomovAlexander PakhomovAlexander left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have you tested the patch manually or with integration tests?

@Test
public void emptyTrustStorePath(@TempDir Path tmpDir) throws IOException {
validate(createTrustStoreConfig(tmpDir, "PKCS12", "", "changeIt"),
"Key store path must not be blank");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it is better to print trust store in those cases, not key store.

@valepakh

valepakh commented Mar 2, 2023

Copy link
Copy Markdown
Contributor Author

Have you tested the patch manually or with integration tests?

Not sure what do you mean, integration tests were run during the check.

valepakh added 2 commits March 2, 2023 15:06
# Conflicts:
#	modules/rest/src/main/java/org/apache/ignite/internal/rest/RestComponent.java
#	modules/rest/src/test/java/org/apache/ignite/internal/rest/RestComponentTest.java

@PakhomovAlexander PakhomovAlexander left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

valepakh added 2 commits March 6, 2023 12:02
# Conflicts:
#	modules/rest/src/main/java/org/apache/ignite/internal/rest/RestComponent.java
*/
public class SslConfigurationValidatorImpl implements Validator<SslConfigurationValidator, SslView> {

public static final SslConfigurationValidatorImpl INSTANCE = new SslConfigurationValidatorImpl();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I never understood, why do we need a static instance. I understand that you just replicated the approach, but nonetheless, I'm curious

@PakhomovAlexander
PakhomovAlexander merged commit 8875dc4 into apache:main Mar 6, 2023
@valepakh
valepakh deleted the IGNITE-18850 branch March 6, 2023 11:57
maxzhuravkov pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Mar 18, 2023
maxzhuravkov pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Apr 19, 2023
isapego pushed a commit to isapego/ignite-3 that referenced this pull request Feb 4, 2025
Bumps org.gridgain:gridgain-core from 8.9.15 to 8.9.17.

---
updated-dependencies:
- dependency-name: org.gridgain:gridgain-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: Aleksandr Polovtsev <alex.polovtcev@gmail.com>
Co-authored-by: Aleksandr Polovtsev <alex.polovtcev@gmail.com>
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.

3 participants