You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform:UNIX-like with a non-default umask such as 0027
What is the problem?
Libraries loaded in the jsii kernel are not installed by npm, but directly unpacked. The umask is not overridden, leading to the current process configuration to be applied. This leads to installs that differ in file permissions from their npm installed counterparts.
In it's wisdom, `npm install` does override the process' `umask` to
`0o022` before unpackging the tarball, to ensure the produced install
has the kind of permissions that one would expect, regardless of the
system-configured `umask`.
Because `@jsii/kernel` did not reproduce this behavior, loaded libraries
could be unpacked with unexpectedly tight permissions, leading to weird
issues when those files were used in contexts that required those
permissions. For example, this is the cause of aws/aws-cdk#8233.
Fixes#1765
)
In it's wisdom, `npm install` does override the process' `umask` to
`0o022` before unpackging the tarball, to ensure the produced install
has the kind of permissions that one would expect, regardless of the
system-configured `umask`.
Because `@jsii/kernel` did not reproduce this behavior, loaded libraries
could be unpacked with unexpectedly tight permissions, leading to weird
issues when those files were used in contexts that required those
permissions. For example, this is the cause of aws/aws-cdk#8233.
Fixes#1765
---
By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license].
[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
🐛 Bug Report
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)General Information
umask
such as0027
What is the problem?
Libraries loaded in the jsii kernel are not installed by
npm
, but directly unpacked. Theumask
is not overridden, leading to the current process configuration to be applied. This leads to installs that differ in file permissions from theirnpm install
ed counterparts.This has been found to cause aws/aws-cdk#8233
The text was updated successfully, but these errors were encountered: