# Is it possible to have a hidden plugin with UI?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-have-a-hidden-plugin-with-ui/154835>\
**Category:** Kibana\
**Created:** [October 31, 2018, 12:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-have-a-hidden-plugin-with-ui/154835 "2018-10-31T12:08:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trex](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trex/32/34230_2.png) [@trex](https://discuss.elastic.co/u/trex)\
**Post date:** [October 31, 2018, 12:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-have-a-hidden-plugin-with-ui/154835/1 "2018-10-31T12:08:41Z")

</div>

_Kibana 6.2.4_

I created a hidden plugin (there is no icon in the left navbar). But I can't access a UI route.  
When I put this URL in browser [http://localhost:5601/ncz/app/alert](http://localhost:5601/ncz/app/alert), I get

```auto
{"statusCode":404,"error":"Not Found","message":"Unknown app alert"}

```

Though, I see my app server log among Kibana logs

```auto
server log [11:37:47.023] [info][alert] starting...

```

How can I add the UI route?

* * *

The app code on GitHub [https://github.com/sergibondarenko/alert](https://github.com/sergibondarenko/alert)  
Install instructions:

```auto
git clone git@github.com:sergibondarenko/alert.git
cd alert
npm install && npm install -g gulp
gulp sync --kibanahomepath=/path/to/kibana

```

* * *

Plugin index.js

```
module.exports = function (kibana) {
  return new kibana.Plugin({
    name: 'alert',
    require: [
      'kibana',
      'elasticsearch',
      'investigate_core',
      'saved_objects_api',
    ],
    uiExports: {
      navbarExtensions: ['plugins/alert/navbar_extensions/dashboard_button/dashboard_button'],
      apps: [{
        title: 'alert',
        id: 'alert',
        description: 'It is an extension',
        hidden: true,
        main: 'plugins/alert/app.js',
      }]
    },
    init: require('./server/init')
  });
};

```

init.js

```
import { once } from 'lodash';

const init = once(function (server) {
  server.log(['info', 'alert'], 'starting...');
});

export default function (server, options) {
  if (server.plugins.elasticsearch.status.state === 'green') {
    init(server);
  } else {
    server.plugins.elasticsearch.status.on('change', () => {
      if (server.plugins.elasticsearch.status.state === 'green') {
        init(server);
      }
    });
  }
};

```

Public app.js

```
import uiModules from 'ui/modules';
import uiRoutes from 'ui/routes';

import rootTemplate from './templates/root_template.html';

uiRoutes.enable();
uiRoutes
.when('/', {
  template: rootTemplate,
  controller: 'RootController',
});

const app = uiModules.get('apps/alert', []);
app.controller('RootController', function ($scope) {
  $scope.description = 'alert';
});
```

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [October 31, 2018, 10:22pm UTC](https://discuss.elastic.co/t/is-it-possible-to-have-a-hidden-plugin-with-ui/154835/2 "2018-10-31T22:22:52Z")

</div>

Corresponding github issue here: [https://github.com/elastic/kibana/issues/24907](https://github.com/elastic/kibana/issues/24907)

---

<div class="post-metadata">

**Author:** ![lovelysidhu](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@lovelysidhu](https://discuss.elastic.co/u/lovelysidhu)\
**Post date:** [November 16, 2018, 4:46pm UTC](https://discuss.elastic.co/t/is-it-possible-to-have-a-hidden-plugin-with-ui/154835/3 "2018-11-16T16:46:41Z")

</div>

This was indeed a great post buddy, I would love to come back and see more such post in near future. [😍](https://tobefrankmagazine.com/tech/jiofi-unlock-firmware-download/)[😍](https://alltechbest.com/)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 14, 2018, 4:46pm UTC](https://discuss.elastic.co/t/is-it-possible-to-have-a-hidden-plugin-with-ui/154835/4 "2018-12-14T16:46:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
