Minemeld Feed Password OR api security

Reply
L1 Bithead

Minemeld Feed Password OR api security

Hi we have used minemeld for some monthes and i figured out that i want to tighten the security even more.

The question that then arose was the posibility to generate an api key or an user based authentication for my output indicators

 

I don't know or think it matters but we run minemeld in two datacenters with mirroring and global loadbalancing.
The servers are placed in one of our DMZ Zones.
We have agents on our internal network that pulls the feeds from ether node x or y in DMZ (active active)
And it is this string i want to have tighter security on.

 

m1.PNG

 

Feed map if it matters

m2.PNG

 

L7 Applicator

Re: Minemeld Feed Password OR api security

Hi @Kimwii,

as usual documentation is lagging, but you can enable authentication on feeds following this procedure

 

IMPORTANT: after step 1 all the feeds will become unreachable as authentication will be enabled but no user/tag is defined.

 

1 - create an API config file in /opt/minemeld/local/config/api/ with FEEDS_AUTH_ENABLED set to True:

$ sudo -u minemeld sh -c 'echo "FEEDS_AUTH_ENABLED: True" > /opt/minemeld/local/config/api/30-feeds-auth.yml'

2 - on the WebUI in the ADMIN > FEEDS USERS section add a user with username, password and some tags in the ACCESS section. Tags will be used to determine which feeds this user will have access to:

Screen Shot 2016-12-07 at 13.08.54.png

3 - In NODES select one of the output nodes and click on tags to access tags to the feed:

Screen Shot 2016-12-07 at 13.10.23.png

 

NOTES ON ACCESS TAGS

  • all the admin users have access to all the feeds
  • a feed user has access to a feed if the feed has at least one tag in common with the user
  • if the feed has the tag any, any authenticated user has access to the feed
  • if the feed has the tag anonymous, the feed is accessible to non-authenticated users
L2 Linker

Re: Minemeld Feed Password OR api security

How feed users would authenticate is not covered by this explanation.  Based on browser development tools I see some cookies for my admin authenticated session which grants me access to the feeds.  But if I open new browser I of course get "Unauthorized".  I can copy the cookies from my browser sessions for a curl or wget, but I need a permanent access key.  What authentication mechanism/process is being used for feed admins?

L7 Applicator

Re: Minemeld Feed Password OR api security

Feed users should Basic Auth to authenticate to feeds.

 

luigi

Highlighted
L2 Linker

Re: Minemeld Feed Password OR api security

Thanks

 

So with curl, basic auth is the default:

 

curl https://<hostname>/feeds/<feed_url> -u <username>

(enter password via prompt, or append password to username with colon <username:password>

L1 Bithead

Re: Minemeld Feed Password OR api security

I'm hoping someone can help me with implementing basic auth for a feed for use with EDL object on my firewall.

 

I've successfully configured authentication on my Minemeld deployment for the feed and added a user and password as well as the necessary tags to restrict access to the feed.  I've also tested feed authentication using curl so I know the Minemeld part is good to go.

 

Now the firewall configuration only has Server Authentication as an option to configure and this is based on a certificate profile.  I've seen other configuration screenshoots that also have a Client Authentication option (Panorama?) but I want to use the basic auth on the firewall.  Is this not possible?

 

I'm missing something, but I'm not sure what.  Any assistance would be greatly appreciated.

L5 Sessionator

Re: Minemeld Feed Password OR api security

@tajman : The configuration workflow depends on the PANOS release. 

 

For PANOS 8.0 you must create a a new Certificate Profile. A WebUI form in the EDL dialog will allow you to specify the user and password once you chose the Certificate Profile (steps 9 and 10 of documentation)

 

For PANOS 7.1 and before you must use the hxxps:\\user:password@host URL syntax for the EDL

L1 Bithead

Re: Minemeld Feed Password OR api security

Thank you very much! I was focusing so much on the minemeld portion that I forgot to look at the EDL documentation.

L4 Transporter

Re: Minemeld Feed Password OR api security

Don't know, where i am wrong. I am using firewall issued certificate used on minemeld server. Authentication piece doesn't seem to work, I am using anonymous tag for production but i want to use authentication and eliminate all the warnings. I have feed authentication enabled using command mentioned earlier and a user created with a tag specified, this tag is used in one of the output feeds.

 

image.png

I have tried using both, the root cert(PA) and the cert generated using root(MINEMELD). Result is always blank

image.png

image.png

image.png

L5 Sessionator

Re: Minemeld Feed Password OR api security

@raji_toor, does the host header in the URL (PANOS EDL configuration) matches the Common Name in the MineMeld certificate? That could explain why it doesn't work.

 

Details in PANOS 'less mp-log ms.log' during the EDL refresh might provide troubleshooting info.

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!