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.

coderd

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:61Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

View Source
const (PubsubEventLicenses = "licenses")

Variables

View Source
var DefaultSupportLinks = []codersdk.LinkConfig{{Name:   "Documentation",Target: "https://coder.com/docs/coder-oss",Icon:   "docs",},{Name:   "Report a bug",Target: "https://github.com/coder/coder/issues/new?labels=needs+grooming&body={CODER_BUILD_INFO}",Icon:   "bug",},{Name:   "Join the Coder Discord",Target: "https://coder.com/chat?utm_source=coder&utm_medium=coder&utm_campaign=server-footer",Icon:   "chat",},}
View Source
var Keys = map[string]ed25519.PublicKey{"2022-08-12":ed25519.PublicKey(key20220812)}

Functions

This section is empty.

Types

typeAPIadded inv0.9.0

type API struct {AGPL *coderd.API*Options// ProxyHealth checks the reachability of all workspace proxies.ProxyHealth *proxyhealth.ProxyHealth// contains filtered or unexported fields}

funcNewadded inv0.9.0

func New(ctxcontext.Context, options *Options) (_ *API, errerror)

New constructs an Enterprise coderd API instance.This handler is designed to wrap the AGPL Coder code andlayer Enterprise functionality on top as much as possible.

func (*API)Authorizeadded inv0.9.9

func (api *API) Authorize(r *http.Request, actionrbac.Action, objectrbac.Objecter)bool

func (*API)Closeadded inv0.9.0

func (api *API) Close()error

typeOptionsadded inv0.9.0

type Options struct {*coderd.OptionsRBACboolAuditLoggingbool// Whether to block non-browser connections.BrowserOnlyboolSCIMAPIKey  []byte// Used for high availability.DERPServerRelayAddressstringDERPServerRegionIDint// Used for user quiet hours schedules.DefaultQuietHoursSchedulestring// cron schedule, if empty user quiet hours schedules are disabledEntitlementsUpdateIntervaltime.DurationProxyHealthIntervaltime.DurationKeys                       map[string]ed25519.PublicKey}

typeSCIMUseradded inv0.9.0

type SCIMUser struct {Schemas  []string `json:"schemas"`IDstring   `json:"id"`UserNamestring   `json:"userName"`Name     struct {GivenNamestring `json:"givenName"`FamilyNamestring `json:"familyName"`} `json:"name"`Emails []struct {Primarybool   `json:"primary"`Valuestring `json:"value" format:"email"`Typestring `json:"type"`Displaystring `json:"display"`} `json:"emails"`Activebool          `json:"active"`Groups []interface{} `json:"groups"`Meta   struct {ResourceTypestring `json:"resourceType"`} `json:"meta"`}

We currently use our own struct instead of using the SCIM package. This wasdone mostly because the SCIM package was almost impossible to use. We onlyneed these fields, so it was much simpler to use our own struct. This wastested only with Okta.

Source Files

View all Source files

Directories

PathSynopsis

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