Skip to content

Apply RBAC validator to remaining single entity session actions #9625

@fregataa

Description

@fregataa

Refactor remaining 15 single entity session actions to inherit from SessionSingleEntityAction base class and add session_id field for RBAC validation.

Actions to Refactor (15)

  1. RenameSessionAction

  2. CommitSessionAction

  3. ConvertSessionToImageAction

  4. RestartSessionAction

  5. InterruptSessionAction

  6. DownloadFileAction

  7. DownloadFilesAction

  8. UploadFilesAction

  9. ListFilesAction

  10. GetContainerLogsAction

  11. GetDirectAccessInfoAction

  12. GetDependencyGraphAction

  13. GetAbusingReportAction

  14. StartServiceAction

  15. ShutdownServiceAction

Tasks

  1. Change base class from SessionAction to SessionSingleEntityAction

  2. Add session_id field (with proper type handling for UUID conflicts)

  3. Update API handlers to pass session_id

Related

JIRA Issue: BA-4864

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions