May be I am doing some obviously wrong. I am trying JWT configuration following the documentation and the forum discussions. Below is my configuration.
- name: Valid JWT token with a viewer role
kibana_access: ro
jwt_auth:
name: “jwt_provider_1”
roles: [“viewer”]
indices: [ “.kibana-cfxdls-customer1”, “coke_gdt_*”]
kibana_index: “.kibana-cfxdls-customer1”
After enabling the debugs, I see that elasticsearch is hanging at the below. Even when I am trying to upload the configuration via the UI screen, it is having the same symptom. No other debug/error is being spit out.
I have tried various combination of keys and nothing seem to be working. Below is the jstack.
“main” #1 prio=5 os_prio=0 tid=0x00007f469400e800 nid=0x5e runnable [0x00007f469ac2d000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:424)
at sun.security.provider.NativePRNG$RandomIO.implGenerateSeed(NativePRNG.java:441) - locked <0x00000000a5f27a90> (a java.lang.Object)
at sun.security.provider.NativePRNG$RandomIO.access$500(NativePRNG.java:331)
at sun.security.provider.NativePRNG.engineGenerateSeed(NativePRNG.java:226)
at java.security.SecureRandom.generateSeed(SecureRandom.java:533)
at java.security.SecureRandom.getSeed(SecureRandom.java:520)
at tech.beshu.ror.commons.utils.SecureStringHasher.(SecureStringHasher.java:53)
at tech.beshu.ror.acl.blocks.rules.impl.JwtAuthSyncRule.(JwtAuthSyncRule.java:64)
at tech.beshu.ror.acl.blocks.rules.UserRuleFactory.lambda$new$7(UserRuleFactory.java:97)
at tech.beshu.ror.acl.blocks.rules.UserRuleFactory$$Lambda$1448/1180105925.apply(Unknown Source)
at tech.beshu.ror.acl.blocks.rules.UserRuleFactory.create(UserRuleFactory.java:108)
at tech.beshu.ror.acl.blocks.rules.RulesFactory.create(RulesFactory.java:219)
at tech.beshu.ror.acl.blocks.Block$$Lambda$1480/303354428.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at tech.beshu.ror.acl.blocks.Block.(Block.java:65)
at tech.beshu.ror.acl.ACL.lambda$new$0(ACL.java:83)
at tech.beshu.ror.acl.ACL$$Lambda$1478/1455019071.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
BTW can you please use the “</>” button in the forum editor to embed the YAML settings?
Otherwise the indentation is all wrong and snippets wont’ be copy-pastable by other users!