Skip to content

fern check fails with "endpoint requires auth, but no auth is defined" when only using mutualTLS type endpoint security #16673

Description

@taisph

Component

CLI

Priority

P1 - High (Strongly needed)

SDK Language(s)

No response

Bug Description

  1. Create an OpenAPI 3.1 spec with a path requiring a security scheme that is of type mutualTLS.
openapi: 3.1.0
info:
  title: Test API
paths:
  /v1alpha1/test:
    get:
      summary: Test
      security:
        - mtls: []
components:
  securitySchemes:
    mtls:
      type: mutualTLS
  1. Run fern check on it.

Expected: success/valid/ignored.

Actual:

[sdk] 1 error
    [error]
        path: __package__.yml -> service -> endpoints -> test
        issue: Endpoint requires auth, but no auth is defined.

Versions

Fern CLI v5.50.6.

Workaround

Add any supported dummy auth even if unused in components.securitySchemes.

Are you interested in contributing a fix?

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions