Skip to content

audit: resource creation failure should result in an audit log entry #4724

Closed
@Kira-Pilot

Description

@Kira-Pilot

If someone attempts to create a workspace or template or whatever other resource and that creation fails, we should create an audit log for it.

At the time of ticket creation, we do not yet audit log login/logout, but we should consider this resource when completing this ticket. Related ticket #4431

The real issue is workspace build outcomes are not currently logged. We log the request (this almost always comes back as a 201), but do not follow up with the outcome. For an example, take a look at the comment below regarding workspace deletion.

We should continue to log workspace build requests with language that indicates the outcome isn't guaranteed, like:

"Admin requested the deletion of workspace test".

Then we should follow up with an audit log for the outcome, e.g. "Workspace test successfully deleted".

We should also log workspace build failures. Perhaps these failures (for start, stop, or delete) should all create the same audit log - we don't need a separate implementation for each.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions