TMA-YUGABYTEDB-4.2
Ensure excessive administrative privileges are revoked
설명
With respect to YugabyteDB administrative YSQL commands, only superusers should have elevated privileges. YugabyteDB regular, or application, users should not possess the ability to create roles, create new databases, manage replication, or perform any other action deemed privileged.
점검 방법
감사 방식: 수동 검토
이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.
Run ysqlsh -c "\du" and compare each role with the superuser baseline (\du yugabyte). Only approved administrators may hold Superuser, Create role, Create DB, Replication or Bypass RLS; regular or application roles with these attributes are a finding (fix with ALTER ROLE <r> NOSUPERUSER NOCREATEROLE NOCREATEDB NOREPLICATION NOBYPASSRLS).
조치 방법
조치 방식: 가이드 또는 인프라 패치
If any regular or application users have been granted excessive administrative rights, those privileges should be removed immediately via the Yugabyte ALTER ROLE YSQL command. Using the same example above, the following YSQL statements revoke all unnecessary elevated administrative privileges from the regular user appuser: # whoami yugabyte # ysqlsh -c "ALTER ROLE appuser NOSUPERUSER;" ALTER ROLE # ysqlsh -c "ALTER ROLE appuser NOCREATEROLE;" ...
속성
- 운영 체제
- 모두
- 태그
- yugabytedbprivileges
- 참고 자료
- CIS YugabyteDB Benchmark v2.0.0 - 4.2 Ensure excessive administrative privileges are revoked