ryanwholey / terraform-provider-pihole

A Terraform provider for managing Pi-hole resources
https://registry.terraform.io/providers/ryanwholey/pihole/latest/docs
Mozilla Public License 2.0
63 stars 8 forks source link

Support API token authentication #27

Closed ryanwholey closed 2 years ago

ryanwholey commented 2 years ago

There has been some movement on the Pi-hole side to support API operations via API token!

It looks like it currently supports add/delete/list custom A & CNAME records, although the API response still looks to be in flux.

Might be time to move the Pi-hole client out to its own repo so it can be updated and released independently.

ryanwholey commented 2 years ago

I've started work on an API token based client https://github.com/ryanwholey/go-pihole. I'm thinking I'll integrate this in side by side to the current web password/session auth and then eventually remove the web password auth in a v1.0.0.

I'll have to also identify the minimum required Pi-Hole version that support API token auth

Edit: turns out to be Web Interface (AdmeLTE) >= 5.11.0