Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[release/8.0] Improve dev-certs export error message#58470

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wtgodbe merged 2 commits intodotnet:release/8.0fromamcasey:MkdirError8
Oct 16, 2024

Conversation

@amcasey
Copy link
Member

@amcaseyamcasey commentedOct 16, 2024
edited
Loading

Improve dev-certs export error message

Mention non-existent target directory

Description

During a recent security review of the dev-certs tool, we observed that on export it would create a directory that was potentially world-readable (e.g. based on permissions inherited from the parent directory). We decided it would be more appropriate to let users make the decision of who should have access to the directory. Unfortunately, this removal of functionality broke some app authors' workflows. When dev-certs is run directly, the--verbose output makes it clear what went wrong and what needs to happen, but the non-verbose output that appears when another tool does the export is less helpful. This change introduces a new top-level error state for an export failure caused by a non-existent target directory to make it clearer how to fix broken workflows.

The behavior changed in#57108, which included a backport of#56985, and shipped in 8.0.10.

For#58330

Customer Impact

Development certificate export fails. This is most likely to break scenarios where the app is being developed (or validated in CI) in a container.

Regression?

  • Yes
  • No

8.0.8

Risk

  • High
  • Medium
  • Low

A slightly different string is printed - everything else stays the same.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

During a recent security review of the dev-certs tool, we observed that on export it would create a directory that was potentially world-readable (e.g. based on permissions inherited from the parent directory).  We decided it would be more appropriate to let users make the decision of who should have access to the directory.  Unfortunately, this removal of functionality broke some app authors' workflows.  When dev-certs is run directly, the `--verbose` output makes it clear what went wrong and what needs to happen, but the non-verbose output that appears when another tool does the export is less helpful.  This change introduces a new top-level error state for an export failure caused by a non-existent target directory to make it clearer how to fix broken workflows.The behavior changed indotnet#57108, which included a backport ofdotnet#56985, and shipped in 8.0.10.Fordotnet#58330
@ghostghost added the area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI labelOct 16, 2024
@dotnet-policy-servicedotnet-policy-servicebot added this to the8.0.x milestoneOct 16, 2024
@amcaseyamcasey added the Servicing-considerShiproom approval is required for the issue labelOct 16, 2024
@amcasey
Copy link
MemberAuthor

Per discussion in#58330, the issue was not that the verbose error message - which already mentions the missing directory - was unclear but that upstream tooling might not display the verbose output. I'm a little reluctant to add a new error condition for what is hopefully a point-in-time problem, but the behavior change happened in a patch and I expect this failure mode to be quite common.

@amcasey
Copy link
MemberAuthor

/backport to release/9.0

@github-actions
Copy link
Contributor

Started backporting to release/9.0:https://github.com/dotnet/aspnetcore/actions/runs/11372697592

@amcasey
Copy link
MemberAuthor

Personally, I think the 8.0 version of this change is the most important, since the behavior changed patch-to-patch. A change in a major version will be less surprising (even though we don't use semver).

@amcaseyamcasey changed the titleImprove dev-certs export error message[release/8.0] Improve dev-certs export error messageOct 16, 2024
@amcasey
Copy link
MemberAuthor

Approved over email

@amcaseyamcasey added Servicing-approvedShiproom has approved the issue and removed Servicing-considerShiproom approval is required for the issue labelsOct 16, 2024
@wtgodbewtgodbe merged commitb74d4a6 intodotnet:release/8.0Oct 16, 2024
25 checks passed
@amcaseyamcasey deleted the MkdirError8 branchOctober 17, 2024 16:25
This was referencedNov 17, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@BrennanConroyBrennanConroyBrennanConroy approved these changes

@adityamandaleekaadityamandaleekaAwaiting requested review from adityamandaleeka

Assignees

No one assigned

Labels

area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIServicing-approvedShiproom has approved the issue

Projects

None yet

Milestone

8.0.11

Development

Successfully merging this pull request may close these issues.

3 participants

@amcasey@BrennanConroy@wtgodbe

[8]ページ先頭

©2009-2025 Movatter.jp