You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/02/15 14:23:56 UTC
[GitHub] [camel-k] nicolaferraro opened a new issue #2035: Illegal YAML may result in operator panic
nicolaferraro opened a new issue #2035:
URL: https://github.com/apache/camel-k/issues/2035
The offending YAML was something like:
```
- from:
uri: timer:tick
steps:
- "log:info" # missing the "to:" part
```
Stack:
```
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/util/source.YAMLInspector.parseStep(0xc000b294d0, 0xc000c85360, 0x4, 0x1b5f3c0, 0xc00070e120, 0xc000cc1720, 0x0, 0x0)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/util/source/inspector_yaml.go:97 +0x12a5
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/util/source.YAMLInspector.Extract(0xc000b294d0, 0xc000c84890, 0x10, 0xc00077c510, 0x8e, 0x0, 0x0, 0x1e171c7, 0x7, 0x0, ...)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/util/source/inspector_yaml.go:43 +0x191
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/metadata.Extract(0xc000b294d0, 0xc000c84890, 0x10, 0xc00077c510, 0x8e, 0x0, 0x0, 0x1e171c7, 0x7, 0x0, ...)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/metadata/metadata.go:78 +0x1a3
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/trait.AddSourceDependencies(0xc000c84890, 0x10, 0xc00077c510, 0x8e, 0x0, 0x0, 0x1e171c7, 0x7, 0x0, 0x1e13b6a, ...)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/trait/util.go:167 +0xe4
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/trait.(*dependenciesTrait).Apply(0xc0007114f0, 0xc00037c000, 0x1e2286c, 0xf)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/trait/dependencies.go:74 +0x474
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/trait.(*Catalog).apply(0xc000f44f60, 0xc00037c000, 0x21a4f60, 0xc000b17ec0)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/trait/trait_catalog.go:117 +0x486
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/trait.Apply(0x2161240, 0xc00011a008, 0x21a4f60, 0xc000b17ec0, 0xc00066aa80, 0x0, 0xc000feb598, 0x440a48, 0xc00009ea80)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/trait/trait.go:46 +0xed
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/controller/integration.(*initializeAction).Handle(0xc000f40ca0, 0x2161240, 0xc00011a008, 0xc00066aa80, 0xc000febb78, 0x1, 0x1)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/controller/integration/initialize.go:51 +0x7f
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/controller/integration.(*reconcileIntegration).Reconcile(0xc000362810, 0xc0009069f0, 0xe, 0xc0009069d0, 0xf, 0x1c0f7e0, 0xc000f00101, 0xc000f40aa0, 0xc000febcb0)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/controller/integration/integration_controller.go:287 +0x6ef
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/util/monitoring.(*instrumentedReconciler).Reconcile(0xc000b17f40, 0xc0009069f0, 0xe, 0xc0009069d0, 0xf, 0xc000f40aa0, 0xc0000294d0, 0xc000642518, 0xc000642510)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator github.com/apache/camel-k/pkg/util/monitoring/controller.go:70 +0xbf
camel-k-operator-7957d7dff8-d4jsq camel-k-operator sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000c13290, 0x1c09200, 0xc00062e260, 0x0)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:244 +0x284
camel-k-operator-7957d7dff8-d4jsq camel-k-operator sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000c13290, 0x203000)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:218 +0xae
camel-k-operator-7957d7dff8-d4jsq camel-k-operator sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker(0xc000c13290)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:197 +0x2b
camel-k-operator-7957d7dff8-d4jsq camel-k-operator k8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1(0xc000f301a0)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator k8s.io/apimachinery@v0.18.9/pkg/util/wait/wait.go:155 +0x5f
camel-k-operator-7957d7dff8-d4jsq camel-k-operator k8s.io/apimachinery/pkg/util/wait.BackoffUntil(0xc000f301a0, 0x2115400, 0xc000f44210, 0x1, 0xc00070d1a0)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator k8s.io/apimachinery@v0.18.9/pkg/util/wait/wait.go:156 +0xa3
camel-k-operator-7957d7dff8-d4jsq camel-k-operator k8s.io/apimachinery/pkg/util/wait.JitterUntil(0xc000f301a0, 0x3b9aca00, 0x0, 0x1, 0xc00070d1a0)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator k8s.io/apimachinery@v0.18.9/pkg/util/wait/wait.go:133 +0x98
camel-k-operator-7957d7dff8-d4jsq camel-k-operator k8s.io/apimachinery/pkg/util/wait.Until(0xc000f301a0, 0x3b9aca00, 0xc00070d1a0)
camel-k-operator-7957d7dff8-d4jsq camel-k-operator k8s.io/apimachinery@v0.18.9/pkg/util/wait/wait.go:90 +0x4d
camel-k-operator-7957d7dff8-d4jsq camel-k-operator created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1
camel-k-operator-7957d7dff8-d4jsq camel-k-operator sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:179 +0x42d
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] nicolaferraro closed issue #2035: Illegal YAML may result in operator panic
Posted by GitBox <gi...@apache.org>.
nicolaferraro closed issue #2035:
URL: https://github.com/apache/camel-k/issues/2035
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] heiko-braun edited a comment on issue #2035: Illegal YAML may result in operator panic
Posted by GitBox <gi...@apache.org>.
heiko-braun edited a comment on issue #2035:
URL: https://github.com/apache/camel-k/issues/2035#issuecomment-779297938
a nice denial of service attack – I knew YAML would be useful for something
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] heiko-braun commented on issue #2035: Illegal YAML may result in operator panic
Posted by GitBox <gi...@apache.org>.
heiko-braun commented on issue #2035:
URL: https://github.com/apache/camel-k/issues/2035#issuecomment-779297938
a nice denial of service attack :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org