Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement authentication and user role based access. #331

Closed
nanotechz9l opened this issue Jan 26, 2017 · 1 comment
Closed

Implement authentication and user role based access. #331

nanotechz9l opened this issue Jan 26, 2017 · 1 comment
Labels

Comments

@nanotechz9l
Copy link

Please implement user authentication, role based access and AD. Currently anyone hat hits the page can see every scan result. This is no bueno on rtos.

@p-l-
Copy link
Member

p-l- commented Jan 28, 2017

On the Web interface, authentication has to be implemented by properly configuring the Web server.

In an AD or Kerberos environment for example, Apache can be configured to provide SSO.

The web server will set the REMOTE_USER environment variable, that Ivre is able to use to create per-user filters that the user cannot override. The corresponding configuration options are WEB_DEFAULT_INIT_QUERY and INIT_QUERIES.

For example, if you want that:

  • by default, a user cannot access any result,
  • the user admin@SUBNETWORK.NETWORK.AD can access results in the SubNetwork category,
  • users in @ADMIN.NETWORK.AD can access any results,
    just write the following in /etc/ivre.conf:
WEB_DEFAULT_INIT_QUERY = 'noaccess'
WEB_INIT_QUERIES = {
    'admin@SUBNETWORK.NETWORK.AD': 'category:SubNetwork',
    '@ADMIN.NETWORK.AD': 'full',
}

IVRE cannot not, as of today, use authorization information (group membership) in an AD or LDAP environment. But we do accept pull requests.

I hope this will help you. Feel free to re-open this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants