I am trying to set up security for KIbana in docker setup and facing some issues

Let me elaborate.
1.The set up is inside the Docker container.
2.We have this architecture filebeat->logstash>elasticsearch->Kibana
3.I have enabled security in kibana,set up the password authentication,given the username and password in elasticsearch.yml
4.I am getting the login page for kibana
5.Issue is that once I enter the elastic credentials it does not take login to kibana page,insated it comes back to the credential page again.

The credentials are correct,whenever I try to enter a wrong credential, it throws errors ,so confirming that it is the correct credential which I am entering.
I have done the configurations in windows and it is successful,however I am having issue in docker.

The version which I am using is compatible according to the metrix, I am using 7.9 kibana and elasticsearch
Logs shows authentication to elasticsearch failed.

Please advise.

Go to Source
Author: Sneha

SQLite3 column truncation even though column is wide enough

I have a table with schema

CREATE TABLE test(id INTEGER NOT NULL PRIMARY KEY, numbers TEXT);

and values

INSERT INTO test(numbers) VALUES('1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100');

And if I run these commands

.mode box
.headers on
.width 0 400
.once -e
SELECT * FROM test;

I get output as

┌────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ id │                                                                                                                                                                                                     numbers                                                                                                                                                                                                      │
├────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ 1  │ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86 │
└────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

numbers column gets truncated even though the headers are not and the column is wide enough.
I tried increasing width value but still wouldn’t work

This happens with box, column, table and markdown modes only. Other modes work fine.

What am I doing wrong?

I am using SQLite version 3.33.0 2020-08-14 13:23:32

Go to Source
Author: just_chilling

Openresty cookies whitelist when using proxy_pass

I’m setting up an openresty reverse proxy that will dispatch traffic to one of 2 backends depending on the path.

I would like certain cookies from backend1 not to be passed to backend2.

How should I do ?

Here is an my nginx.conf :

worker_processes 1;
error_log stderr;

env BACKEND_URL;
env BACKEND2_URL;

events {
    worker_connections 1024;
}
http {
    resolver local=on;

    server {
        listen 80;

        root   /usr/share/nginx/html;
        include       /usr/local/openresty/nginx/conf/mime.types;
        
        set_by_lua $backend_url 'return os.getenv("BACKEND_URL")';
        set_by_lua $backend2_url 'return os.getenv("BACKEND2_URL")';

        location / {
            try_files $uri $uri/ /index.html;
        }

        location ~ /backend/(.*)$ {
            proxy_pass $backend_url$1$is_args$args;
        }

        location /backend2/ {
            access_by_lua_block {
                
            }
            proxy_pass $backend2_url;
        }
    }
}

Go to Source
Author: Hedi

Error found when loading /etc/profile and UEFI permission denied

If I turn on my computer normally:



/etc/profile.d/01-locale-fix.sh: line 2: /usr/bin/locale-check: No such file or directory

 
As a result the session will not be configured correctly.  
You should fix the problem as soon as feasible.

Grub Boot:

Kali GNU/Linux, with Linux 5.4.0.-45-generic
Kali GNU/Linux, with Linux 5.4.0.-45-generic (recovery mode)
Kali GNU/Linux, with Linux 5.2.0.-42-generic
Kali GNU/Linux, with Linux 5.2.0.-42-generic (recovery mode)

I select the second option:

efi stub secure boot 

**DPKG** 
Reading cache
Can not upgrade
An upgrade from 'kali-rolling' to 'focal' is not suported with this tool.

**ROOT**
Cannot open access to console. The root account is locked see sulogin(8) man page for more details." 

[![system-summary][1]][1]


  [1]: https://i.stack.imgur.com/rXRO8.jpg


The options on boot don't recognize the USB I'm using to try to install Ubuntu again (Ubuntu 18.04 "Bionic Beaver").

I don't understand why the option for Ubuntu is not listed, since I have Ubuntu 20.04 not Kali Linux. 

What can I do?

Go to Source
Author: user197536

Tool for goods overview for employees

I’m looking for a tool that will help me create a very simple editable sort of (web)app-thing, which will work as shown on this image. I don’t know how to call such a thing, hence I have to describe it.

Basically the first screen shows 5-10 small icons-windows (A-J), all of them are hypertext links. When you click one of them (B in the image), you are taken to a different screen which could contain either another sort of junction like the first screen (B1-B20), or it could contain some final screen with desired information.

The idea is, that the company makes goods and ships them to multiple countries, but the goods and packing directions differ. The created app would allow employees to easily find what goods ship to which country and how they should be packaged.

So the first screen would contain country flags/names (A-J). After clicking on a country, you would be either taken to:

  • or a screen with goods and their packaging info for that specific country
  • a screen with said countrys regions (B1-B20) if goods and packaging differ by region and those region windows/icons would then take you to the final screen mentioned above

I know this is easily created in powerpoint with hypertext links, but this solution is not ideal, as it’s not that easily accessible at anytime from anywhere. A web app seems ideal.

I would be able to create this with my basic HTML/CSS/JS knowledge, but my skills aren’t good enough to create an administration for this app and the company would be dependant on me for editing the information, which isn’t good. It would be best if a manager could easily edit the information.

Go to Source
Author: Welsy

iPhone 6 “Cannot Get Mail The mail server Imap.gmail.com is not responding. Please make sure you have added the correct account in mail settings”

Both my iPhone 6 & my Lenovo Yoga 80 with Windows 10 will not send or show new emails. Also Lenovo I cannot delete files, or copy/paste. The Lenovo was the only device taken to repair guy 8/27/2020, but I used my iPhone 6 for its hotspot & usb tethered it to the Lenovo to transfer photos (which didn’t work) Now I see he added me to a Domain, he added an email I do not own to my Lenovo admin, lowered all security, home screen has Microsoft Edge & Personal Edge on Lenovo. I had $800 missing from my bank in May. A common “friend” offered HIS WiFi password in February! How do I get my email back on iPhone & deal with this hack? I’ve read if I’m targeted I’m S.O.L. ? Will a VPN on router help? Must I buy all new devices to lose targeted hacks? Oh, I did a reset (all of my recovery dates were missing) yet TPM refuses to clear. I did change computer name. I am moving in 2 weeks & need email!!

Go to Source
Author: tFlag

Theme/Plugins installation failed problem

I recently installed a wordpress site from Plesk panel.

I can install themes and plugins from plesk panel without a problem but when I try to add a new theme from the WP dashboard, it gives me the following error: “An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.”

It is not just about themes. When I try to install plugins from WP dashboard I encounter “Installation failed: 403 Forbidden HTML” error…Server Error 403 Forbidden You do not have permission to access this document.

Another problem is the Elementor Widget Panel does not load and has the continuously spinning. I installed it from the Plesk panel. It is like WP trying to access some files but it just can’t.

I feel like all those problems have a link with each other but couldn’t find the reason yet.

Go to Source
Author: mesakon

docker run vs docker-compose – different results?

I have just started exploring Docker and am having trouble with docker commit/-compose.

I have copied a file into /root/.guacamole/lib (in the container) and then created an image using docker commit.

An ls of the relevant path in the container using

docker run -it --name="name" image bash

confirms that the file exists, but when the following docker-compose file sets up the container, the file is missing, even though it reports using the same image.

Any idea why that should be?

Thanks

$ cat docker-compose.yml
version: "2"
services:
  guacd:
    image: "guacamole/guacd"
    container_name: guacd
    hostname: guacd
    restart: always
    volumes:
      - "/data/shared/guacamole/guacd/data:/data"
      - "/data/shared/guacamole/guacd/conf:/conf:ro"
    expose:
      - "4822"
    ports:
      - "4822:4822"
    network_mode: bridge

  guac2:
    image: "guac2"
    container_name: guac2
    hostname: guac2
    restart: always
    volumes:
      - "/data/shared/guacamole/guacamole/guac-home:/data"
      - "/data/shared/guacamole/guacamole/conf:/conf:ro"
    expose:
      - "8080"
    ports:
      - "8084:8080"
    network_mode: bridge
    environment:
      - "GUACD_HOSTNAME=pc.lan"
      - "GUACD_PORT=4822"
      - "MYSQL_HOSTNAME=pc.lan"
      - "MYSQL_PORT=3306"
      - "MYSQL_DATABASE=guacamole_db"
      - "MYSQL_USER=guacamole_user"
      - "MYSQL_PASSWORD=password"
      - "GUACAMOLE_HOME=/data"

Here is the terminal text:

user@pc:~$ docker run -it --name="test" guac2 bash
root@b6dcd7dda985:/opt/guacamole# cd /root/.g*/lib
root@b6dcd7dda985:~/.guacamole/lib# ls
mariadb-java-client-2.6.2.jar  mysql-connector-java-5.1.46-bin.jar  mysql-connector-java-5.1.46.jar
***[NB 3 files listed above]***
root@b6dcd7dda985:~/.guacamole/lib# exit
exit
user@pc:~$ docker stop test
test
user@pc:~$ docker rm test
test
user@pc:~$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
ea92c2db77f6        guac2               "/opt/guacamole/bin/…"   51 minutes ago      Up 51 minutes       0.0.0.0:8084->8080/tcp   guac2
52aea98f7e2c        guacamole/guacd     "/bin/sh -c '/usr/lo…"   About an hour ago   Up 57 minutes       0.0.0.0:4822->4822/tcp   guacd
user@pc:~$ docker stop guacd
guacd
user@pc:~$ docker stop guac2
guac2
user@pc:~$ docker rm guacd
guacd
user@pc:~$ docker rm guac2
guac2
user@pc:~$ docker-compose up -d
Creating guac2 ... done
Creating guacd ... done
user@pc:~$ docker exec -it guac2 bash
root@guac2:/opt/guacamole# cd /root/.g*/lib
root@guac2:~/.guacamole/lib# ls
mysql-connector-java-5.1.46-bin.jar  mysql-connector-java-5.1.46.jar
***[NB only 2 files listed above]***
root@guac2:~/.guacamole/lib# exit

Go to Source
Author: Gareth

Segmentation fault using a structure c++ and binary files

I have the next code, which use file in binary and the use of structure.

#include<iostream>
#include<fstream>
using namespace std;
struct Student {
   int roll_no;
   string name;
};
int main() {
   ofstream wf("student.dat", ios::out | ios::binary);
   if(!wf) {
      cout << "Cannot open file!" << endl;
      return 1;
   }
   Student wstu[3];
   wstu[0].roll_no = 1;
   wstu[0].name = "Ram";
   wstu[1].roll_no = 2;
   wstu[1].name = "Shyam";
   wstu[2].roll_no = 3;
   wstu[2].name = "Madhu";
   for(int i = 0; i < 3; i++)
      wf.write((char *) &wstu[i], sizeof(Student));
   wf.close();
   if(!wf.good()) {
      cout << "Error occurred at writing time!" << endl;
      return 1;
   }
   ifstream rf("student.dat", ios::in | ios::binary);
   if(!rf) {
      cout << "Cannot open file!" << endl;
      return 1;
   }
   Student rstu[3];
   for(int i = 0; i < 3; i++)
      rf.read((char *) &rstu[i], sizeof(Student));
   
   if(!rf.good()) {
      cout << "Error occurred at reading time!" << endl;
      return 1;
   }
   rf.close();
   cout<<"Student's Details:"<<endl;
   for(int i=0; i < 3; i++) {
      cout << "Roll No: " << wstu[i].roll_no << endl;
      cout << "Name: " << wstu[i].name << endl;
      cout << endl;
   }
   
   return 0;
}

I am getting a segmentation fault, running using the debugging, I have the next output:

....
Roll No: 3
45        cout << "Name: " << wstu[i].name << endl;
(gdb) s
Name: Madhu
46        cout << endl;
(gdb) s

43     for(int i=0; i < 3; i++) {
(gdb) s
49     return 0;
(gdb) s
33     Student rstu[3];
(gdb) s
Student::~Student (this=0x7fffffffd700, __in_chrg=<optimized out>) at f9.cpp:4
4   struct Student {
(gdb) s

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff72d3c71 in free () from /lib/x86_64-linux-gnu/libc.so.6

Why I am getting this segmentation?, it is seems that the problem is with the destructor of my structure, at the same time, the error is in the line 4. Why?

Go to Source
Author: Kintaro Oe

issue with ubuntu

when I install ubuntu after a week it went slow, as I am not technical user
my simple use with chrome and class recording only, but after some days it takes much time to start and when I open browser it take long time to load.
i am using 20 version of ubuntu but I get some updates so I updated. but next morning it did not start and ” failed to handle for ACIP object” shown.
as I search for solution and some how it is worked.
but I think issue is still there.
please can you tell me whats wrong with this,because of this I am not able to attend my online class.
please let me know the solution as soon as possible.

Go to Source
Author: anjali deo

MySQL Cluster Data node can’t get the node ID?

I have a MySQL Multi Node ( Cluster ) like this

A is ndb_mgmd and also the client

B and C is ndbd

I have successfully set up everything but the Data Node just cant get the Node Id.

In ndb_mgmd server when I use ndb_mgm and show, I got something like this:

Connected to Management Server at: xxxx:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2    @xxxxxxxx  (mysql-8.0.21 ndb-8.0.21, Nodegroup: 0)
id=3    @xxxxxxxx (mysql-8.0.21 ndb-8.0.21, Nodegroup: 0, *)

[ndb_mgmd(MGM)] 1 node(s)
id=1    @xxxxxxxx  (mysql-8.0.21 ndb-8.0.21)

[mysqld(API)]   1 node(s)
id=4    @xxxxxxxx  (mysql-8.0.21 ndb-8.0.21)

I even show NodeId=2 status and got this :

ndb_mgm> 2 status
Connected to Management Server at: xxxxxxxx:1186
Node 2: started (mysql-8.0.21 ndb-8.0.21)

The problem is in the Ndbd server somehow it cant get the ID:

2020-09-05 22:51:13 [ndbd] INFO     -- Angel connected to 'xxxxxxx:1186'
2020-09-05 22:51:43 [ndbd] ERROR    -- Failed to allocate nodeid, error: 'Error: Could not alloc node id at xxxxxxxxx port 1186: No free node id found for ndbd(NDB).'

Things i have tried :

  1. See if the config.ini got problem but everthing look fine: ndbd nodeid , etc
  2. Check my.cnf in ndbd server : The ndb-connectstring point to ndb_mgm server .

Thanks for reading this question .

Go to Source
Author: Ta219

Generate a custom nested layout by tinymce editor button

I create a new button in TinyMCE editor. And i want that new button of TinyMCE editor will show this below structure as dummy content while I press that button.

<div class="table-of-contents-container">
    <section class="table-of-contents">
        <h2>Topic</h2>
        <ul class="items">
            <li><a href="#">Settings</a></li>
            <li><a href="#">Controls</a>
                <ul>
                    <li><a href="#">Core Custom Controls</a></li>
                </ul>
            </li>
            <li><a href="#">Sections</a></li>
            <li><a href="#">Panels</a></li>
            <li><a href="#">Custom Controls, Sections, and Panels</a>
                <ul>
                    <li><a href="#">Customizer UI Standards</a></li>
                </ul>
            </li>
            <li><a href="#">Custom Setting Types</a>
            </li>
        </ul>
    </section><!-- .table-of-contents -->
</div>

In .js file how i join this whole html tag’s, class and id and output it. My wordPress version is 5.5.1. Please help me.

Go to Source
Author: Zahid Hossain

Fail2ban apache-noscript jail violation rules?

Which actions specifically are considered as violating apache noscript fail2ban module? I see that it correctly banned the ip that was looking for strange urls like “/admin” “/login” etc, but also blocked my ip and I checked the log for my ip and I didn’t see any suspicious actions. So in one case it worked good in another it didn’t.

Btw one of this line was considered as apache noscript violation. Why?

myip - - [05/Sep/2020:12:55:52 +0000] "GET /css/theme/jquery-ui.custom.css HTTP/1.1" 
myip - - [05/Sep/2020:12:55:52 +0000] "GET /img/icons/manifest.json HTTP/1.1" 
myip - - [05/Sep/2020:12:55:52 +0000] "GET /css/some.css HTTP/1.1" 
myip - - [05/Sep/2020:12:55:52 +0000] "GET /css/bootstrap.min.css HTTP/1.1" 
myip - - [05/Sep/2020:12:55:52 +0000] "GET /ww.js.map HTTP/1.1" 
myip - - [05/Sep/2020:12:55:52 +0000] "GET /ww.js.map HTTP/1.1" 

Btw, why are not attached the log files in the mail report? I edited in the fail2ban configuration the log to /access.log from /*access.log so hopefully it will help with this.

Go to Source
Author: luky