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

[Feature]: Developers should not be able to create orgs #236

Closed
gcapizzi opened this issue Nov 11, 2021 · 0 comments · Fixed by #528
Closed

[Feature]: Developers should not be able to create orgs #236

gcapizzi opened this issue Nov 11, 2021 · 0 comments · Fixed by #528
Assignees
Milestone

Comments

@gcapizzi
Copy link
Contributor

gcapizzi commented Nov 11, 2021

Background

As an admin
I want to be the only one able to create orgs
So that I can keep my org structure under control

Acceptance Criteria

GIVEN I am not an Admin
WHEN I try to POST /v3/organizations
THEN I should get the following response:

HTTP/1.1 403 Forbidden
Content-Type: application/json
{
  "errors": [
    {
      "code": 10003,
      "title": "CF-NotAuthorized",
      "detail": "You are not authorized to perform the requested action"
    }
  ]
}

GIVEN I am an Admin
WHEN I try to POST /v3/organizations
THEN I should get a successful response

Dev Notes

  • This could trigger the creation of an Admin ClusterRole, to be bound in the root namespace so that it propagates to all orgs and spaces.
@gcapizzi gcapizzi added this to To do in Korifi - Backlog via automation Nov 11, 2021
@georgethebeatle georgethebeatle moved this from To do to In progress in Korifi - Backlog Jan 20, 2022
danail-branekov added a commit that referenced this issue Jan 21, 2022
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
Co-authored-by: Giuseppe Capizzi <gcapizzi@pivotal.io>
Issue: #236
danail-branekov added a commit that referenced this issue Jan 21, 2022
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
Co-authored-by: Giuseppe Capizzi <gcapizzi@pivotal.io>
Issue: #236
@gcapizzi gcapizzi moved this from In progress to Review in progress in Korifi - Backlog Jan 24, 2022
Korifi - Backlog automation moved this from Review in progress to Done Jan 24, 2022
danail-branekov added a commit that referenced this issue Jan 24, 2022
Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
Co-authored-by: Giuseppe Capizzi <gcapizzi@pivotal.io>
Issue: #236
@gcapizzi gcapizzi moved this from Done to Reviewer approved in Korifi - Backlog Jan 24, 2022
@gcapizzi gcapizzi reopened this Jan 24, 2022
Korifi - Backlog automation moved this from Reviewer approved to In progress Jan 24, 2022
Korifi - Backlog automation moved this from In progress to Done Jan 24, 2022
@gcapizzi gcapizzi added this to the v0.1 milestone Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants