Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kibana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ USER 0

COPY vendored_tar_src/kibana-oss-6.8.1 ${HOME}/
COPY vendored_tar_src/opendistro_security_kibana_plugin-0.10.0.4/ ${HOME}/plugins/opendistro_security_kibana_plugin-0.10.0.4/
COPY lib/openshift_logging_plugin/ ${HOME}/plugins/openshift_logging_plugin/

RUN chmod -R og+w ${HOME}/
ADD probe/ /usr/share/kibana/probe/
Expand Down
1 change: 1 addition & 0 deletions kibana/Dockerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ USER 0

COPY vendored_tar_src/kibana-oss-6.8.1 ${HOME}/
COPY vendored_tar_src/opendistro_security_kibana_plugin-0.10.0.4/ ${HOME}/plugins/opendistro_security_kibana_plugin-0.10.0.4/
COPY lib/openshift_logging_plugin/ ${HOME}/plugins/openshift_logging_plugin/

RUN chmod -R og+w ${HOME}/
ADD probe/ /usr/share/kibana/probe/
Expand Down
6 changes: 5 additions & 1 deletion kibana/kibana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
# The Kibana server's name. This is used for display purposes.
#server.name: "your-hostname"

#Bug 1832783 - CVE-2020-10743 kibana: X-Frame-Option not set by default might lead to clickjacking
#override www-authenticate to keep browser auth box from popping
server.customResponseHeaders: {"x-frame-options":"deny", "www-authenticate":"proxy"}

# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["https://elasticsearch.openshift-logging.svc.cluster.local:9200"]

Expand Down Expand Up @@ -123,4 +127,4 @@ opendistro_security.multitenancy.tenants.enable_private: true

# addresses https://access.redhat.com/security/cve/CVE-2020-7013
# addresses https://access.redhat.com/security/cve/CVE-2020-7015
metrics.enabled: false
metrics.enabled: false
2 changes: 2 additions & 0 deletions kibana/lib/openshift_logging_plugin/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
extends: "@elastic/kibana"
3 changes: 3 additions & 0 deletions kibana/lib/openshift_logging_plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
npm-debug.log*
node_modules
/build/
23 changes: 23 additions & 0 deletions kibana/lib/openshift_logging_plugin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# openshift_logging_plugin

> OpenShift Logging addons for Kibana

---

## Development

See the [kibana contributing guide](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md) for instructions setting up your development environment. Once you have completed that, use the following npm tasks.

- `npm start`

Start kibana and have it include this plugin

- `npm start -- --config kibana.yml`

You can pass any argument that you would normally send to `bin/kibana` by putting them after `--` when running `npm start`

- `npm run build`

Build a distributable archive

For more information about any of these commands run `npm run ${task} -- --help`.
28 changes: 28 additions & 0 deletions kibana/lib/openshift_logging_plugin/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { resolve } from 'path';

export default function (kibana) {
return new kibana.Plugin({
name: 'openshift_logging',
id: 'openshift_logging',
require: ['elasticsearch'],

uiExports: {

hacks: [
//the path here is misleading as it matches the 'name' not actual path
'plugins/openshift_logging/interceptors'
]

},

config(Joi) {
return Joi.object({
enabled: Joi.boolean().default(true),
}).default();
},

init(server, options) {
}

});
};
Loading