Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

wsproxysdk

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:19Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAgentIsLegacyResponseadded inv0.26.2

type AgentIsLegacyResponse struct {Foundbool `json:"found"`Legacybool `json:"legacy"`}

typeClient

type Client struct {SDKClient *codersdk.Client// contains filtered or unexported fields}

Client is a HTTP client for a subset of Coder API routes that externalproxies need.

funcNew

func New(serverURL *url.URL) *Client

New creates a external proxy client for the provided primary coder serverURL.

func (*Client)AgentIsLegacyadded inv0.26.2

func (c *Client) AgentIsLegacy(ctxcontext.Context, agentIDuuid.UUID) (AgentIsLegacyResponse,error)

func (*Client)DialCoordinatoradded inv0.26.2

func (c *Client) DialCoordinator(ctxcontext.Context) (agpl.MultiAgentConn,error)

func (*Client)DialWorkspaceAgent

func (c *Client) DialWorkspaceAgent(ctxcontext.Context, agentIDuuid.UUID, options *codersdk.DialWorkspaceAgentOptions) (agentConn *codersdk.WorkspaceAgentConn, errerror)

DialWorkspaceAgent calls the underlying codersdk.Client's DialWorkspaceAgentmethod.

func (*Client)IssueSignedAppToken

IssueSignedAppToken issues a new signed app token for the provided apprequest. The error page will be returned as JSON. For use in externalproxies, use IssueSignedAppTokenHTML instead.

func (*Client)IssueSignedAppTokenHTML

IssueSignedAppTokenHTML issues a new signed app token for the provided apprequest. The error page will be returned as HTML in most cases, and will bewritten directly to the provided http.ResponseWriter.

func (*Client)Request

func (c *Client) Request(ctxcontext.Context, method, pathstring, body interface{}, opts ...codersdk.RequestOption) (*http.Response,error)

Request wraps the underlying codersdk.Client's Request method.

func (*Client)RequestIgnoreRedirects

func (c *Client) RequestIgnoreRedirects(ctxcontext.Context, method, pathstring, body interface{}, opts ...codersdk.RequestOption) (*http.Response,error)

RequestIgnoreRedirects wraps the underlying codersdk.Client's Request methodon the client that ignores redirects.

func (*Client)SessionToken

func (c *Client) SessionToken()string

SessionToken returns the currently set token for the client.

func (*Client)SetSessionToken

func (c *Client) SetSessionToken(tokenstring)error

SetSessionToken sets the session token for the client. An error is returnedif the session token is not in the correct format for external proxies.

func (*Client)WorkspaceProxyGoingAwayadded inv0.23.3

func (c *Client) WorkspaceProxyGoingAway(ctxcontext.Context)error

typeCoordinateMessageadded inv0.26.2

type CoordinateMessage struct {TypeCoordinateMessageType `json:"type"`AgentIDuuid.UUID             `json:"agent_id"`Node    *agpl.Node            `json:"node"`}

typeCoordinateMessageTypeadded inv0.26.2

type CoordinateMessageTypeint
const (CoordinateMessageTypeSubscribeCoordinateMessageType = 1 +iotaCoordinateMessageTypeUnsubscribeCoordinateMessageTypeNodeUpdate)

typeCoordinateNodesadded inv0.26.2

type CoordinateNodes struct {Nodes []*agpl.Node}

typeIssueSignedAppTokenResponse

type IssueSignedAppTokenResponse struct {// SignedTokenStr should be set as a cookie on the response.SignedTokenStrstring `json:"signed_token_str"`}

typeRegisterWorkspaceProxyRequest

type RegisterWorkspaceProxyRequest struct {// AccessURL that hits the workspace proxy api.AccessURLstring `json:"access_url"`// WildcardHostname that the workspace proxy api is serving for subdomain apps.WildcardHostnamestring `json:"wildcard_hostname"`}

typeRegisterWorkspaceProxyResponse

type RegisterWorkspaceProxyResponse struct {AppSecurityKeystring `json:"app_security_key"`}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp