Skip to content

feat(cli): deprecate KAS URL path flag - #4201

Merged
elizabethhealy merged 1 commit into
mainfrom
chore/dspx-4803-remove-kas-url-path
Oct 9, 2026
Merged

elizabethhealy merged 1 commit into
mainfrom
chore/dspx-4803-remove-kas-url-path

Conversation

@elizabethhealy

@elizabethhealy elizabethhealy commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Summary

  • deprecate --kas-url-path while preserving its current default and behavior
  • direct users toward platform KAS grants and well-known base-key discovery
  • document and test the deprecation metadata

Testing

  • cd otdfctl && go test ./... -race
  • changed-code lint: 0 issues

@elizabethhealy
elizabethhealy requested a review from a team as a code owner October 8, 2026 18:50
@github-actions github-actions Bot added the size/s label Oct 8, 2026
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 12fb131a-0581-42cf-99a9-64d70f9c9928
📥 Commits

Reviewing files that changed from the base of the PR and between 76d2cb8 and c25debd.

📒 Files selected for processing (3)
  • otdfctl/cmd/tdf/encrypt.go
  • otdfctl/cmd/tdf/encrypt_test.go
  • otdfctl/docs/man/encrypt/_index.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The encrypt command retains the kas-url-path flag and marks it deprecated, with a notice directing users to platform KAS grants and well-known base-key discovery. A test checks the flag’s default and deprecation notice. The manual page now documents the deprecation.

Changes

Encrypt KAS URL path deprecation

Layer / File(s) Summary
Deprecate the KAS URL path flag
otdfctl/cmd/tdf/encrypt.go, otdfctl/cmd/tdf/encrypt_test.go, otdfctl/docs/man/encrypt/_index.md
The flag remains registered with its /kas default and gains a deprecation notice. Initialization panics if registering the deprecation fails. The test checks the flag, default, and notice; the manual page documents the deprecation.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Suggested reviewers: alkalescent

Merge Risk: ⚪ Minimal · up to c25de

The flag remains functional during deprecation. The supplied context does not establish a concrete failure that should block merging.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: deprecation of the kas-url-path CLI flag.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

A rabbit reads the flag’s new note
And finds the old path in its coat
“Use grants,” it says, “and base keys bright”
Then hops through fields of code tonight
The manual joins the trail just right

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

Signed-off-by: Elizabeth Healy <ehealy@virtru.com>
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 431.803399ms
Throughput 231.59 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 47.419502594s
Average Latency 473.073268ms
Throughput 105.44 requests/second

@elizabethhealy
elizabethhealy force-pushed the chore/dspx-4803-remove-kas-url-path branch from 76d2cb8 to c25debd Compare October 8, 2026 18:56
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 423.951784ms
Throughput 235.88 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 48.610222539s
Average Latency 485.02717ms
Throughput 102.86 requests/second

@elizabethhealy elizabethhealy changed the title chore(otdfctl): remove KAS URL path flag chore(otdfctl): deprecate KAS URL path flag Oct 8, 2026
@elizabethhealy
elizabethhealy deleted the chore/dspx-4803-remove-kas-url-path branch October 8, 2026 19:05
@elizabethhealy
elizabethhealy restored the chore/dspx-4803-remove-kas-url-path branch October 8, 2026 19:10
@elizabethhealy elizabethhealy reopened this Oct 8, 2026
@github-actions github-actions Bot added size/xs and removed size/s labels Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor
Benchmark results, click to expand

Bulk Benchmark Results

Metric Value
Total Decrypts 100
Successful Decrypts 100
Failed Decrypts 0
Total Time 343.050657ms
Throughput 291.50 requests/second

TDF3 Benchmark Results

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 34.615492534s
Average Latency 345.257314ms
Throughput 144.44 requests/second

@github-actions

github-actions Bot commented Oct 8, 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.

@elizabethhealy elizabethhealy changed the title chore(otdfctl): deprecate KAS URL path flag feat(cli): deprecate KAS URL path flag Oct 8, 2026

@c-r33d c-r33d 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.

Just to make sure i understand, this previously set the path of the url so:

path="/kas/1", host="https://example.com".
KAS URL->"https://example.com/kas/1|

Or would it set the entire host?

@elizabethhealy

elizabethhealy commented Oct 8, 2026 •

Copy link
Copy Markdown
Member Author

Just to make sure i understand, this previously set the path of the url so:

path="/kas/1", host="https://example.com". KAS URL->"https://example.com/kas/1|

Or would it set the entire host?

@c-r33d ya it would get concatenated with the host so otdfctl encrypt --host https;//example.com --kas-url-path "/my-special-kas" would use the kas at https://example.com/my-special-kas , but we should be using the kas-registry instead

if this is useful for testing, we could eventually remove it from the docs and keep it hidden as a dev only command

@elizabethhealy
elizabethhealy added this pull request to the merge queue Oct 9, 2026
Merged via the queue into main with commit af6b1f8 Oct 9, 2026
91 of 97 checks passed
@elizabethhealy
elizabethhealy deleted the chore/dspx-4803-remove-kas-url-path branch October 9, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants