Show command line arguments for project resource types#6212
Show command line arguments for project resource types#6212adamint merged 7 commits intomicrosoft:mainfrom
Conversation
|
@davidfowl @DamianEdwards Container arguments are treated as a sensitive value in resource details. It seems inconsistent that executable and project command line arguments aren't sensitive. |
|
@JamesNK yeah agreed. We could be clever about it I think for projects and not hide known arguments though. |
|
I don't think we can be clever and try to understand arguments. There are tons of different formats and there is no way for the dashboard to reliably parse them all. As far as we're concerned arguments are an opaque string. What I think we should do:
|
We can revisit based on how this looks once implemented, but I think specifically for project resources we can be clever enough to not hide the standard args we pass as part of orchestrating projects into an Aspire launch, e.g. |
|
I think we can be clever and hide arguments with secrets. We have that knowledge and we can force people to model secrets as secret parameters to get this feature. What we do now is a bit aggressive assuming all arguments are secrets. |
|
For now, lets make both executable and container arguments behave the same way. Let treat both as non-secret for now and file an issue to detect secrets used in arguments and hide them if there are secrets in there. |
|
We can even get clever and redact the secrets 😄 |
|
Looks like a real test failure cc @radical |
Yeah, the test needs to be updated to track changes in this PR. @adamint |
I keep forgetting about these workload tests 😄 |
# Conflicts: # src/Aspire.Dashboard/Components/ResourcesGridColumns/SourceColumnDisplay.razor
# Conflicts: # tests/Aspire.Workload.Tests/StarterTemplateRunTestsBase.cs
|
@JamesNK @davidfowl for approval |
# Conflicts: # src/Aspire.Dashboard/Components/ResourcesGridColumns/SourceColumnDisplay.razor # tests/Aspire.Workload.Tests/WorkloadTestsBase.cs
|
@JamesNK for review. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
I added some args to a project in TestShop: var catalogDbApp = builder.AddProject<Projects.CatalogDb>("catalogdbapp")
.WithReference(catalogDb)
.WithArgs(["one", "two"]);This is what I see: Is that what's indented? It seems like Also, unit tests should be added here. |
|
Do we erase the project name when we show the args? |
|
What I see now: And visualizer: It's not perfect, but it seems good enough. @davidfowl is this what you imagined? |
|
Yea, I think that's better |





Description
Shows command line arguments and executable in the source column for projects, if both are present. Additionally, improves the text visualizer view to show the entire command for both projects and executables (it currently only shows the executable name)
Fixes #5570
Checklist
<remarks />and<code />elements on your triple slash comments?Microsoft Reviewers: Open in CodeFlow