Coder Social home page Coder Social logo

Comments (9)

jstange avatar jstange commented on May 28, 2024

Hm, no, it's weirder than that... my own personal address ([email protected]) also breaks it, but [email protected] does not. Other variations of email addresses fail or succeed in a pattern I can't quite explain.

from chef-server.

rpattcorner avatar rpattcorner commented on May 28, 2024

This is a critical bug for our project, rendering our chef-based tool undeployable for the typical user emails we see.

from chef-server.

stevendanna avatar stevendanna commented on May 28, 2024

@rpattcorner @jstrange Apologies that you haven't gotten a response on this yet. I'll be looking at this today and let you know what I find. If you have time, I'd love if someone with a reproduction case of this could send me ([email protected]) the contents of the /var/log/opscode/oc_erchef/ directory after the failure.

from chef-server.

stevendanna avatar stevendanna commented on May 28, 2024

@rpattcorner @jstange A quick follow up. In the cases you found, are you certain their are no other users with the given email address in the system. The email address must be unique as well as the username. Unfortunately, it appears the error message returned does not give you an indication that it is actually the email address that is conflicting:

vagrant@private-chef:~$ sudo chef-server-ctl user-create foo John Q Public "[email protected]" some_password
-----BEGIN RSA PRIVATE KEY-----
[...SNIP...]
vagrant@private-chef:~$ sudo chef-server-ctl user-create foobar John Q Public "[email protected]" some_password
ERROR: Conflict
Response: User 'foobar' already exists

Note that I don't have a user foobar in the system, but because the email address conflicts, I get the "Conflict" error message.

from chef-server.

jstange avatar jstange commented on May 28, 2024

That explanation sounds like what I've been seeing. Definitely warrants a better error message...

What's the reasoning behind enforcing uniqueness with email addresses? It seems like a standard use case to have an admin identity that might conceivably be the same person as a regular user, strictly for management tasks. Also multiple users for the same person across orgs, though there are probably better ways to accomplish the latter.

from chef-server.

stevendanna avatar stevendanna commented on May 28, 2024

@jstange The uniqueness constraint for email addresses was originally put in place for Hosted Chef where password reset (and perhaps other items) are tied to email addresses:

https://www.chef.io/account/password_resets/new

The same user account can be associated with multiple organizations, so normal users typically don't need more than one account; however, there are other use cases where it would be nice to use the same address for multiple accounts.

I'll open a new bug for the error message and then close this one out.

from chef-server.

jstange avatar jstange commented on May 28, 2024

Roger that. We can work around for now by aiming our generic admin user at a local machine address or something. Thanks!

from chef-server.

stevendanna avatar stevendanna commented on May 28, 2024

Closing in favor of: #59

from chef-server.

Abhsubba avatar Abhsubba commented on May 28, 2024

you may created the org-username my mistake, but every problem has some solution.

sudo -s
chef-server-ctl org-delete learndevops # learndevops is my org-name you may have different

from chef-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.