barong icon indicating copy to clipboard operation
barong copied to clipboard

Feature : Introduce organization feature

Open xenirio opened this issue 4 years ago • 4 comments

xenirio avatar May 21 '21 07:05 xenirio

We need to introduce new roles into abilities.yaml:

  • org-admin
  • org-member
  • org-accountant

Then we need to create new abilities for platform operators to manage the organizations:


admin_permissions:
  superadmin:
    manage:
      - Organization
      - AdminSwitchSession

calj avatar May 25 '21 09:05 calj

When an admin use the ability AdminSwitchSession to switch to a user we set the same user role to his session. When an admin use the ability AdminSwitchSession to switch to an organization we set the role from a static configuration:

BARONG_ADMIN_SWITCH_SESSION_ORG_ROLE=member

calj avatar May 27 '21 07:05 calj

:warning: We detected 2 security issues in this pull request:

Hard-Coded Secrets (2)
Docs Details
:bulb: Title: Secret Keyword, Severity: Medium
https://github.com/openware/barong/blob/dcf994545c5e4924fff467f26dcbfb74d4c33bc0/config/seeds.yml#L17
:bulb: Title: Secret Keyword, Severity: Medium
https://github.com/openware/barong/blob/dcf994545c5e4924fff467f26dcbfb74d4c33bc0/.drone.yml#L11

More info on how to fix Hard-Coded Secrets in General.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

guardrails[bot] avatar Jun 01 '21 11:06 guardrails[bot]

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 15 Code Smells

No Coverage information No Coverage information
4.1% 4.1% Duplication

sonarqubecloud[bot] avatar Jun 18 '21 06:06 sonarqubecloud[bot]