bonfire icon indicating copy to clipboard operation
bonfire copied to clipboard

Not reading all the options in config file

Open titansmc opened this issue 3 years ago • 5 comments

hi, I am using the RC2 and it doesn't read keyring and follow options asI have them here:

[node:default]
host=graylog.domain.com
tls=True
port=
endpoint=/api/
username=user
keyring = True
follow = True

Also, since my graylog server is running on 443, I had to leave it empty, otherwise it is malforming a URL like graylog.domain.com

titansmc avatar Mar 29 '22 15:03 titansmc

so sorry about the late reaction - I have to admit I've never worked with a keyring, I'm gonna have to try and reproduce this and see what happens. if you could give me a simple recipe on how to setup a keyring, I would really appreciate that (also - do i have to use gnome for the keyring thingy to work?)

i'm not sure I follow your last comment, about the port - you had to leave the port option empty? if you write 443 there, it get's messed up? gonna check that out!

just give me a few more days please, hopefully i will find some time to look at this.

valentin-krasontovitsch avatar Jun 08 '22 21:06 valentin-krasontovitsch

I am using gnome keyring. So if you use bonfire with -k option, it should ask you for your keyring passphrase so it will store it there, and next time you don't need to type the password (as long as the keyring is unlocked). So at this moment I need to type: bonfire -f -k :hpc and I cannot have the -k and -f options defined at the config file like:

[node:default]
host=graylog.domain.com
tls=True
port=
endpoint=/api/
username=user
keyring = True
follow = True

so I would like to be able to execute: bonfire :hpc and that is it, everything else should be in the config file.

Forget about the port, it looks fine.

Cheers.

titansmc avatar Jun 09 '22 10:06 titansmc

alrighty i'm finally looking at this.

  • follow mode is not read from config file, it can only be triggered from the command line. but it's not difficult to implement that option
  • happy to hear that the port thingy seems to be working

gonna look at the keyring next - do i understand correctly that it works fine when you use the command line option, the only problem is that you cannot supply it in the config file, and you would like to be able to do that?

valentin-krasontovitsch avatar Aug 08 '22 20:08 valentin-krasontovitsch

and would you like to supply the keyring option on a node to node basis, or should we add a new general section (or some such name), where one could set the keyring option and it would be respected for all nodes / all queries?

valentin-krasontovitsch avatar Aug 08 '22 21:08 valentin-krasontovitsch

sorry, you caught me on vacation. Both would work for me, although I always use -f option. So if you ask me, I would probably do it at the general section.

titansmc avatar Oct 07 '22 11:10 titansmc