# Yapılandırma # Veritabanı ve Dizin Yapılandırması TheHive, verileri ve dizini yönetmek için Cassandra ve Elasticsearch veritabanlarını kullanır. Kuruluma göre, örnek kullanabilir: **Temel Yapılandırma** TheHive için tipik bir veritabanı yapılandırması şu şekildedir: ``` ## Database configuration db { provider = janusgraph janusgraph { ## Storage configuration storage { backend = cql hostname = ["IP_ADDRESS"] cql { cluster-name = thp keyspace = thehive } } ## Index configuration index.search { backend = elasticsearch hostname = ["127.0.0.1"] index-name = thehive } } } ``` **Mümkün parametrelerin listesi** Parametre Tipi Açıklama
Parametre | Tipi | Açıklama |
---|---|---|
`provider` | string | provider adı. Varsayılan `janusgraph` |
`storage` | dict | storage configuration (deepolama yapılandırması) |
`storage.backend` | string | storage type. Can be `cql` or `berkeleyje` (depolama türü.) |
`storage.hostname` | list of string | list of IP addresses or hostnames when using `cql` backend (cql arka ucunu kullanırken IP adreslerinin veya ana bilgisayar adlarının listesi) |
`storage.directory` | string | local path for data when using `berkeleyje` backend (BerkeleyJE arka uç kullanıldığında veri için yerel yol.) |
`storage.username` | string | account username with `cql` backend if Cassandra auth is configured (Eğer Cassandra kimlik doğrulaması yapılandırılmışsa, cql arka uç ile hesap kullanıcı adı.) |
`storage.password` | string | account password with `cql` backend if Cassandra auth is configured (Cassandra kimlik doğrulaması yapılandırıldıysa, cql arka uç için hesap şifresi.) |
`storage.port` | integer | port number with `cql` backend (`9042` by default). Change this if using an alternate port or a dedicated port number when using SSL with Cassandra (Cql arka uç ile bağlantı noktası numarası (varsayılan olarak 9042). Cassandra ile SSL kullanıyorsanız alternatif bir bağlantı noktası veya özel bir bağlantı noktası numarası kullanmak için bunu değiştirin.) |
`storage.cql` | dict | configuration for `cql` backend *if used* (Kullanıldığında cql backend için yapılandırma.) |
`storage.cql.cluster-name` | string | name of the cluster name used in the configuration of Apache Cassandra |
`storage.cql.keyspace` | string | Keyspace name used to store TheHive data in Apache Cassandra |
`storage.cql.ssl.enabled` | boolean | `false` by default. set it to `true` if SSL is used with Cassandra (Apache Cassandra yapılandırmasında kullanılan küme adı.) |
`storage.cql.ssl.truststore.location` | string | path the the truststore. Specify it when using SSL with Cassandra (TheHive verilerini depolamak için Apache Cassandra'da kullanılan keyspace adı.) |
`storage.cql.ssl.password` | string | password to access the truststore (Güven deposuna erişmek için şifre) |
`storage.cql.ssl.client-authentication-enabled` | boolean | Enables use of a client key to authenticate with Cassandra (Cassandra ile kimlik doğrulaması için bir istemci anahtarı kullanımını etkinleştirir.) |
`storage.cql.ssl.keystore.location` | string | path the the keystore. Specify it when using SSL and client auth. with Cassandra (Keystore'un yolu. Cassandra ile SSL ve istemci kimlik doğrulaması kullanılırken belirtiniz.) |
`storage.cql.ssl.keystore.keypassword` | string | password to access the key in the keystore (Anahtara erişmek için şifre) |
`storage.cql.ssl.truststore.storepassword` | string | password the access the keystore (Keystore'a erişim için şifre) |
`index.search` | dict | configuration for indexes (Dizinler için yapılandırma) |
`index.search.backend` | string | index engine. Default: `lucene` provided with TheHive. Can also be `elasticsearch` (Dizin motoru. Varsayılan: TheHive ile sağlanan lucene. Ayrıca elasticsearch olabilir.) |
`index.search.directory` | string | path to folder where indexes should be stored, when using `lucene` engine (Lucene motoru kullanıldığında dizinlerin depolanacağı klasörün yolu.) |
`index.search.hostname` | list of string | list of IP addresses or hostnames when using `elasticsearch` engine (Elasticsearch motoru kullanıldığında IP adresleri veya ana bilgisayar adlarının listesi.) |
`index.search.index-name` | string | name of index, when using `elasticseach` engine (Elasticsearch motorunu kullandığınızda dizin adı.) |
`index.search.elasticsearch.http.auth.type: basic` | string | `basic` is the only possible value (basic tek mümkün değerdir.) |
`index.search.elasticsearch.http.auth.basic.username` | string | Username account on Elasticsearch (Elasticsearch'teki kullanıcı adı hesabı) |
`index.search.elasticsearch.http.auth.basic.password` | string | Password of the account on Elasticsearch (Elasticsearch üzerindeki hesabın şifresi) |
`index.search.elasticsearch.ssl.enabled` | boolean | Enable SSL `true/false`(SSL'yi etkinleştir true/false) |
`index.search.elasticsearch.ssl.truststore.location` | string | Location of the truststore (Güven deposunun konumu) |
`index.search.elasticsearch.ssl.truststore.password` | string | Password of the truststore (Güven deposunun şifresi) |
`index.search.elasticsearch.ssl.keystore.location` | string | Location of the keystore for client authentication (İstemci kimlik doğrulaması için keystore'un konumu) |
`index.search.elasticsearch.ssl.keystore.storepassword` | string | Password of the keystore (Keystore'un şifresi) |
`index.search.elasticsearch.ssl.keystore.keypassword` | string | Password of the client certificate (İstemci sertifikasının şifresi) |
`index.search.elasticsearch.ssl.disable-hostname-verification` | boolean | Disable SSL verification `true/false`(SSL doğrulamasını devre dışı bırak true/false) |
`index.search.elasticsearch.ssl.allow-self-signed-certificates` | boolean | Allow self signe certificates `true/false` (Kendinden imzalı sertifikalara izin ver true/false) |
Bu yapılandırmada, tüm TheHive simgerleri aynı yapılandırmaya sahip olmalıdır. Elasticsearch yapılandırması script.allowed\_types için varsayılan değeri kullanmalı veya aşağıdaki yapılandırma satırını içermelidir.
``` script.allowed_types: inline,stored ``` # Dosya Depolama Yapılandırması Dosya depolama yapılandırması# TheHive yerel veya dağıtılmış dosya sistemlerini kullanacak şekilde yapılandırılabilir. **Local veya NFS :**Yapılandırma dosyasının güncellenmesi için TheHive hizmetinin yeniden başlatılması gerekir.
# Akka Yapılandırması Akka, Java ve Scala için yüksek düzeyde eşzamanlı, dağıtılmış ve esnek mesaj odaklı uygulamalar oluşturmaya yönelik bir araç setidir \-- [https://akka.io/](https://akka.io/) Akka, TheHive'in birçok düğümünü bir araya getirerek ve sorunsuz bir kullanıcı deneyimi sunarak çalışmasını sağlamak için kullanılır. **Temel yapılandırma** İyi bir küme kurulumu, TheHive uygulamalarının en az 3 düğümünü gerektirir. Her düğüm için Akka şu şekilde yapılandırılmalıdır: ``` akka { cluster.enable = on actor { provider = cluster } remote.artery { canonical { hostname = "Parameter | Type | Description |
---|---|---|
`wsConfig.proxy.host` | string | The hostname of the proxy server |
`wsConfig.proxy.port` | integer | The port of the proxy server |
`wsConfig.proxy.protocol` | string | The protocol of the proxy server. Use "http" or "https". Defaults to "http" if not specified |
`wsConfig.proxy.user` | string | The username of the credentials for the proxy server |
`wsConfig.proxy.password` | string | The password for the credentials for the proxy server |
`wsConfig.proxy.ntlmDomain` | string | The NTLM domain |
`wsConfig.proxy.encoding` | string | The realm's charset |
`wsConfig.proxy.nonProxyHosts` | list | The list of hosts on which proxy must not be used |
TheHive düğümlerinden oluşan bir küme söz konusu olduğunda, tüm düğümler aynı gizli anahtarla aynı secret.conf dosyasına sahip olmalıdır. Gizli anahtar kullanıcı oturumları oluşturmak için kullanılır.
# SSL Yapılandırması **HTTPS kullanarak TheHive'a bağlanın** SSL katmanını yönetmek için bir ters proxy kullanmanızı öneririz; Örneğin, Nginx. **Reference**: [Configuring HTTPS servers](https://nginx.org/en/docs/http/configuring_https_servers.html) on [nginx.org](https://nginx.org)Parameter | Type | Description |
---|---|---|
`wsConfig.ssl.keyManager.stores` | list | Stores client certificates (see [\#certificate-manager](https://docs.strangebee.com/thehive/setup/configuration/ssl/#certificate-manager) ) |
`wsConfig.ssl.trustManager.stores` | list | Stored custom Certificate Authorities (see [\#certificate-manager](https://docs.strangebee.com/thehive/setup/configuration/ssl/#certificate-manager) |
`wsConfig.ssl.protocol` | string | Defines a different default protocol (see [\#protocols](https://docs.strangebee.com/thehive/setup/configuration/ssl/#protocols)) |
`wsConfig.ssl.enabledProtocols` | list | List of enabled protocols (see [\#protocols](https://docs.strangebee.com/thehive/setup/configuration/ssl/#protocols)) |
`wsConfig.ssl.enabledCipherSuites` | list | List of enabled cipher suites (see [\#ciphers](https://docs.strangebee.com/thehive/setup/configuration/ssl/#ciphers)) |
`wsConfig.ssl.loose.acceptAnyCertificate` | boolean | Accept any certificates *true / false* |
Bu özellik, THeHive 5.x'in Platinum planı ile yalnızca mevcuttur.
TheHive, veritabanındaki veri saklama politikasını yönetmeye yönelik bir özelliğe sahiptir, bu özellik varsayılan olarak etkin değildir. Stratejiler İki strateji mevcuttur: 1. Hassas değerleri <redacted> ile değiştirin 2. Verileri silme **Değerleri <redacted> ile Değiştirin** - Vakalar için aşağıdaki alanlar redakte edilir: davanin `summary` ve `message` yorumların `message` görev günlüklerinde `message` `gdpr.dataTypesToDelete` yapılandırma özelliğinde seçilen ve doldurulan veri tipleri için gözlemlenebilirlerin `message` sayfaların `content` TTP'lerdeki prosedürlerin `description` - Uyarılar için aşağıdaki alanlar redakte edilir: uyarı `message` gözlemlenebilirlerin `message`(bkz. `gdpr.dataTypesToDelete` yapılandırma özelliği) prosedürleri̇n `description`(ttp) **Denetimler İçin:** alan `details` redakte edilmiştir. **Verileri Sil** Strateji `delete` seçilirse: Vaka ve bileşenleri - *tasks, task logs, procedures, comments, pages, custom events in timelines, values of custom field and observables* - are deleted Uyarı ve bileşenleri- *procedures, comments, values of custom field and observables* - are deleted. Denetim silinir **Saklama** RetentionPeriod parametresi, silinecek veya redakte edilecek verilerin minimum yaşını tanımlar. GDPR süreci, bu ayardan daha eski verilere uygulanacaktır. Yaş, son güncelleme tarihine (veya hiç güncellenmemişse oluşturma tarihine) dayanır. Biçim bir sayı ve bir zaman birimidir. Desteklenen birimler şunlardır: gün: `d`, `day` saat: `h`, `hr`, `hour` dakika: `m`, `min`, `minute` saniye: `s`, `sec`, `second` milisaniye: `ms`, `milli`, `millisecond` **Yapılandırma** Bunu etkinleştirmek için /etc/thehive/application.conf yapılandırma dosyası güncellenmelidir. Aşağıdaki yapılandırmayı dosyaya ekleyin: ``` gdpr { enabled = true ## Format http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html ## Every Sunday at 02:30 schedule = "0 30 2 ? * SUN" ## Possible GDPR strategies: ## delete: remove the documents ## redact: replace sensitive values by "