Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kas-registry create command does not support a port in the remote public key URI #375

Closed
jp-ayyappan opened this issue Sep 10, 2024 · 2 comments

Comments

@jp-ayyappan
Copy link

Tried creating
./dsp tructl policy kas-registry create -r https://local-dsp.virtru.com:8080/kas/v2/kas_public_key -u https://local-dsp.virtru.com:8080/kas

Error returned is:

ERROR    Failed to create Registered KAS entry: rpc error: code = InvalidArgument desc = validation error:                                                                                                                                                 
             - public_key.remote: URI must be a valid URL (e.g., 'https://demo.com/') followed by additional segments. Each segment must start and end with an alphanumeric character, can contain hyphens, alphanumeric characters, and slashes. [uri_format]

./dsp tructl policy kas-registry create -r https://local-dsp.virtru.com/kas/v2/kas_public_key --uri https://local-dsp.virtru.com:8080/kas seems to work

@jakedoublev
Copy link
Contributor

Thanks for this @jp-ayyappan. I was able to reproduce and it is caused by this CEL regex in the proto definition: https://github.com/opentdf/platform/blob/main/service/policy/objects.proto#L302 I will close this issue here and move it over to opentdf platform.

@jakedoublev
Copy link
Contributor

Related issue: opentdf/platform#1775

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

No branches or pull requests

2 participants