Skip to content

📝 CodeRabbit Chat: Implement requested code changes#3596

Open
coderabbitai[bot] wants to merge 6 commits into
mainfrom
coderabbitai/chat/a8fa30f
Open

📝 CodeRabbit Chat: Implement requested code changes#3596
coderabbitai[bot] wants to merge 6 commits into
mainfrom
coderabbitai/chat/a8fa30f

Conversation

@coderabbitai

@coderabbitai coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Code changes was requested by @alkalescent.

The following files were modified:

  • service/policy/resourcemapping/resource_mapping_test.go

alkalescent and others added 6 commits June 9, 2026 16:25
Add an optional owning namespace to resource mappings, mirroring the
namespacing already present on registered resources:

- ResourceMapping gains a hydrated policy.Namespace field.
- Create/UpdateResourceMappingRequest gain optional namespace_id and
  namespace_fqn.
- ListResourceMappingsRequest gains optional namespace_id/namespace_fqn
  filters; ListResourceMappingGroupsRequest gains namespace_fqn parity.

Regenerated protocol/go, OpenAPI/gRPC docs, and SDK wrappers. Adds proto
validation unit tests for the new fields.

Signed-off-by: Krish Suchak <suchak.krish@gmail.com>
Address review feedback on the resource mapping protos:

- Switch namespace_id/namespace_fqn validation to the house
  buf.validate.message.oneof + string.uuid/string.uri pattern (matching
  subject_mapping/registered_resources), making the two mutually exclusive.
- Add namespace_fqn to CreateResourceMappingGroupRequest (oneof required) and
  UpdateResourceMappingGroupRequest (oneof optional).
- Regenerate protocol/go + docs; update/extend proto validation unit tests.

Signed-off-by: Krish Suchak <suchak.krish@gmail.com>
Cover the invalid-UUID path for namespace_id on CreateResourceMappingGroup
validation, and invalid namespace_id/namespace_fqn on UpdateResourceMappingGroup,
per review feedback.

Signed-off-by: Krish Suchak <suchak.krish@gmail.com>
@coderabbitai coderabbitai Bot requested review from a team as code owners June 9, 2026 21:09
@coderabbitai coderabbitai Bot requested a review from alkalescent June 9, 2026 21:09
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Author

Important

Review skipped

This PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 50329e24-9794-4ca7-8dce-5f95c1855e4e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

@github-actions github-actions Bot added the comp:policy Policy Configuration ( attributes, subject mappings, resource mappings, kas registry) label Jun 9, 2026
@opentdf-automation opentdf-automation Bot added the external-contributor External Org Member label Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

⚠️ Govulncheck found vulnerabilities ⚠️

The following modules have known vulnerabilities:

  • examples
  • otdfctl
  • sdk
  • service
  • lib/fixtures
  • tests-bdd

See the workflow run for details.

@github-actions

github-actions Bot commented Jun 9, 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 278.612303ms

Benchmark authorization.v2.GetMultiResourceDecision Results:

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

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 433.517291ms
Throughput 230.67 requests/second

TDF3 Benchmark Results:

Metric Value
Total Requests 5000
Successful Requests 5000
Failed Requests 0
Concurrent Requests 50
Total Time 43.454652345s
Average Latency 431.959001ms
Throughput 115.06 requests/second

@alkalescent alkalescent force-pushed the DSPX-2998-optional-namespace-resource-mappings branch from a8fa30f to b8879a8 Compare June 10, 2026 16:09
@alkalescent alkalescent requested a review from a team as a code owner June 10, 2026 16:09
Base automatically changed from DSPX-2998-optional-namespace-resource-mappings to main June 10, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:policy Policy Configuration ( attributes, subject mappings, resource mappings, kas registry) external-contributor External Org Member size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant