Expose sv app endpoints to the minimum users - #6934
Conversation
[backport] ReminderPlease consider backporting to the following branches:
And your PR is currently against base branch: main. Note: Any PR comment containing [backport] will be considered for auto-backporting upon merge, |
| post: | ||
| tags: [sv] | ||
| x-jvm-package: sv_public | ||
| x-public-audience: validators |
There was a problem hiding this comment.
my understanding is that this endpoint will go away as part of #3596
There was a problem hiding this comment.
Yes, this doesn't affect the current status quo
| tags: [sv] | ||
| # TODO(DACH-NY/canton-network-internal#2106) Move to sv_operator | ||
| x-jvm-package: sv_public | ||
| x-public-audience: validators |
There was a problem hiding this comment.
This endpoint should not exist IMO, and certainly is not needed by any validators. (Scan has the same one.)
There was a problem hiding this comment.
So how about we keep your PR here as it is but start deprecating that endpoint?
There was a problem hiding this comment.
Orthogonal concern, I think we should deprecate it but in another PR
There was a problem hiding this comment.
oh yes, totally; feel free to keep your PR as is; follow-up: #6957
| post: | ||
| tags: [sv] | ||
| x-jvm-package: sv_public | ||
| x-public-audience: validators |
There was a problem hiding this comment.
Same as /v0/onboard/validator
martinflorian-da
left a comment
There was a problem hiding this comment.
Thanks! ...with naming comments that since this is going to be hard to change once we tell SVs about it are less nit than usual...
| tags: [sv] | ||
| # TODO(DACH-NY/canton-network-internal#2106) Move to sv_operator | ||
| x-jvm-package: sv_public | ||
| x-public-audience: validators |
There was a problem hiding this comment.
So how about we keep your PR here as it is but start deprecating that endpoint?
| annotation to restrict the external exposure of their SV app: only the endpoints of a | ||
| given audience need to be reachable from the corresponding networks, and endpoints with | ||
| an audience of ``none``, as well as endpoints without an ``x-public-audience``, do not | ||
| need to be exposed to external traffic at all. |
There was a problem hiding this comment.
| need to be exposed to external traffic at all. | |
| need to be exposed to external traffic at all. | |
| Note that endpoints currently marked for exposure to validators will be phased out in the foreseeable future. |
There was a problem hiding this comment.
Not sure how I feel about including this here. Indeed those endpoints will be removed with some release, but that will be part of the release notes for that time.
There was a problem hiding this comment.
Are you willing to risk some SV operator or product person asking concerned questions about "oh wait we need to make the SV app public as well?". Seems like a low-cost investment to avoid that risk.
There was a problem hiding this comment.
"oh wait we need to make the SV app public as well?".
But we do need to make at least one endpoint public on DevNet. Does it matter if it's devnet only? It's still a prod cluster
There was a problem hiding this comment.
Well sure but this is a nuance we can introduce later on :) Currently it is correct to say that the current selection of endpoints will be phased out.
Your call, but I reserve my right to say "I told you so" in case people do get confused :)
There was a problem hiding this comment.
Added the note and expanded saying that new endpoints will be added just for devnet.
| describe('the SV OpenAPI spec', () => { | ||
| const content = fs.readFileSync(svOpenApiFile, 'utf-8'); | ||
|
|
||
| test('declares an x-public-audience for every sv_public endpoint', () => { |
|
By the way, from the discussion on canton-network/cf-docs#1450 : do we want to block DevNet-only endpoints already on the istio layer somehow? Definitely nice to have, but probably not worth the effort to do in a precise way... So our guidance should probably be "sv-app exposed only on DevNet". (I'd add that to an issue not add that immediately.) |
Also extend open api so the other SVs can easily apply the same restriction [static] Signed-off-by: Nicu Reut <nicu.reut@digitalasset.com>
3a20f9e to
4933ed6
Compare
|
cc @pasindutennage-da you will need to add the annotation to your public endpoint as well |
Also extend open api so the other SVs can easily apply the same restriction
[static]
part of https://github.com/DACH-NY/canton-network-internal/issues/743 (still misses cf-docs part)
Pull Request Checklist
Cluster Testing
/cluster_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./upgrade_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./hdm_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./lsu_teston this PR to request it, and ping someone with access to the DA-internal system to approve it.PR Guidelines
Fixes #n, and mention issues worked on using#nMerge Guidelines