Page 1 of 1

TR069 and show-sensitive

Posted: Tue Oct 29, 2024 11:26 am
by jim13c
Hello,

A few years ago, I created an application to manage our mikrotik devices. It generates a configuration file for each router, based on how the router is modeled in the application, and uses TR069 to get the configuration on the routers themself. After the configuration is pushed to the routers, it also monitors them for changes and reverts any manual change. The way it does this is by having the routers upload their configuration at a certain interval and the application checks if changes are needed.

And it's this last part where I ran into an issue when adding support for mikrotik v7. It now requires the show-sensitive parameter in the export command to see all passwords and ipsec keys for example, but the TR069 upload command still uses a regular 'export'. This way, my application cannot detect any changes in the passwords and even thinks all keys and passwords are missing from the configuration and tries to push them again.

So 2 ways I can think of that would fix this are:
- There is some way to make the show-sensitive option default in v7
- There is some extra/other parameter in the TR069 implementation that will send the full config (it's using "1 Vendor Configuration File" now which translates to a regular "export").

I cannot find anything about such options so I don't think they exist ? Is there maybe another way that I can get a full config through TR069 ? If not, I have to find another way to get the sensitive config back to the application but I would really like to avoid that.

Any suggestions are welcome.

Re: TR069 and show-sensitive

Posted: Tue Oct 29, 2024 8:25 pm
by Amm0
A few years ago, I created an application to manage our mikrotik devices. It generates a configuration file for each router, based on how the router is modeled in the application, and uses TR069 to get the configuration on the routers themself. After the configuration is pushed to the routers, it also monitors them for changes and reverts any manual change. The way it does this is by having the routers upload their configuration at a certain interval and the application checks if changes are needed.
I love the approach. I've long used SSH to /system/reset-configuration, but it does not give you the feedback of TR069. But it's never made sense to have a "real" TR069 in our use cases, since we do things like have a Dude locally for each customer, but a full TR069 server per customer for the one-off need pushing new config is overkill.
And it's this last part where I ran into an issue when adding support for mikrotik v7.
Any suggestions are welcome.
I'd file an issue at help.mikrotik.com. It sounds like a V7 bug that they forget about show-sensitive and TR069. i.e. possible that Genie or whatnot do not make use of the full config pull, but dunno.