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

Resource server protocol changes #2415

Closed
4 of 6 tasks
davidfowl opened this issue Feb 26, 2024 · 10 comments
Closed
4 of 6 tasks

Resource server protocol changes #2415

davidfowl opened this issue Feb 26, 2024 · 10 comments
Assignees
Labels
area-dashboard enhancement An enhancement to an existing feature or capability. security 🔐
Milestone

Comments

@davidfowl
Copy link
Member

davidfowl commented Feb 26, 2024

As part of the work to support custom resources in the dashboard (#2390) there are several improvements that we should consider making to the resource server API:
 

@davidfowl davidfowl added this to the preview 5 (Apr) milestone Feb 26, 2024
@danmoseley danmoseley added the feature A single user-facing feature. Can be grouped under an epic. label Feb 26, 2024
@kvenkatrajan
Copy link
Member

@davidfowl , I am not sure I understand this request :

Make the list of endpoints/urls more general purpose and support named urls. For e.g. we want to be able to navigate to the portal for azure resources.

Can you give example of variations of urls for local/azure resources you would expect?

The other 2 are clear - Thanks!

@JamesNK
Copy link
Member

JamesNK commented Mar 3, 2024

What about adding references to resources? i.e. what resources is a resource referencing. We can show that in the resource detail pane.

builder.AddProject<Projects.MyFrontend>("frontend")
       .WithReference(basketService)
       .WithReference(catalogService.GetEndpoint("http"));

In the example above, the frontend resource would have two references. A reference would have:

  • Resource name
  • Endpoint name
  • Value - URI string?

You could try to reverse engineer this by looking at environment variables, but it would be a pain in the butt. Much easier to model it explicitly.

@drewnoakes
Copy link
Member

Another potential addition is window size for logs. The server can limit the amount of history it sends easily enough, and I believe ACA does this today. The dashboard client currently appends logs without rolling old messages out of the window, which will eat memory indefinitely. We should synchronise the window size between client and server, so the server doesn't send data the client won't display, and so the client can roll old messages out. Perhaps the client specified the window size in the request.

@davidfowl davidfowl added enhancement An enhancement to an existing feature or capability. and removed feature A single user-facing feature. Can be grouped under an epic. labels Mar 10, 2024
@davidfowl
Copy link
Member Author

I'm going to punt this to the backlog for now.

@davidfowl davidfowl modified the milestones: preview 5 (Apr), Backlog Mar 11, 2024
@davidfowl
Copy link
Member Author

If anyone has cycles to work on this, I would like the status change for p5 😄

@davidfowl davidfowl assigned davidfowl and drewnoakes and unassigned davidfowl Mar 12, 2024
@leslierichardson95 leslierichardson95 modified the milestones: Backlog, 8.1 May 3, 2024
@kvenkatrajan kvenkatrajan modified the milestones: 8.1, 8.2 Jun 24, 2024
@eerhardt
Copy link
Member

@drewnoakes - this issue is marked as "Medium" priority in 8.2. Since it affects external resources from following security best practices, should this be moved higher and commited for 8.2?

@drewnoakes
Copy link
Member

@eerhardt I'm not sure what you mean by

affects external resources from following security best practices

Can you provide more context please?

There are two pending proposed changes left on this issue. One relates to richer modelling of replicas, the other to allowing properties to be marked as secret so that they're treated the same way as environment variables in the UI (hidden by default).

@eerhardt
Copy link
Member

@eerhardt I'm not sure what you mean by

affects external resources from following security best practices

Can you provide more context please?

There are two pending proposed changes left on this issue. One relates to richer modelling of replicas, the other to allowing properties to be marked as secret so that they're treated the same way as environment variables in the UI (hidden by default).

"allowing properties to be marked as secret" is exactly what I'm talking about. Custom (i.e. "external") resources can't mark properties as secret if they need to.

@drewnoakes
Copy link
Member

Thanks for clarifying. I've pulled it out into #5065, and targeted it at 8.2 with high priority.

@adamint the other item above is to model replicas explicitly. You have PR #4908 open for this now, and there are no protocol changes there. Do you anticipate us needing proto changes for that in future, or is that unnecessary. If unnecessary, then we can close this out.

@leslierichardson95
Copy link

Closing this since all issues have either been resolved or have been made into their own work item.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-dashboard enhancement An enhancement to an existing feature or capability. security 🔐
Projects
None yet
Development

No branches or pull requests

7 participants