create_api_key_endpoint

package
v1.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package create_api_key_endpoint registers a public key for the signed-in account.

The account presents a public key and a name for it, and nothing else: no proof that it holds the private half, as no service taking an SSH key asks for one either. Such a proof stops only a key being registered by somebody who talked the account into pasting theirs -- an attacker holding the session registers a key of their own and proves it perfectly well -- while costing every honest registration a trip through a terminal.

Index

Constants

View Source
const DefaultPath = "/api/account/me/api-keys"

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyInput

type BodyInput = types.CreateApiKey

type Endpoint

type Endpoint struct {
	*initialization_endpoint.Endpoint
}

func New

func New() *Endpoint

func (*Endpoint) Initialize

func (e *Endpoint) Initialize(authorizer *authorizer_request_parser.Parser, db *sql.DB) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL