Skip to content

CASL-1939 improve authorization checks - #669

Merged
kacper-kozera merged 4 commits into
v3from
v3_CASL-1939
Sep 28, 2026
Merged

kacper-kozera merged 4 commits into
v3from
v3_CASL-1939

Conversation

@kacper-kozera

Copy link
Copy Markdown

No description provided.

@Marcin-Here Marcin-Here 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.

  1. Build fails, not all test passes let's fix that first
  2. Let's take a look at original ticket I think not all changes from both v2 PRs were ported
  3. Also on GitHub PR's we need to add DCO (which is also checked) https://github.com/apps/dco
  • Let's fix above issues before continue with review.

Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Overall Project 60.62% 🍏
Files changed 92.47% 🍏

File Coverage
AuthorizationEventHandler.java 97.94% -2.06% 🍏
NakshaHub.java 38.46% -0.56% 🍏

@github-actions

Copy link
Copy Markdown

Code Coverage

Overall Project 60.62% 🍏
Files changed 92.47% 🍏

File Coverage
AuthorizationEventHandler.java 97.94% -2.06% 🍏
NakshaHub.java 38.46% -0.56% 🍏

"description": "Storage payload for write authorization negative test",
"className": "naksha.psql.PsqlStorage",
"properties": {
"dbConfig": {

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.

In v3 correct from for connection would be top level master:{"host":...., "db":... } not properties.dbConfig

"description": "PSQL storage instance for testing purpose - PUT auth denial",
"className": "naksha.psql.PsqlStorage",
"properties": {
"dbConfig": {

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.

In v3 correct from for connection would be top level master:{"host":...., "db":... } not properties.dbConfig

package com.here.naksha.lib.handlers;

import static com.here.naksha.lib.handlers.AbstractEventHandler.EventProcessingStrategy.SEND_UPSTREAM_WITHOUT_PROCESSING;
import static com.here.naksha.lib.handlers.AbstractEventHandler.EventProcessingStrategy.*;

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.

As discussed before, we should avoid * imports.

Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Overall Project 60.62% 🍏
Files changed 92.47% 🍏

File Coverage
AuthorizationEventHandler.java 97.94% -2.06% 🍏
NakshaHub.java 38.46% -0.56% 🍏

Signed-off-by: Kacper Kozera <kacper.kozera@here.com>
@github-actions

Copy link
Copy Markdown

Code Coverage

Overall Project 60.61% 🍏
Files changed 92.47% 🍏

File Coverage
AuthorizationEventHandler.java 97.94% -2.06% 🍏
NakshaHub.java 38.46% -0.56% 🍏

@kacper-kozera
kacper-kozera merged commit 7ed66f8 into v3 Sep 28, 2026
3 checks passed
@kacper-kozera
kacper-kozera deleted the v3_CASL-1939 branch September 28, 2026 11:41
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.

2 participants