Skip to content

Commit

Permalink
Merge branch 'master' into grpc-archive-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
yurishkuro authored Sep 23, 2020
2 parents 363bdef + 87799ea commit 5b24f20
Show file tree
Hide file tree
Showing 12 changed files with 173 additions and 135 deletions.
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ script:
- if [ "$TESTS" == true ]; then make test-ci ; else echo 'skipping tests'; fi
- if [ "$PROTO_GEN_TEST" == true ]; then make proto && git diff --name-status --exit-code ; else echo 'skipping protoc validation'; fi
- if [ "$ALL_IN_ONE" == true ]; then bash ./scripts/travis/build-all-in-one-image.sh ; else echo 'skipping all_in_one'; fi
- if [ "$CROSSDOCK" == true ]; then bash ./scripts/travis/build-crossdock.sh ; else echo 'skipping crossdock'; fi
- if [ "$CROSSDOCK_OTEL" == true ]; then make build-crossdock crossdock-otel ; else echo 'skipping OpenTelemetry crossdock'; fi
- if [ "$CROSSDOCK" == true ]; then travis_retry bash ./scripts/travis/build-crossdock.sh ; else echo 'skipping crossdock'; fi
- if [ "$CROSSDOCK_OTEL" == true ]; then travis_retry make build-crossdock crossdock-otel ; else echo 'skipping OpenTelemetry crossdock'; fi
- if [ "$DOCKER" == true ]; then bash ./scripts/travis/build-docker-images.sh ; else echo 'skipping build-docker-images'; fi
- if [ "$DOCKER" == true ]; then bash ./scripts/travis/upload-all-docker-images.sh ; else echo 'skipping docker upload'; fi
- if [ "$DEPLOY" == true ]; then make build-all-platforms ; else echo 'skipping build-all-platforms'; fi
- if [ "$ES_INTEGRATION_TEST" == true ]; then bash ./scripts/travis/es-integration-test.sh ; else echo 'skipping elastic search integration test'; fi
- if [ "$ES_OTEL_INTEGRATION_TEST" == true ]; then bash ./scripts/travis/es-integration-test.sh ; else echo 'skipping elastic search integration test'; fi
- if [ "$KAFKA_INTEGRATION_TEST" == true ]; then bash ./scripts/travis/kafka-integration-test.sh ; else echo 'skipping kafka integration test'; fi
- if [ "$CASSANDRA_INTEGRATION_TEST" == true ]; then bash ./scripts/travis/cassandra-integration-test.sh ; else echo 'skipping cassandra integration test'; fi
- if [ "$MEM_AND_BADGER_INTEGRATION_TEST" == true ]; then make mem-and-badger-storage-integration-test ; else echo 'skipping mem and badger integration test'; fi
- if [ "$ES_INTEGRATION_TEST" == true ]; then travis_retry bash ./scripts/travis/es-integration-test.sh ; else echo 'skipping elastic search integration test'; fi
- if [ "$ES_OTEL_INTEGRATION_TEST" == true ]; then travis_retry bash ./scripts/travis/es-integration-test.sh ; else echo 'skipping elastic search integration test'; fi
- if [ "$KAFKA_INTEGRATION_TEST" == true ]; then travis_retry bash ./scripts/travis/kafka-integration-test.sh ; else echo 'skipping kafka integration test'; fi
- if [ "$CASSANDRA_INTEGRATION_TEST" == true ]; then travis_retry bash ./scripts/travis/cassandra-integration-test.sh ; else echo 'skipping cassandra integration test'; fi
- if [ "$MEM_AND_BADGER_INTEGRATION_TEST" == true ]; then travis_retry make mem-and-badger-storage-integration-test ; else echo 'skipping mem and badger integration test'; fi
- if [ "$HOTROD" == true ]; then bash ./scripts/travis/hotrod-integration-test.sh ; else echo 'skipping hotrod example'; fi

after_success:
Expand Down
98 changes: 98 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Security Policy

