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

chore: bump yaml version for security finding #1193

Merged
merged 4 commits into from May 15, 2023
Merged

Conversation

vinayak-kukreja
Copy link
Contributor

@vinayak-kukreja vinayak-kukreja commented May 11, 2023

We currently have a dependabot security finding not resolving due to a fixed yaml version in cdk8s.

cdk8s@2.7.56 requires yaml@2.0.0-7
cdk8s-cli@1.3.20 requires yaml@2.0.0-7 via a transitive dependency on cdk8s@1.10.54

NOTE:

  • Looks like there are some more changes added when I run npx projen.
  • Yaml defaultOptions for schema was removed in an update. Recommendation is to explicitly mention the version in parse and document. Related PR: Remove YAML.defaultOptions eemeli/yaml#346

Fixes #1190

Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
@vinayak-kukreja vinayak-kukreja added the backport-to-1.x Backport a PR to the 1.x branch label May 11, 2023
Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
.projenrc.js Outdated
@@ -12,7 +12,7 @@ const project = new Cdk8sTeamJsiiProject({
],

bundledDeps: [
'yaml@2.0.0-7',
'yaml@2.2.2',
Copy link
Member

Choose a reason for hiding this comment

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

Lets just remove the version number from here? This will allow us to also remove the exclusion from:

cdk8s-core/.projenrc.js

Lines 45 to 47 in 190ea12

depsUpgradeOptions: {
exclude: ['yaml'],
},

And then yaml will be upgraded automatically going forward.

Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
@mergify mergify bot merged commit 3801c95 into 2.x May 15, 2023
13 checks passed
@mergify mergify bot deleted the vkukreja/dependabot-finding branch May 15, 2023 18:10
@cdk8s-automation
Copy link
Contributor

💔 All backports failed

Status Branch Result
1.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

backport --pr 1193

Questions ?

Please refer to the Backport tool documentation

iliapolo pushed a commit that referenced this pull request May 15, 2023
We currently have a dependabot security finding not resolving due to a fixed yaml version in cdk8s.

Finding: cdk8s-team/cdk8s-plus#1977

```
cdk8s@2.7.56 requires yaml@2.0.0-7
cdk8s-cli@1.3.20 requires yaml@2.0.0-7 via a transitive dependency on cdk8s@1.10.54
```

NOTE:
* Looks like there are some more changes added when I run `npx projen`.
* Yaml `defaultOptions` for schema was removed in an update. Recommendation is to explicitly mention the version in `parse and document`. Related PR: eemeli/yaml#346

(cherry picked from commit 3801c95)
Signed-off-by: Vinayak Kukreja <78971045+vinayak-kukreja@users.noreply.github.com>

# Conflicts:
#	.projen/tasks.json
#	.projenrc.js
@iliapolo
Copy link
Member

💚 All backports created successfully

Status Branch Result
1.x

Questions ?

Please refer to the Backport tool documentation

mergify bot pushed a commit that referenced this pull request May 15, 2023
# Backport

This will backport the following commits from `2.x` to `1.x`:
 - [chore: bump yaml version for security finding (#1193)](#1193)



### Questions ?
Please refer to the [Backport tool documentation](https://github.com/sqren/backport)
mergify bot pushed a commit that referenced this pull request May 24, 2023
We forgot a couple of places when bumping the `yaml` version in this [PR](#1193).

Fixes #1230
cdk8s-automation pushed a commit that referenced this pull request May 24, 2023
We forgot a couple of places when bumping the `yaml` version in this [PR](#1193).

Fixes #1230

(cherry picked from commit f2ce853)
Signed-off-by: Eli Polonsky <epolon@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-1.x Backport a PR to the 1.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[HIGH] Uncaught Exception in yaml
3 participants