Skip to content

Job creation endpoint should require authentication #2034

@chinook1001

Description

@chinook1001

Bug

POST /api/jobs currently allows job creation without authentication because the route calls postJob directly.

Impact

Unauthenticated clients can create spam or malicious job listings.

Expected fix

Require authMiddleware on the job creation route while keeping GET /api/jobs public. Add regression tests that cover unauthenticated rejection and authenticated success.

Reference: #1776 and #743.

This issue is limited only to the creator of this issue. This means that only the issue author can attempt to solve this issue. If you would like to work on it, please create another issue with the same contents and refer to issue #743 for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions