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

Bug with multiple users with allowed_users attribute #4

Open
Sliim opened this issue Jun 15, 2016 · 0 comments
Open

Bug with multiple users with allowed_users attribute #4

Sliim opened this issue Jun 15, 2016 · 0 comments

Comments

@Sliim
Copy link
Contributor

Sliim commented Jun 15, 2016

I have a bug when I want to set allowed_users for multiple users :
Example :

"user_ssh_keys": {
      "data_bag": "ssh_keys",
      "users": {
        "user1": {
          "authorized_users": [
            "foo",
            "bar"
          ]
        },
        "user2": {
          "authorized_users": [
            "foo"
          ]
        }
      }
    }

In this case, user1 will have correct authorized keys from foo & bar data bag items.
But the user2, which should have only the foo key, inherit of user1 allowed users. So instead of having only the public key for foo, there is also the bar public key and a duplicate foo public key added to the authorized_keys file..

Any idea?

Sliim added a commit to sliim-cookbooks/user-ssh-keys that referenced this issue Apr 23, 2017
Duplicate resource attributes before processing them.
Fix pmsipilot#4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant