Shield: wildcart deletes

Hi I am running the following code to remove indexes, if there is no index
with the specified pattern, a shield enabled cluster throws an exception.
To my opinion I have marked the options in a way that this should not
happen. If I use the same code on a cluster without shield enabled,
everything works fine.

    client.admin().indices().prepareDelete(this.index + "*")
            .setIndicesOptions(IndicesOptions.fromOptions(true, true, 

true, false)).get();

Is this an issue with Shield? The user I provide has admin rights.

thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2a289411-e436-45b6-8f26-1ba8fce38aaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hey Jettro,

Indeed with shield the behaviour of the cluster when it comes to wildcards
is a bit different. While with vanilla elasticsearch, we expand wildcards
based on the index options, with shield we take the security context into
account and only expand to those indices the user has privileges on. see:

and

On Thursday, March 5, 2015 at 12:41:50 PM UTC+1, Jettro Coenradie wrote:

Hi I am running the following code to remove indexes, if there is no index
with the specified pattern, a shield enabled cluster throws an exception.
To my opinion I have marked the options in a way that this should not
happen. If I use the same code on a cluster without shield enabled,
everything works fine.

    client.admin().indices().prepareDelete(this.index + "*")
            .setIndicesOptions(IndicesOptions.fromOptions(true, true, 

true, false)).get();

Is this an issue with Shield? The user I provide has admin rights.

thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5b7a659a-0e71-40ee-a4d9-7e2ef1c59b9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks Uri, like the documentation mentiones:

Elasticsearch clusters with the Shield security plugin installed do not

honor the ignore_unavailable option.

Op donderdag 5 maart 2015 13:18:37 UTC+1 schreef uboness:

Hey Jettro,

Indeed with shield the behaviour of the cluster when it comes to wildcards
is a bit different. While with vanilla elasticsearch, we expand wildcards
based on the index options, with shield we take the security context into
account and only expand to those indices the user has privileges on. see:

Elasticsearch Platform — Find real-time answers at scale | Elastic

and

Elasticsearch Platform — Find real-time answers at scale | Elastic

On Thursday, March 5, 2015 at 12:41:50 PM UTC+1, Jettro Coenradie wrote:

Hi I am running the following code to remove indexes, if there is no
index with the specified pattern, a shield enabled cluster throws an
exception. To my opinion I have marked the options in a way that this
should not happen. If I use the same code on a cluster without shield
enabled, everything works fine.

    client.admin().indices().prepareDelete(this.index + "*")
            .setIndicesOptions(IndicesOptions.fromOptions(true, true, 

true, false)).get();

Is this an issue with Shield? The user I provide has admin rights.

thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c463934f-fc49-445d-a5c0-ae5fecd8751b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.