Skip to content

Commit

Permalink
NACM: Add default deny rule for reading password hash
Browse files Browse the repository at this point in the history
This fix #499
  • Loading branch information
mattiaswal committed Oct 1, 2024
1 parent a400cb3 commit 8782d03
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/confd/share/factory.d/10-nacm.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ietf-netconf-acm:nacm": {
"enable-nacm": true,
"groups": {
"group": [
{
Expand All @@ -25,6 +26,19 @@
"comment": "Allow 'admin' group complete access to all operations and data."
}
]
},
{
"name": "default-deny-all",
"group": ["*"],
"rule": [
{
"name": "deny-password-read",
"module-name": "ietf-system",
"path": "/ietf-system:system/authentication/user/password",
"access-operations": "*",
"action": "deny"
}
]
}
]
}
Expand Down

0 comments on commit 8782d03

Please sign in to comment.