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

Automatic UAC evaluation for Tgstation.Server.Host.exe #1566

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

Peliex
Copy link
Contributor

@Peliex Peliex commented Jun 21, 2023

Creates a separate resource manifest for the Tgstation.Server.Host.exe so that the process will automatically elevate to the user's highest permission when ran. Shows a warning to the user and triggers UAC.

🆑
On Windows, TGS will request administrator privileges when needed.
/:cl:

Automatic elevation of executable file will prompt UAC even when running on release, this prevents exceptions and errors from occurring because of an improperly configured manifest. Errors will persist if user fails to provide sufficient permissions.

Creates a separate resource manifest for the Tgstation.Server.Host.exe so that the process will automatically elevate to the user's highest permission when ran.  Shows a warning to the user and triggers UAC.
@Peliex Peliex requested a review from Cyberboss as a code owner June 21, 2023 17:43
@github-actions
Copy link

Thank you for contributing to tgstation-server! As this pull request is from a fork, we can't allow the CI actions which require repository secrets to run on it without approval. After a brief review to make sure you're not misusing those secrets, a maintainer will add the CI Cleared label to allow the CI suite to run. Maintainers, please note that any changes to workflow files will not be reflected in the CI run.

@Cyberboss Cyberboss enabled auto-merge June 21, 2023 17:48
Copy link
Member

@Cyberboss Cyberboss left a comment

Choose a reason for hiding this comment

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

Can you change your changelog to just

On Windows, TGS will now request UAC elevation if necessary.

Also remove the second entry, please. It's not needed and not in the correct format

@Cyberboss Cyberboss added Feature New functionality Windows Only Issue only applies to Windows deployments labels Jun 21, 2023
@Cyberboss Cyberboss self-assigned this Jun 21, 2023
@Cyberboss Cyberboss added this to the v5.12.7 milestone Jun 21, 2023
@Cyberboss Cyberboss added Code Improvement Brush up on code standards Runner: Console Issue related to the console host watchdog CI Cleared Apply this to a pull request from a fork to allow it to run the CI suite and removed Feature New functionality labels Jun 21, 2023
@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Merging #1566 (8c48509) into master (0d81bac) will increase coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1566      +/-   ##
==========================================
+ Coverage   72.80%   72.86%   +0.05%     
==========================================
  Files         352      352              
  Lines       21925    21925              
==========================================
+ Hits        15963    15976      +13     
+ Misses       5962     5949      -13     

@Cyberboss Cyberboss merged commit 2d1c090 into tgstation:master Jun 21, 2023
@Cyberboss Cyberboss modified the milestones: v5.12.7, v5.13.0 Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Cleared Apply this to a pull request from a fork to allow it to run the CI suite Code Improvement Brush up on code standards Runner: Console Issue related to the console host watchdog Windows Only Issue only applies to Windows deployments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants