Skip to content

fix(kas): DSPX-4607 use snake_case slog key in rewrap test fake - #3970

Open
dmihalcik-virtru wants to merge 1 commit into
mainfrom
fix/lint-kas-sloglint
Open

fix(kas): DSPX-4607 use snake_case slog key in rewrap test fake#3970
dmihalcik-virtru wants to merge 1 commit into
mainfrom
fix/lint-kas-sloglint

Conversation

@dmihalcik-virtru

@dmihalcik-virtru dmihalcik-virtru commented Sep 3, 2026

Copy link
Copy Markdown
Member

Part of the DSPX-4607 lint burndown, following the golangci-lint v2.13.2 bump (#3965, merged). Branched from main, independent of the other burndown PRs.

What

golangci-lint v2.13.2 enforces sloglint's key-naming-case: snake, which was configured but not previously reachable. service/kas has exactly one violation:

service/kas/access/rewrap_test.go:79:15: keys should be written in snake_case (sloglint)

"Indexer""indexer" on the fakeKeyIndex.LogValue group. Test-only fake, no emitted-log contract.

The identical pattern in service/trust/delegating_key_service_test.go:67 is renamed the same way in the service core PR — different CODEOWNER group, so it can't ride along here.

Testing

$ cd service && golangci-lint run -c ../.golangci.yaml ./kas/...
0 issues.
$ go test ./kas/...
ok  	github.com/opentdf/platform/service/kas		0.511s
ok  	github.com/opentdf/platform/service/kas/access	0.761s

DSPX-4607 burndown index

@dmihalcik-virtru
dmihalcik-virtru requested review from a team as code owners September 3, 2026 19:50
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Team

Run ID: d1a7d53b-eff6-4010-ba53-ace24c1038fb

📥 Commits

Reviewing files that changed from the base of the PR and between d5933ed and 50230b1.

📒 Files selected for processing (1)
  • service/kas/access/rewrap_test.go

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added comp:kas Key Access Server size/xs labels Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Benchmark authorization.GetDecisions Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 239.685912ms

Benchmark authorization.v2.GetMultiResourceDecision Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 122.443299ms

Benchmark Statistics

Name № Requests Avg Duration Min Duration Max Duration

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 451.967901ms
Throughput 221.25 requests/second

TDF3 Benchmark Results:

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 56.954384938s
Average Latency 568.211321ms
Throughput 87.79 requests/second

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Benchmark authorization.GetDecisions Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 192.538866ms

Benchmark authorization.v2.GetMultiResourceDecision Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 102.294874ms

Benchmark Statistics

Name № Requests Avg Duration Min Duration Max Duration

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 559.716521ms
Throughput 178.66 requests/second

TDF3 Benchmark Results:

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 48.308717874s
Average Latency 481.975531ms
Throughput 103.50 requests/second

golangci-lint v2.13.2 enforces sloglint's key-naming-case: snake. Rename the
one offending key on the fakeKeyIndex LogValue.

Signed-off-by: Dave Mihalcik <dmihalcik@virtru.com>
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Benchmark authorization.GetDecisions Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 227.405981ms

Benchmark authorization.v2.GetMultiResourceDecision Results:

Metric Value
Approved Decision Requests 1000
Denied Decision Requests 0
Total Time 129.693067ms

Benchmark Statistics

Name № Requests Avg Duration Min Duration Max Duration

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 441.024637ms
Throughput 226.74 requests/second

TDF3 Benchmark Results:

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 59.533660526s
Average Latency 593.070818ms
Throughput 83.99 requests/second

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

⚠️ Govulncheck found vulnerabilities ⚠️

The following modules have known vulnerabilities:

  • otdfctl
  • service
  • tests-bdd

See the workflow run for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:kas Key Access Server size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant