Skip to content

[Feature][Registry][WIP] Connecting to the ZooKeeper with SSL&ACL#16271

Closed
pegasas wants to merge 1 commit intoapache:devfrom
pegasas:issues/16258
Closed

[Feature][Registry][WIP] Connecting to the ZooKeeper with SSL&ACL#16271
pegasas wants to merge 1 commit intoapache:devfrom
pegasas:issues/16258

Conversation

@pegasas
Copy link
Copy Markdown
Contributor

@pegasas pegasas commented Jul 4, 2024

Purpose of the pull request

fix: Feature

Brief change log

add x509 authinfo for zk registry

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jul 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
48.8% Coverage on New Code (required ≥ 60%)

See analysis details on SonarCloud

Copy link
Copy Markdown
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

Please follow the pull-request notice. And add some docs and UT to it.


final String x509SubjectPrincipal = properties.getX509SubjectPrincipal();
if (!Strings.isNullOrEmpty(x509SubjectPrincipal)) {
builder.authorization("x509", digest.getBytes(StandardCharsets.UTF_8))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should extract x509 to Constans.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's better to add an authorization property and use the key/value provided by users

authorization:
   key: value

@SbloodyS SbloodyS added this to the 3.3.0 milestone Jul 4, 2024
@SbloodyS SbloodyS added the improvement make more easy to user or prompt friendly label Jul 4, 2024
@github-actions github-actions Bot added the test label Jul 4, 2024
@pegasas pegasas marked this pull request as draft July 4, 2024 09:57
@pegasas pegasas changed the title [Feature][Registry] Connecting to the ZooKeeper with SSL&ACL [Feature][Registry][WIP] Connecting to the ZooKeeper with SSL&ACL Jul 4, 2024
@SbloodyS SbloodyS removed this from the 3.3.0 milestone Sep 5, 2024
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 4, 2025

This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.

@github-actions github-actions Bot added the Stale label Jan 4, 2025
@github-actions
Copy link
Copy Markdown

This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.

@github-actions github-actions Bot closed this Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend document improvement make more easy to user or prompt friendly Stale test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants