Skip to content

doc,test: add known path resolution issue in permission model - #49155

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
tniessen:doc_test-pm-path-resolution
Aug 31, 2023
Merged

doc,test: add known path resolution issue in permission model#49155
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
tniessen:doc_test-pm-path-resolution

Conversation

@tniessen

Copy link
Copy Markdown
Member

As a side effect of 205f1e6, Node.js now resolves some paths differently when the permission model is enabled. While these are mostly edge cases, they are worth mentioning in the documentation. This commit also adds a known_issues test that demonstrates one such difference.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/security-wg

@nodejs-github-botnodejs-github-bot added the needs-ci PRs that need a full CI run. label Aug 13, 2023
@RafaelGSS
RafaelGSS self-requested a review August 14, 2023 00:35

@RafaelGSSRafaelGSS 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.

LGTM.

@RafaelGSSRafaelGSS added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 14, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 14, 2023
@nodejs-github-bot

This comment was marked as outdated.

@tniessen
tniessenforce-pushed the doc_test-pm-path-resolution branch from 517748a to 946da0aCompareAugust 21, 2023 14:43
@tniessentniessen added request-ci Add this label to start a Jenkins CI on a PR. security Issues and PRs related to security. permission Issues and PRs related to the Permission Model doc Issues and PRs related to the documentations. test Issues and PRs related to the tests. labels Aug 21, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 21, 2023
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

Comment threadtest/known_issues/test-permission-model-path-resolution.js Outdated
Comment threadtest/known_issues/test-permission-model-path-resolution.js Outdated
@tniessen
tniessenforce-pushed the doc_test-pm-path-resolution branch from 946da0a to e71525dCompareAugust 27, 2023 09:54
@tniessentniessen added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 27, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 27, 2023
@nodejs-github-bot

This comment was marked as outdated.

@tniessen

Copy link
Copy Markdown
MemberAuthor

The git-rebase job failed 🤔

13:05:02 + git push binary_tmp@147.75.72.255:binary_tmp.git +jenkins-node-test-commit-windows-fanned-e71525d18c4b7f2241bdf6654d7993930d51bcfd
13:05:03 remote: fatal: bad object refs/heads/jenkins-node-test-commit-arm-fanned-44627007be7eb3934e39bdd3df7e8f2556a2cd44-binary-pi1p/cc-armv7 13:05:03 fatal: bad object refs/heads/jenkins-node-test-commit-arm-fanned-44627007be7eb3934e39bdd3df7e8f2556a2cd44-binary-pi1p/cc-armv7
13:05:03 To 147.75.72.255:binary_tmp.git
13:05:03 ! [remote rejected] jenkins-node-test-commit-windows-fanned-e71525d18c4b7f2241bdf6654d7993930d51bcfd -> jenkins-node-test-commit-windows-fanned-e71525d18c4b7f2241bdf6654d7993930d51bcfd (missing necessary objects)
13:05:03 error: failed to push some refs to 'binary_tmp@147.75.72.255:binary_tmp.git'

@richardlau

Copy link
Copy Markdown
Member

The git-rebase job failed 🤔

13:05:02 + git push binary_tmp@147.75.72.255:binary_tmp.git +jenkins-node-test-commit-windows-fanned-e71525d18c4b7f2241bdf6654d7993930d51bcfd
13:05:03 remote: fatal: bad object refs/heads/jenkins-node-test-commit-arm-fanned-44627007be7eb3934e39bdd3df7e8f2556a2cd44-binary-pi1p/cc-armv7 13:05:03 fatal: bad object refs/heads/jenkins-node-test-commit-arm-fanned-44627007be7eb3934e39bdd3df7e8f2556a2cd44-binary-pi1p/cc-armv7
13:05:03 To 147.75.72.255:binary_tmp.git
13:05:03 ! [remote rejected] jenkins-node-test-commit-windows-fanned-e71525d18c4b7f2241bdf6654d7993930d51bcfd -> jenkins-node-test-commit-windows-fanned-e71525d18c4b7f2241bdf6654d7993930d51bcfd (missing necessary objects)
13:05:03 error: failed to push some refs to 'binary_tmp@147.75.72.255:binary_tmp.git'

Unfortunately node-test-commit-arm-fanned and node-test-commit-windows-fanned are going to be broken until this is resolved. I've opened nodejs/build#3475 -- I won't be able to log onto the machine until Tuesday but maybe someone else with access will be able to take a look before then.

@nodejs-github-bot

This comment was marked as outdated.

As a side effect of 205f1e6, Node.js
now resolves some paths differently when the permission model is
enabled. While these are mostly edge cases, they are worth mentioning in
the documentation. This commit also adds a known_issues test that
demonstrates one such difference.
@tniessen
tniessenforce-pushed the doc_test-pm-path-resolution branch from e71525d to 5f4527eCompareAugust 29, 2023 19:32
@tniessentniessen added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 29, 2023
@tniessen

Copy link
Copy Markdown
MemberAuthor

Should work now, hopefully. The problem on Windows appears to be that, while most modern operating systems resolve symlinks while parsing a path, Windows doesn't. Literal UNC paths seem to bypass normalization on Windows, but they are subject to other restrictions that are incompatible with the test.

@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 29, 2023
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@tniessen

Copy link
Copy Markdown
MemberAuthor

@nodejs/security-wg This needs to be re-approved.

@tniessentniessen added commit-queue Add this label to land a pull request using GitHub Actions. and removed review wanted PRs that need reviews. labels Aug 31, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 31, 2023
@nodejs-github-bot
nodejs-github-bot merged commit a81d5e1 into nodejs:mainAug 31, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in a81d5e1

UlisesGascon pushed a commit that referenced this pull request Sep 10, 2023
As a side effect of 205f1e6, Node.js
now resolves some paths differently when the permission model is
enabled. While these are mostly edge cases, they are worth mentioning in
the documentation. This commit also adds a known_issues test that
demonstrates one such difference.
PR-URL: #49155
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
@UlisesGasconUlisesGascon mentioned this pull request Sep 10, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.needs-ciPRs that need a full CI run.permissionIssues and PRs related to the Permission ModelsecurityIssues and PRs related to security.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@tniessen@nodejs-github-bot@richardlau@RafaelGSS