Comment 1 for bug 2007312

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Re: Unrestricted default RESTful interface on 127.0.0.1:8000

Adding this block to the kea-ctrl-agent.conf file worked:
    "authentication": {
        "type": "basic",
        "realm": "isc-kea DHCP server",
        "directory": "/etc/kea",
        "clients": [
            {
                "user-file": "user.txt",
                "password-file": "password.txt"
            }
        ]
    },

Note how there can only be one file per client, but you can have multiple clients.

If going down that route, of having a default api user/password, how do we make this part of the package? Just change our default config, and adjust postinst to generate these two files?

Time to think...