opensciencegrid / xrootd-monitoring-shoveler

XRootD monitoring flow packet shoveler
Apache License 2.0
2 stars 7 forks source link

username not derrived from config.yaml #11

Open rob-c opened 2 years ago

rob-c commented 2 years ago

Hi,

After doing some initial testing I was under the impression from the example config file that the username and password used for amqp auth'n was derrived from the server url line: https://github.com/opensciencegrid/xrootd-monitoring-shoveler/blob/50a212f2d75327cbeeca4043af096f4158f8d39c/config/config.yaml#L2

After playing with an example build and running through the code I found I had to make hard-code changes to alter the username and the password is found in the 'token' file.

Would it be possible to replace this with something similar to:

amqp:
  url: amqps://example.com/vhost
  username: shoveler-user
  exchange: shoveler-exchange
  topic: shoveler-topic
  token_location: /etc/xrootd-monitoring-shoveler/token

Thanks,

Rob

djw8605 commented 2 years ago

Oh, I understand. I suppose we haven't tested that part very much since OSG uses tokens, and WLCG uses stomp. I'll look into making the username / password work.