sca

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceConfig

func ServiceConfig() services.IdsecServiceConfig

ServiceConfig returns the configuration for the SCA Access Service. It specifies the service name "sca-access" and requires the "isp" authenticator.

Types

type SCAAccessService

type SCAAccessService struct {
	services.IdsecService
	*services.IdsecBaseService
	// contains filtered or unexported fields
}

SCAAccessService provides access to SCA API endpoints.

func NewSCAAccessService

func NewSCAAccessService(authenticators ...auth.IdsecAuth) (*SCAAccessService, error)

NewSCAAccessService creates a new SCA Access Service instance. It follows the SDK service pattern with ISP authentication.

func NewSCAAccessServiceWithClient

func NewSCAAccessServiceWithClient(client httpClient) *SCAAccessService

NewSCAAccessServiceWithClient creates a service with a custom HTTP client. This is primarily for testing with mock clients.

func (*SCAAccessService) Elevate

Elevate requests JIT elevation for the specified targets. POST /api/access/elevate

func (*SCAAccessService) ElevateGroups added in v0.3.0

ElevateGroups requests JIT elevation for the specified Entra ID groups. POST /api/access/elevate/groups

func (*SCAAccessService) ListEligibility

func (s *SCAAccessService) ListEligibility(ctx context.Context, csp models.CSP) (*models.EligibilityResponse, error)

ListEligibility retrieves eligible targets for the specified CSP. GET /api/access/{CSP}/eligibility

func (*SCAAccessService) ListGroupsEligibility added in v0.3.0

func (s *SCAAccessService) ListGroupsEligibility(ctx context.Context, csp models.CSP) (*models.GroupsEligibilityResponse, error)

ListGroupsEligibility retrieves eligible Entra ID groups for the specified CSP. GET /api/access/{CSP}/eligibility/groups

func (*SCAAccessService) ListSessions

func (s *SCAAccessService) ListSessions(ctx context.Context, csp *models.CSP) (*models.SessionsResponse, error)

ListSessions retrieves active elevated sessions, optionally filtered by CSP. GET /api/access/sessions

func (*SCAAccessService) RevokeSessions added in v0.3.0

RevokeSessions revokes one or more active sessions by their IDs. POST /api/access/sessions/revoke

func (*SCAAccessService) ServiceConfig

func (s *SCAAccessService) ServiceConfig() services.IdsecServiceConfig

ServiceConfig returns the service configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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