Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: Allow unauthenticated access to user's SSH keys #30717

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 29, 2024

  1. api: Allow unauthenticated access to user's SSH keys

    This patch relaxes constraints on getting user's SSH keys via the JSON
    API. The same has been allowed by both GitHub and Gitlab and the output
    is already readable via http://domain/user.keys endpoint.
    
    The benefit of allowing it via the API are twofold: first this is
    a structured output and second it can be CORS-enabled.
    
    As a privacy precaution the `Title` property is set to an empty string
    if the request is unauthenticated.
    
    Fixes: go-gitea#30681
    wiktor-k committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    693db80 View commit details
    Browse the repository at this point in the history