Comments (6)
Permissions are only loosely based on openshift and in 4.4 and early [1] are defined by [1]. The remaining roles and permissions are essentially static and would require you to update these directly. Note, however, these are re-initialized on pod restart.
[1] https://github.com/openshift/origin-aggregated-logging/blob/master/docs/access-control.md
[2] https://github.com/openshift/origin-aggregated-logging/blob/release-4.4/elasticsearch/sgconfig/sg_roles_mapping.yml
from elasticsearch-operator.
Ok, thanks. I guess a serviceaccount won't ever do a login from a UI so it won't follow that path to generation. Presumably the only static roles available to it then are roles like cluster-admin and cluster-reader.
from elasticsearch-operator.
Am now trying with openshift 4.6 and discovering that oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:logs:elasticseldon
does not give the service account write permissions anymore. I guess something has changed since 4.4. I've tried using roles like clusterlogforwarders.logging.openshift.io-v1-admin
but not found one that gives write access to the service account. I think I'm not understanding the permission model. @jcantrill Is there an easy way to grant write permission to a service account for 4.6?
from elasticsearch-operator.
The collector deployed by the CLO is intentionally the only one generally allowed to write to the cluster. This is to limit the exposure of who can create indices and possible destabilize the cluster. EO is designed around the cluster logging use-case with the intention to make it more generic but it is not there yet, if ever. You would need to alter permissions contained in the image as advised #338 (comment) but note the draw backs
from elasticsearch-operator.
Ok, will use the ECK operator instead. Thanks.
from elasticsearch-operator.
Hi @ryandawsonuk ,
Can you please let me know if you are able to get around with this issue? I am in same situation, where I need a service account to be able to manage Elasticsearch indices. We are running on OCP4.7. I am not able to find a way to achieve this.
from elasticsearch-operator.
Related Issues (20)
- Running elasticsearch on CRC HOT 7
- Please prepare bundle for OCP 4.7 HOT 3
- Not launching kibana instance from elasticsearch operator HOT 1
- Unable to launch a Kibana CR instance using latest ElasticSearch operator, Steps needed HOT 12
- Kibana POD is not getting created in OCP 4.6 cluster (Elasticsearch instance + POD got created, Kibana instance created but POD is not created) HOT 6
- Index creation permission HOT 9
- Feature request: Allow setting shard allocation awareness HOT 4
- Elasticsearch-operator scaling info/documentation/manual HOT 2
- Avoid copying all file to the image HOT 1
- OLM doesn't trigger CSV update even though catalog has newer version HOT 2
- Unable to read /etc/elasticsearch/secret/searchguard-key.p12 HOT 4
- memoryleak HOT 11
- elastic-search pod not starting up HOT 8
- keytool error: java.io.IOException: parseAlgParameters failed: PBE AlgorithmParameters not available HOT 6
- Search query with bearer token returning no results HOT 5
- index rollover cronjob fails on openshift-logging operator HOT 7
- DNS flood coming from elasticsearch-operator pod HOT 4
- CrashLoopBackoff when installing on kind 0.18 (GOMAXPROCS?)
- How to install from the command line HOT 7
- OpenShift Elasticsearch Operator (v5.7.6) error (Received an empty response from elasticsearch -- server may not be ready) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-operator.