carbonblack / cb-fidelis-connector Goto Github PK
View Code? Open in Web Editor NEWCarbon Black Fidelis XPS Connector
License: MIT License
Carbon Black Fidelis XPS Connector
License: MIT License
Here is the stack trace:
2016-11-16 08:03:43,700: flask: ERROR: Exception on /fidelis/register [POST]
Traceback (most recent call last):
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.3/build/cb-fidelis-connector/out00-PYZ.pyz/flask.app", line 1988, in wsgi_app
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.3/build/cb-fidelis-connector/out00-PYZ.pyz/flask.app", line 1641, in full_dispatch_request
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.3/build/cb-fidelis-connector/out00-PYZ.pyz/flask.app", line 1544, in handle_user_exception
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.3/build/cb-fidelis-connector/out00-PYZ.pyz/flask.app", line 1639, in full_dispatch_request
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.3/build/cb-fidelis-connector/out00-PYZ.pyz/flask.app", line 1625, in dispatch_request
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.3/build/cb-fidelis-connector/out00-PYZ.pyz/cbopensource.connectors.fidelis.bridge", line 268, in handle_fidelis_registration
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.3/build/cb-fidelis-connector/out00-PYZ.pyz/cbapi.cbapi", line 308, in sensors
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.3/build/cb-fidelis-connector/out00-PYZ.pyz/requests.models", line 862, in raise_for_status
HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: https://every-year-tennis.my.carbonblack.io/api/v1/sensor?ip=5.89.33.166&
2016-11-16 08:03:43,701: werkzeug: INFO: 127.0.0.1 - - [16/Nov/2016 08:03:43] "POST /fidelis/register HTTP/1.0" 500 -
Log, at INFO level, what data the Fidelis appliance is sending us during a registration request, and note when the registration request expires.
The URL for the logo is the logo's path on disk. Which leads to:
2016/09/21 12:58:13 [error] 42496#0: *122943 open() "/etc/nginx/html/usr/share/cb/integrations/carbonblack_fidelis_bridge/fidelis.png" failed (2: No such file or directory), client: 12.12.246.42, server: foo-bar.my.carbonblack.io, request: "GET /usr/share/cb/integrations/carbonblack_fidelis_bridge/fidelis.png HTTP/1.1", host: "foo-bar.my.carbonblack.io", referrer: "https://foo-bar.my.carbonblack.io/"
Note GET /usr/share/cb/integrations/carbonblack_fidelis_bridge/fidelis.png HTTP/1.1"
stack trace at startup:
[root@foo-bar ~]# service cb-fidelis-bridge start
Starting cb-fidelis-bridge: Traceback (most recent call last):
File "<string>", line 19, in <module>
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.2/build/cb-fidelis-connector/out00-PYZ.pyz/cbopensource.connectors.fidelis.bridge", line 94, in __init__
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.2/build/cb-fidelis-connector/out00-PYZ.pyz/requests.api", line 69, in get
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.2/build/cb-fidelis-connector/out00-PYZ.pyz/requests.api", line 50, in request
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.2/build/cb-fidelis-connector/out00-PYZ.pyz/requests.sessions", line 465, in request
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.2/build/cb-fidelis-connector/out00-PYZ.pyz/requests.sessions", line 594, in send
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.2/build/cb-fidelis-connector/out00-PYZ.pyz/requests.sessions", line 196, in resolve_redirects
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.2/build/cb-fidelis-connector/out00-PYZ.pyz/requests.sessions", line 573, in send
File "/home/builduser/rpmbuild/BUILD/python-cb-fidelis-bridge-1.2/build/cb-fidelis-connector/out00-PYZ.pyz/requests.adapters", line 431, in send
requests.exceptions.SSLError: hostname 'localhost' doesn't match either of '*.my.carbonblack.io', 'my.carbonblack.io'
config:
[bridge]
listener_port=8000
listener_address=0.0.0.0
listener_api_token=yyy
carbonblack_server_url=https://foo-bar.my.carbonblack.io
carbonblack_server_token=xxx
carbonblack_server_sslverify=1
feed_sync_interval=15
debug=0
looks like a request to localhost is hardcoded in there somewhere. changing carbonblack_server_sslverify
to 0 has no impact.
[root@foo-bar ~]# rpm -qa | grep fidelis
python-cb-fidelis-bridge-1.2-1.x86_64
connector requires a server API token to query the REST API. The bridge configuration page returned by /
endpoint includes all the entries from the config, including the server token.
server token should be stripped.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.