## Supported Versions

The Jaeger project provides community support only for last minor version: bug fixes are released either as part of the next minor version or as an on-demand patch version. Independent of which version is next, all patch versions are cumulative, meaning that they represent the state of our `master` branch at the moment of the release. For instance, if the latest version is 1.19.0, bug fixes are released either as part of 1.20.0 or 1.19.1.

Security fixes are given priority and might be enough to cause a new version to be released.

## Reporting a Vulnerability

_The following is a copy of the [Report a security issue](https://www.jaegertracing.io/report-security-issue/) page from our website. The website's version has precedence in case of conflicts._

If you find something suspicious and want to report it, we'd really appreciate!

### Ways to report

* It is preferable to always encrypt your message, no matter the channel you choose to report the issue
* Contact us on our open chat room on [Gitter][gitter-room]
* If you can't use Gitter, send a message to [jaeger-tracing@googlegroups.com][mailing-list]
* If you can't use Gitter nor send an email, open a merge request on GitHub: fork the affected repository and send us a pull request. We really prefer if you'd talk to us before, though, as our repositories are public and we would like to give a heads up to our users before disclosing it publicly

### Our PGP key

No matter what channel you choose to communicate with us, we would prefer you to encrypt your message using our [published key][published-key], available in all major key servers and which should match the one shown below. If you are new to PGP, you can run the following command to encrypt a file called "message.txt":

1. Receive our keys from the key server:

`gpg --keyserver pool.sks-keyservers.net --recv-keys C043A4D2B3F2AC31`

1. Encrypt a "message.txt" file into "message.txt.asc":

`gpg -ea -r C043A4D2B3F2AC31 message.txt`

1. Send us the resulting "message.txt.asc"

**Our published key should match this one:**

```
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFn7N4QBEAC4Vl68Fdcom/U1kb/6zlUeSLh4Vwyr2wvaLd610AUwmrfQC0eh
e6vRtt//bYr48gHg1wwnbaQgyg+ZvIfjUa6Olhqi3J1itkagy50pQDWk8nfDdbHO
rgR6W3mFxKgIfAiB07oTY6Gzs8vjuO1VA/5p5DOvvXtTQdgWkI93zqIJhupznDOd
wPoGF7t6PPTy/hzBJOq9KzX4MgPkOivLAjdSeftzxcvO5oHXEjwAhr5/oaPHvksz
J+X8jsBW8J9wSUZWLhJkD5wm1hbcS0MKQAWvM6PpC7RnHmLOJAMBA27ne0qhNzA3
MRkzWpVUzZc/FvauNk+6ohZMW/HcUlGWsSzt3egih9pFCsz2yhXq1891iswfgYGV
sRNTDmLNIDk99iDNKZofWDwdOIMJWt0QKSwYbR5mhd7p648RgI+nwyQmX/eX5Eey
ECs56j07ZnUUHAm5n+K53SDnaQo40/bfKEGGJMm+72KLisnOhV6G+3y/Wi7SHEhs
9hO9Lin7qZ2EBD/KITlCZf4kkIKMc8srkUlfZSDNTVfoP9JHKMqW6Lf5OyskJdG9
MozUz/Am7QxH8DNZS3UiQubSIX+nuYuc5E03flE9QsFHKqXyYQ49sl8ipLRkV5SI
c+gTqCeKcwzrNbJ6+zyt/7mQBwP34oV01z2lv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tp9GTaUPx
M3WJzf3w+c4A19AwyYumWf9J4nHFBhNHCq7Mb5I3PRIgrRCQfR9hyaeDMgd6UuSH
yYdeaxVBmZ20N3D39f7tgfE1oZg1SiHVjmBYtlBu6Jji8wwFjsF1WSDZlmmp/VWJ
6GzAJggHtgAod6H/lueqcellXEo2usqZLwDqa9SlglhcMWTqysO4j/1vVQpTstwJ
oF+qZY4uEvqFvYo8
=KQzT
-----END PGP PUBLIC KEY BLOCK-----
```

[published-key]: http://pool.sks-keyservers.net/pks/lookup?op=get&search=0xC043A4D2B3F2AC31
[mailing-list]: https://groups.google.com/forum/#!forum/jaeger-tracing
[gitter-room]: https://gitter.im/jaegertracing/Lobby

## Securing a Jaeger installation

If you are looking to secure your Jaeger installation, check out our documentation on the topic: [Securing Jaeger Installation](https://www.jaegertracing.io/docs/latest/security/).
45 changes: 34 additions & 11 deletions cmd/opentelemetry/app/defaultconfig/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"fmt"
"strings"

"github.com/spf13/viper"
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/config/configgrpc"
"go.opentelemetry.io/collector/config/confighttp"
Expand All @@ -27,6 +28,8 @@ import (
"go.opentelemetry.io/collector/processor/resourceprocessor"
"go.opentelemetry.io/collector/receiver/jaegerreceiver"
"go.opentelemetry.io/collector/receiver/zipkinreceiver"
"go.opentelemetry.io/collector/service"
"go.opentelemetry.io/collector/service/builder"

"github.com/jaegertracing/jaeger/cmd/opentelemetry/app/exporter/badgerexporter"
"github.com/jaegertracing/jaeger/cmd/opentelemetry/app/exporter/cassandraexporter"
Expand Down Expand Up @@ -60,19 +63,40 @@ type ComponentType int

// ComponentSettings struct configures generation of the default config
type ComponentSettings struct {
ComponentType ComponentType
Factories component.Factories
StorageType string
ZipkinHostPort string
ComponentType ComponentType
Factories component.Factories
StorageType string
}

// CreateDefaultConfig creates default configuration.
func (c ComponentSettings) CreateDefaultConfig() (*configmodels.Config, error) {
// DefaultConfigFactory returns a service.ConfigFactory that merges jaeger and otel configs
func (c *ComponentSettings) DefaultConfigFactory(jaegerViper *viper.Viper) service.ConfigFactory {
return func(otelViper *viper.Viper, f component.Factories) (*configmodels.Config, error) {
cfg, err := c.createDefaultConfig()
if err != nil {
return nil, err
}
if len(builder.GetConfigFile()) > 0 {
otelCfg, err := service.FileLoaderConfigFactory(otelViper, f)
if err != nil {
return nil, err
}
err = MergeConfigs(cfg, otelCfg)
if err != nil {
return nil, err
}
}

return cfg, nil
}
}

// createDefaultConfig creates default configuration.
func (c ComponentSettings) createDefaultConfig() (*configmodels.Config, error) {
exporters, err := createExporters(c.ComponentType, c.StorageType, c.Factories)
if err != nil {
return nil, err
}
receivers := createReceivers(c.ComponentType, c.ZipkinHostPort, c.Factories)
receivers := createReceivers(c.ComponentType, c.Factories)
processors, processorNames := createProcessors(c.Factories)
hc := c.Factories.Extensions["health_check"].CreateDefaultConfig()
return &configmodels.Config{
Expand Down Expand Up @@ -109,7 +133,7 @@ func createProcessors(factories component.Factories) (configmodels.Processors, [
return processors, names
}

func createReceivers(component ComponentType, zipkinHostPort string, factories component.Factories) configmodels.Receivers {
func createReceivers(component ComponentType, factories component.Factories) configmodels.Receivers {
if component == Ingester {
kafkaReceiver := factories.Receivers[kafkareceiver.TypeStr].CreateDefaultConfig().(*kafkareceiver.Config)
return configmodels.Receivers{
Expand Down Expand Up @@ -139,9 +163,8 @@ func createReceivers(component ComponentType, zipkinHostPort string, factories c
"jaeger": jaeger,
"otlp": factories.Receivers["otlp"].CreateDefaultConfig(),
}
if zipkinHostPort != "" && zipkinHostPort != ports.PortToHostPort(0) {
zipkin := factories.Receivers["zipkin"].CreateDefaultConfig().(*zipkinreceiver.Config)
zipkin.Endpoint = zipkinHostPort
zipkin := factories.Receivers["zipkin"].CreateDefaultConfig().(*zipkinreceiver.Config)
if zipkin.Endpoint != "" && zipkin.Endpoint != ports.PortToHostPort(0) {
recvs["zipkin"] = zipkin
}
return recvs
Expand Down
8 changes: 4 additions & 4 deletions cmd/opentelemetry/app/defaultconfig/default_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ func TestService(t *testing.T) {
},
},
{
viperConfig: map[string]interface{}{"collector.zipkin.host-port": "localhost:9411"},
cfg: ComponentSettings{
ComponentType: AllInOne,
StorageType: "elasticsearch",
ZipkinHostPort: "localhost:9411",
ComponentType: AllInOne,
StorageType: "elasticsearch",
},
service: configmodels.Service{
Extensions: []string{"health_check"},
Expand Down Expand Up @@ -145,7 +145,7 @@ func TestService(t *testing.T) {
}
factories := defaultcomponents.Components(v)
test.cfg.Factories = factories
cfg, err := test.cfg.CreateDefaultConfig()
cfg, err := test.cfg.createDefaultConfig()
if test.err != "" {
require.Nil(t, cfg)
assert.Contains(t, err.Error(), test.err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,7 @@ func getTagFromSpanKind(spanKind pdata.SpanKind) (dbmodel.KeyValue, bool) {

func getTagFromStatusCode(statusCode pdata.StatusCode) (dbmodel.KeyValue, bool) {
return dbmodel.KeyValue{
Key: tracetranslator.TagStatusCode,
// TODO is this ok?
Key: tracetranslator.TagStatusCode,
Value: statusCode.String(),
Type: dbmodel.StringType,
}, true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func TestConvertSpan(t *testing.T) {
StartTimeMillis: 1,
Tags: []dbmodel.KeyValue{
{Key: "span.kind", Type: dbmodel.StringType, Value: "client"},
{Key: "status.code", Type: dbmodel.StringType, Value: "Cancelled"},
{Key: "status.code", Type: dbmodel.StringType, Value: "STATUS_CODE_CANCELLED"},
{Key: "error", Type: dbmodel.BoolType, Value: "true"},
{Key: "status.message", Type: dbmodel.StringType, Value: "messagetext"},
{Key: "foo", Type: dbmodel.BoolType, Value: "true"},
Expand Down
10 changes: 7 additions & 3 deletions cmd/opentelemetry/app/receiver/zipkinreceiver/zipkin_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ func (f Factory) Type() configmodels.Type {
// This function implements OTEL component.ReceiverFactoryBase interface.
func (f Factory) CreateDefaultConfig() configmodels.Receiver {
cfg := f.Wrapped.CreateDefaultConfig().(*zipkinreceiver.Config)
if f.Viper.IsSet(collectorApp.CollectorZipkinHTTPHostPort) {
cfg.Endpoint = f.Viper.GetString(collectorApp.CollectorZipkinHTTPHostPort)
}

// using the CollectorOptions to parse the zipkin host port b/c it has special processing
// for combining the port and host:port zipkin flags
collectorOpts := &collectorApp.CollectorOptions{}
collectorOpts.InitFromViper(f.Viper)
cfg.Endpoint = collectorOpts.CollectorZipkinHTTPHostPort

return cfg
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"go.opentelemetry.io/collector/receiver/zipkinreceiver"

jConfig "github.com/jaegertracing/jaeger/pkg/config"
"github.com/jaegertracing/jaeger/ports"
)

func TestDefaultValues(t *testing.T) {
Expand All @@ -38,7 +39,7 @@ func TestDefaultValues(t *testing.T) {

factory := &Factory{Viper: v, Wrapped: zipkinreceiver.NewFactory()}
cfg := factory.CreateDefaultConfig().(*zipkinreceiver.Config)
assert.Equal(t, "0.0.0.0:9411", cfg.Endpoint)
assert.Equal(t, ports.PortToHostPort(0), cfg.Endpoint)
}

func TestLoadConfigAndFlags(t *testing.T) {
Expand Down
27 changes: 4 additions & 23 deletions cmd/opentelemetry/cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ import (

"github.com/spf13/viper"
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/config/configmodels"
"go.opentelemetry.io/collector/service"
"go.opentelemetry.io/collector/service/builder"

jflags "github.com/jaegertracing/jaeger/cmd/flags"
"github.com/jaegertracing/jaeger/cmd/opentelemetry/app"
Expand Down Expand Up @@ -55,32 +53,15 @@ func main() {
v := viper.New()

cmpts := defaultcomponents.Components(v)
cfgFactory := func(otelViper *viper.Viper, f component.Factories) (*configmodels.Config, error) {
cfgConfig := defaultconfig.ComponentSettings{
ComponentType: defaultconfig.Agent,
Factories: cmpts,
}
cfg, err := cfgConfig.CreateDefaultConfig()
if err != nil {
return nil, err
}
if len(builder.GetConfigFile()) > 0 {
otelCfg, err := service.FileLoaderConfigFactory(otelViper, f)
if err != nil {
return nil, err
}
err = defaultconfig.MergeConfigs(cfg, otelCfg)
if err != nil {
return nil, err
}
}
return cfg, nil
cfgConfig := defaultconfig.ComponentSettings{
ComponentType: defaultconfig.Agent,
Factories: cmpts,
}

svc, err := service.New(service.Parameters{
ApplicationStartInfo: info,
Factories: cmpts,
ConfigFactory: cfgFactory,
ConfigFactory: cfgConfig.DefaultConfigFactory(v),
})
handleErr(err)

Expand Down
33 changes: 5 additions & 28 deletions cmd/opentelemetry/cmd/all-in-one/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ import (
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/config/configmodels"
"go.opentelemetry.io/collector/service"
"go.opentelemetry.io/collector/service/builder"
"go.uber.org/zap"

collectorApp "github.com/jaegertracing/jaeger/cmd/collector/app"
jflags "github.com/jaegertracing/jaeger/cmd/flags"
"github.com/jaegertracing/jaeger/cmd/opentelemetry/app"
"github.com/jaegertracing/jaeger/cmd/opentelemetry/app/defaultcomponents"
Expand Down Expand Up @@ -80,37 +78,16 @@ func main() {
}

cmpts := defaultcomponents.Components(v)
cfgFactory := func(otelViper *viper.Viper, f component.Factories) (*configmodels.Config, error) {
collectorOpts := &collectorApp.CollectorOptions{}
collectorOpts.InitFromViper(v)
cfgOpts := defaultconfig.ComponentSettings{
ComponentType: defaultconfig.AllInOne,
Factories: cmpts,
StorageType: storageType,
ZipkinHostPort: collectorOpts.CollectorZipkinHTTPHostPort,
}
cfg, err := cfgOpts.CreateDefaultConfig()
if err != nil {
return nil, err
}

if len(builder.GetConfigFile()) > 0 {
otelCfg, err := service.FileLoaderConfigFactory(otelViper, f)
if err != nil {
return nil, err
}
err = defaultconfig.MergeConfigs(cfg, otelCfg)
if err != nil {
return nil, err
}
}
return cfg, nil
cfgConfig := defaultconfig.ComponentSettings{
ComponentType: defaultconfig.AllInOne,
Factories: cmpts,
StorageType: storageType,
}

svc, err := service.New(service.Parameters{
ApplicationStartInfo: info,
Factories: cmpts,
ConfigFactory: cfgFactory,
ConfigFactory: cfgConfig.DefaultConfigFactory(v),
})
handleErr(err)

Expand Down
Loading

0 comments on commit 5b24f20

Please sign in to comment.