sfe

package
v0.20250902.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Meta fields (not user-entered)
	ReviewStatusFieldName = "reviewStatus"
	RateLimitFieldName    = "rateLimit"

	// Shared user-entered fields (UI + API/Zendesk)
	OrganizationFieldName     = "organization"
	TierFieldName             = "tier"
	AccountURIFieldName       = "accountURI"
	RegisteredDomainFieldName = "registeredDomain"
	IPAddressFieldName        = "ipAddress"
)

Variables

View Source
var (

	// FundraisingOptions is the list of options for the fundraising field.
	FundraisingOptions = []string{
		"Yes, email me more information.",
		"No, not at this time.",
	}
)

Functions

This section is empty.

Types

type SelfServiceFrontEndImpl

type SelfServiceFrontEndImpl struct {
	// contains filtered or unexported fields
}

SelfServiceFrontEndImpl provides all the logic for Boulder's selfservice frontend web-facing interface, i.e., a portal where a subscriber can unpause their account. Its methods are primarily handlers for HTTPS requests for the various non-ACME functions.

func NewSelfServiceFrontEndImpl

func NewSelfServiceFrontEndImpl(
	stats prometheus.Registerer,
	clk clock.Clock,
	logger blog.Logger,
	requestTimeout time.Duration,
	rac rapb.RegistrationAuthorityClient,
	sac sapb.StorageAuthorityReadOnlyClient,
	unpauseHMACKey []byte,
	zendeskClient *zendesk.Client,
	limiter *rl.Limiter,
	txnBuilder *rl.TransactionBuilder,
) (SelfServiceFrontEndImpl, error)

NewSelfServiceFrontEndImpl constructs a web service for Boulder

func (*SelfServiceFrontEndImpl) BuildID

func (sfe *SelfServiceFrontEndImpl) BuildID(response http.ResponseWriter, request *http.Request)

BuildID tells the requester what boulder build version is running.

func (*SelfServiceFrontEndImpl) Handler

func (sfe *SelfServiceFrontEndImpl) Handler(stats prometheus.Registerer, oTelHTTPOptions ...otelhttp.Option) http.Handler

Handler returns an http.Handler that uses various functions for various non-ACME-specified paths. Each endpoint should have a corresponding HTML page that shares the same name as the endpoint.

func (*SelfServiceFrontEndImpl) Index

func (sfe *SelfServiceFrontEndImpl) Index(response http.ResponseWriter, request *http.Request)

Index is the homepage of the SFE

func (*SelfServiceFrontEndImpl) UnpauseForm

func (sfe *SelfServiceFrontEndImpl) UnpauseForm(response http.ResponseWriter, request *http.Request)

UnpauseForm allows a requester to unpause their account via a form present on the page. The Subscriber's client will receive a log line emitted by the WFE which contains a URL pre-filled with a JWT that will populate a hidden field in this form.

func (*SelfServiceFrontEndImpl) UnpauseStatus

func (sfe *SelfServiceFrontEndImpl) UnpauseStatus(response http.ResponseWriter, request *http.Request)

UnpauseStatus displays a success message to the Subscriber indicating that their account has been unpaused.

func (*SelfServiceFrontEndImpl) UnpauseSubmit

func (sfe *SelfServiceFrontEndImpl) UnpauseSubmit(response http.ResponseWriter, request *http.Request)

UnpauseSubmit serves a page showing the result of the unpause form submission. CSRF is not addressed because a third party causing submission of an unpause form is not harmful.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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