liuch / dmarc-srg

A php parser, viewer and summary report generator for incoming DMARC reports.
GNU General Public License v3.0
218 stars 32 forks source link

Feature Request - User management #67

Closed mbsouth closed 4 months ago

mbsouth commented 1 year ago

I love this tool, great work!

One feature I'm missing is managing users and mapping domains to those users. This would allow users to log in and view their domain reports.

Another feature would be if users had a certain number of domains available and could specify them themselves (users would then have to take care of DNS records themselves)

liuch commented 1 year ago

I planned to add support for user management, but as a restriction on access to existing features without mapping domains to users. The feature you suggested is more than just a feature of a personal mail server tool. I'll think it over.

williamdes commented 1 year ago

Repost from #87

I do not want to host many instances of DmarcSrg. I need to have a way to give a credential to users of domain/domains XYZ so they do not have access to the other ones.

Can we make:

What solution would be best ?

williamdes commented 1 year ago

@liuch said in #87

I think it would be better to have tables users and user_domains or something. The admin user is configured in the config file, other users is in tables. What do you think about this?

I think user domains table would be good would the admin config disappear?

liuch commented 1 year ago

would the admin config disappear?

Would not. The main reason is that the administrator can access the web interface when the database structure is not initialized.

SteelPC commented 1 year ago

Repost from #87

I do not want to host many instances of DmarcSrg. I need to have a way to give a credential to users of domain/domains XYZ so they do not have access to the other ones.

Can we make:

* a multi password config that each of them has a filter for the allowed domains

* a user/password table with domains by user

* a user/password config that each of them has a filter for the allowed domains

What solution would be best ?

I think users should not be allowed to add domain themselves or else they could gain access to unwanted information. Only admin should allow a domain to a user.

liuch commented 1 year ago

Yes. I think so. Maybe I'll add a special role for this with some checks. By the way, I have already started writing code to implement user management.

liuch commented 1 year ago

This commit 6e8674b7c47d69fbe884bbed68f25f3655b8f04b contains initial implementation of user management.

I am going to gradually complete the functionality.

added: See config/conf.sample.php ($admin section) for some details.

liuch commented 4 months ago

This commit is a continuation of the user management implementation. Brief highlights:

I'll post the documentation a little later.

liuch commented 4 months ago

I'll post the documentation a little later.

Done.