Commit 19c6495
authored
Fix out-of-bound symlink for gitops tools (#2073)
Summary: Fix out-of-bound symlink for gitops tools
I'm working on deploying pixie cloud via gitops.
For security reasons argocd block the deployment if an out of bound
symlink is detected in the monorepo.
```
Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc =
repository contains out-of-bounds symlinks. file: src/common/system/testdata/proc/123/fd/1
```
Changing the dummy symlink to a relative path that don't leave the root
fixes the issue.
Relevant Issues: N/A
Type of change: /kind bug
Test Plan: the items below
- [x] Use my fork to test if the updated symlink path still block the
argocd app deployment.
- [x] Related unit test still pass
Additional documentation: see the links below
-
argoproj/argo-cd#12593 (comment)
-
https://argo-cd.readthedocs.io/en/stable/operator-manual/upgrading/2.4-2.5/#out-of-bounds-symlinks-now-blocked-at-fetch
Signed-off-by: GitHub <noreply@github.com>1 parent 3c9c4bd commit 19c6495
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | | - | |
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
| |||
299 | 297 | | |
300 | 298 | | |
301 | 299 | | |
302 | | - | |
| 300 | + | |
303 | 301 | | |
304 | 302 | | |
305 | 303 | | |
| |||
313 | 311 | | |
314 | 312 | | |
315 | 313 | | |
316 | | - | |
| 314 | + | |
317 | 315 | | |
318 | 316 | | |
319 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments