Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Redhat install updates hsv2 #208

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
30 changes: 29 additions & 1 deletion TheHive4/Administration/Cassandra_security.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,35 @@

## Authentication with Cassandra

### Cassandra Configurration

### Cassandra Configuration

Enable Password Authentication in /etc/cassandra/conf/cassandra.yaml (by default, authentication is set to allow all)

```yml
authenticator: PasswordAuthenticator
```

Create new Super User

```bash
cqlsh -u cassandra -p cassandra
```

```sql
CREATE ROLE root_user_name with SUPERUSER = true AND LOGIN = true and PASSWORD = 'password';
EXIT;
```

Authenticate with new Super User Role and Drop Default cassandra role

```sql
LIST ROLES;
DROP ROLE cassandra;
LIST ROLES;
```

Creation of TheHive Role

```sql
CREATE ROLE thehive WITH PASSWORD = 'thehive1234' AND LOGIN = true;
Expand Down
20 changes: 16 additions & 4 deletions TheHive4/Installation/Install_rpm.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Installation Guide on RedHat-like OS

This page is a step by step installation and configuration guide to get an TheHive 4 instance up and running on systems using DEB packages repositories.
This page is a step by step installation and configuration guide to get an TheHive 4 instance up and running on systems using RPM packages repositories.

## Table of content
## Table of contents

- [Java Virtual Machine](#java-virtual-machine)
- [Cassandra database](#cassandra-database)
Expand Down Expand Up @@ -44,7 +44,7 @@ Apache Cassandra is a scalable and high available database. TheHive supports ver

### Install from repository

- Add the Apache repository of Cassandra to `/etc/yum.repos.d/cassandra.repo`
- Add the Apache repository of Cassandra by creating and editing `/etc/yum.repos.d/cassandra.repo`

```bash
[cassandra]
Expand All @@ -63,7 +63,14 @@ yum install -y cassandra

By default, data is stored in `/var/lib/cassandra`.

- Start the service

```bash
service cassandra start
```

### Configuration
⚠️ **Note** Python3 is not supported in Cassandra v 3.11 (v 2.7 required for cqlsh)

Start by changing the `cluster_name` with `thp`. Run the command `cqlsh`:

Expand All @@ -77,7 +84,12 @@ Then run:
nodetool flush
```

Configure Cassandra by editing `/etc/cassandra/conf/cassandra.yaml` file.
Configure Cassandra by backing up and then editing `/etc/cassandra/conf/cassandra.yaml` file.

```bash
cd /etc/cassandra/conf
cp cassandra.yaml cassandra.yaml.backup
```

```yml
# content from /etc/cassandra/conf/cassandra.yaml
Expand Down