Skip to content

Remove the symweb symbol server support - #4694

Merged
mikem8361 merged 3 commits into
dotnet:mainfrom
mikem8361:symweb
May 31, 2024
Merged

mikem8361 merged 3 commits into
dotnet:mainfrom
mikem8361:symweb

Conversation

@mikem8361

Copy link
Copy Markdown
Contributor

Removes the dotnet-symbol --internal-server option. Use the --authenticated-server-path option instead.

Removes the internal server/symweb options from the setsymbolserver command and ISymbolService interface.

Removes the dotnet-symbol --internal-server option. Use the --authenticated-server-path option instead.

Removes the internal server/symweb options from the setsymbolserver command and ISymbolService interface.
@mikem8361
mikem8361 requested a review from hoyosjs May 29, 2024 23:06
@mikem8361 mikem8361 self-assigned this May 29, 2024
@mikem8361
mikem8361 requested a review from a team as a code owner May 29, 2024 23:06

@noahfalk noahfalk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Others may have more feedback on the specifics of the implementation, but LGTM!

/// --internal-server Add 'https://symweb' internal symbol server path.
/// --server-path <symbol server path> Add a http server path.
/// --authenticated-server-path <pat> <server path> Add a http PAT authenticated s [rest of string was truncated]";.
/// --authenticated-server-path <pat> <server path> Add a http PAT authenticated server path.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these commens meant to have all this xml encoding?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They were there before. I'm not sure why.

@leculver

Copy link
Copy Markdown
Contributor

Is the expectation that we will use the public symbol server, even internally? (I'm not opposed, only trying to understand the intent.)

FWIW, ClrMD, PerfView, and TraceEvent are taking the opposite approach. We are adding support for symbol servers which require Azure authentication. PerfView/TraceEvent are currently only targeting symweb specifically, but ClrMD is adding support for ADO symbol servers.

This means that the next version of ClrMD will come with more files...SOS and other projects in this repo using ClrMD will be picking up the library requirements to add symweb support even if you strip out support here. (That's the plan so far, at least. I haven't finished the implementation yet)

@mikem8361

Copy link
Copy Markdown
Contributor Author

Both dotnet-symbol and SOS's !setsymbolserver have PAT auth options which should allow internal devs access the new symweb endpoint with a PAT. I don't understand the security options to really say that is enough. @hoyosjs can answer this better than me.

@hoyosjs

hoyosjs commented May 31, 2024

Copy link
Copy Markdown
Member

We could go that route as well, of using a DefaultIdentity, but that adds a dependency on things like Azure.Identity or Microsoft.Identity.Client. The setsymbolserver option has a token option where you can pass in a bearer token for auth, and that'd work with cloud symweb. Granted, we could automate getting it if all the dependencies won't cause much of a headache, but that's work that's not been scheduled. This just removes the pit of failure of having the old option.

@mikem8361
mikem8361 merged commit 481674f into dotnet:main May 31, 2024
@mikem8361
mikem8361 deleted the symweb branch May 31, 2024 17:21
@leculver

leculver commented May 31, 2024 •

Copy link
Copy Markdown
Contributor

This just removes the pit of failure of having the old option.

That sounds good, I'm all for that.

!setsymbolserver have PAT auth options

I do not think pats are the way of the future, as Juan points out if you decide to take up the new auth you'll need to use identity tokens. I'll point you all to the relevant ClrMD change when it's done to see if you want to do something similar.

hoyosjs added a commit that referenced this pull request Jun 8, 2024
- Update Alpine versions (#4589)
- Followup 1ES template changes (#4596)
- Fix Test Results tab in github UI (#4607)
- Move the symstore repo to diagnostics (#4603)
- Fix recent Alpine repo build (#4612)
- Fix issue #4611 - Switch to cross build for Alpine (#4621)
- Add waithandle to --clrevents option (#4624)
- Fix SOS unit tests dump generation fixture (#4636)
- Fix CONTRACT return type (#4649)
- [SymbolStore] Add support to index .NET Framework Runtime debugging
modules (#4616)
- [test][SOS] Disable OtherCommands Dumpmt test on Alpine (#4656)
- Supports collecting GCSettingsEvent for gc-collect profile (#4615)
- Update ipc-protocol.md (#4658)
- Fixing a case where we should set the RundownKeyword (#4662)
- Fix versioning of symstore ported assets (#4670)
- Add ubuntu 22.04 testing. Update 6,7 and 8 runtime versions (#4676)
- Update locker action version to update node version (#4682)
- Use managed identity for blob upload of release assets (#4680)
- Remove the symweb symbol server support (#4694)
- [RISC-V] Add gcinfodumper implementation. (#4703)
- Fix `pathto` SOS command. (#4706)
- Add support for new exception trace storage format (#4635)
- Change SOS breaking change from warning to error; better dotnet-dump
target errors (#4713)
- [Symbol] Add manifest generator (#4693)
- Remove references to obsolete storage account variables (#4719)
- Update DIA to 17.10.0-beta1.24272.1 (#4683)
- Reenable SDL requirements (#4722)

---------

Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rich Lander <[email protected]>
Co-authored-by: Mike McLaughlin <[email protected]>
Co-authored-by: Jan Vorlicek <[email protected]>
Co-authored-by: Grégoire <[email protected]>
Co-authored-by: Tom McDonald <[email protected]>
Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Andrew Au <[email protected]>
Co-authored-by: Noah Falk <[email protected]>
Co-authored-by: Mikhail Kurinnoi <[email protected]>
Co-authored-by: Matt Mitchell <[email protected]>
hoyosjs added a commit that referenced this pull request Jun 12, 2024
- Update Alpine versions (#4589)
- Followup 1ES template changes (#4596)
- Fix Test Results tab in github UI (#4607)
- Move the symstore repo to diagnostics (#4603)
- Fix recent Alpine repo build (#4612)
- Fix issue #4611 - Switch to cross build for Alpine (#4621)
- Add waithandle to --clrevents option (#4624)
- Fix SOS unit tests dump generation fixture (#4636)
- Fix CONTRACT return type (#4649)
- [SymbolStore] Add support to index .NET Framework Runtime debugging
modules (#4616)
- [test][SOS] Disable OtherCommands Dumpmt test on Alpine (#4656)
- Supports collecting GCSettingsEvent for gc-collect profile (#4615)
- Update ipc-protocol.md (#4658)
- Fixing a case where we should set the RundownKeyword (#4662)
- Fix versioning of symstore ported assets (#4670)
- Add ubuntu 22.04 testing. Update 6,7 and 8 runtime versions (#4676)
- Update locker action version to update node version (#4682)
- Use managed identity for blob upload of release assets (#4680)
- Remove the symweb symbol server support (#4694)
- [RISC-V] Add gcinfodumper implementation. (#4703)
- Fix `pathto` SOS command. (#4706)
- Add support for new exception trace storage format (#4635)
- Change SOS breaking change from warning to error; better dotnet-dump
target errors (#4713)
- [Symbol] Add manifest generator (#4693)
- Remove references to obsolete storage account variables (#4719)
- Update DIA to 17.10.0-beta1.24272.1 (#4683)
- Reenable SDL requirements (#4722)
- Disable CG on musl leg due to lack of proper support (#4726)
- Update SOS breaking change version for Exception's _stackTrace changes
in .NET 9 (#4733)
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants