[ 
https://issues.apache.org/jira/browse/METRON-2024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16785632#comment-16785632
 ] 

Ryan Merriman commented on METRON-2024:
---------------------------------------

A Stellar REST_GET call against the Metron REST application in full dev works 
for me.  I happen to have "user/password" configured as basic auth credentials 
so I didn't have to change anything.  Here's my output: 
{code:java}
[root@node1 vagrant]# /usr/metron/0.7.1/bin/stellar --zookeeper node1:2181
Stellar, Go!
Functions are loading lazily in the background and will be unavailable until 
loaded fully.
{es.clustername=metron, es.ip=node1:9200, es.date.format=yyyy.MM.dd.HH, 
parser.error.topic=indexing, update.hbase.table=metron_update, 
update.hbase.cf=t, es.client.settings={}, profiler.client.period.duration=15, 
profiler.client.period.duration.units=MINUTES, 
user.settings.hbase.table=user_settings, user.settings.hbase.cf=cf, 
bootstrap.servers=node1:6667, source.type.field=source:type, 
threat.triage.score.field=threat:triage:score, enrichment.writer.batchSize=15, 
enrichment.writer.batchTimeout=0, profiler.writer.batchSize=15, 
profiler.writer.batchTimeout=0, 
geo.hdfs.file=/apps/metron/geo/default/GeoLite2-City.tar.gz, 
asn.hdfs.file=/apps/metron/asn/default/GeoLite2-ASN.tar.gz, 
stellar.rest.settings={basic.auth.user=user, 
basic.auth.password.path=/user/metron/password.txt}}

[Stellar]>>> REST_GET('http://node1:8082/api/v1/global/config')
{es.clustername=metron, es.ip=node1:9200, es.date.format=yyyy.MM.dd.HH, 
parser.error.topic=indexing, update.hbase.table=metron_update, 
update.hbase.cf=t, es.client.settings={}, profiler.client.period.duration=15, 
profiler.client.period.duration.units=MINUTES, 
user.settings.hbase.table=user_settings, user.settings.hbase.cf=cf, 
bootstrap.servers=node1:6667, source.type.field=source:type, 
threat.triage.score.field=threat:triage:score, enrichment.writer.batchSize=15, 
enrichment.writer.batchTimeout=0, profiler.writer.batchSize=15, 
profiler.writer.batchTimeout=0, 
geo.hdfs.file=/apps/metron/geo/default/GeoLite2-City.tar.gz, 
asn.hdfs.file=/apps/metron/asn/default/GeoLite2-ASN.tar.gz, 
stellar.rest.settings={basic.auth.user=user, 
basic.auth.password.path=/user/metron/password.txt}}{code}

> REST_GET function ignoring Basic Auth settings
> ----------------------------------------------
>
>                 Key: METRON-2024
>                 URL: https://issues.apache.org/jira/browse/METRON-2024
>             Project: Metron
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>            Reporter: Tobin
>            Priority: Major
>
> In Zeppelin:
> %stellar
> swagger_conf := \{ "basic.auth.user": "admin", "basic.auth.password.path": 
> "/user/zeppelin/swagger_pass" }
> REST_GET("http://metron.node:8082/api/v1/sensor/enrichment/config/bro";, 
> swagger_conf)
> It returns with no response and no error.
>  
> Zeppelin logs show the normal "status 401" and "unauthorized" messages from 
> Swagger.
> tcpdump shows no "Authorization" header in the request.
>  
> I can't find anything else in the zeppelin, metron-rest, etc logs.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to