Categorygithub.com/aberestyak/elasticsearch-security-operator
modulepackage
0.0.0-20210601121840-7538329d3f44
Repository: https://github.com/aberestyak/elasticsearch-security-operator.git
Documentation: pkg.go.dev

# README

Elasticsearch-security-operator

Go Report Card [Go Report Card

This operator provides full lifecycle of Elasticsearch users,roles,rolemapping and alerts.

Configuration

You can pass configuration with environment variables or file with following parameters:

KeyEnvironment variableValue
endpointELASTICSEARCH_ENDPOINTElasticsearch endpoint
alertAPIPathELASTICSEARCH_ALERT_API_PATHPath to alerts api endpoint (for example _opendistro/_alerting/monitors)
roleAPIPathELASTICSEARCH_ROLE_API_PATHPath to roles api endpoint (for example _opendistro/_security/api/roles)
userAPIPathELASTICSEARCH_USER_API_PATHPath to users api endpoint (for example _opendistro/_security/api/internalusers)
tenantAPIPathELASTICSEARCH_TENANT_API_PATHPath to tenants api endpoint (for example _opendistro/_security/api/tenants)
roleMappingAPIPathELASTICSEARCH_ROLEMAPPING_API_PATHPath to role mappings api endpoint (for example _opendistro/_security/api/rolesmapping)
extraCACertFileEXTRA_CA_CERT_FILEPath to file with custom CA certificate(s)
usernameELASTICSEARCH_USERNAMEUser with appropriate permissions
passwordELASTICSEARCH_PASSWORDUser password

Build

Requirements

Export VERSION variable and execute

make docker-build

Deploy

Specify configs in deploy/helm/values.yaml and deploy with

helm -n elasticsearch-security-operator upgrade -i elasticsearch-security-operator ./deploy/helm

Samples of custom resources can be found in config/samples

TODO:

  • Refactor alert controller
  • Refactor controller's methods

# Packages

No description provided by the author
No description provided by the author
No description provided by the author