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

NETCONF ACL to limit access to password hash #499

Closed
troglobit opened this issue Jul 2, 2024 · 0 comments · Fixed by #679
Closed

NETCONF ACL to limit access to password hash #499

troglobit opened this issue Jul 2, 2024 · 0 comments · Fixed by #679
Assignees
Labels
triage Pending investigation & classification (CCB)

Comments

@troglobit
Copy link
Contributor

Example: Custom DENY Rule

Deny reading password hash for non-administrators. (Untested)

nacm {
  groups {
    group admin {
      name "admin";
      user-name [ "admin1", "admin2" ];  // Specify actual administrator usernames
    }
  }

  rule-list admin-rule-list {
    group "admin";  // Link to the admin group
    rule allow-admin-password-read {
      module-name "ietf-system";
      path "/sys:system/sys:authentication/sys:user/sys:password";
      access-operations "read";  // Specify operations you want to allow (read, write, etc.)
      action permit;  // Actions can be 'permit' or 'deny'
    }
  }

  rule-list default-deny-all {
    group "*";  // Applies to all users
    rule deny-password-read {
      module-name "ietf-system";
      path "/sys:system/sys:authentication/sys:user/sys:password";
      access-operations "read";  // Specify operations you want to deny
      action deny;  // Ensuring default deny all for password field
    }
  }
}
@troglobit troglobit added the triage Pending investigation & classification (CCB) label Jul 2, 2024
@mattiaswal mattiaswal self-assigned this Oct 1, 2024
@mattiaswal mattiaswal mentioned this issue Oct 1, 2024
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Pending investigation & classification (CCB)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants