MCPcopy Index your code
hub / github.com/rilldata/rill / IssueRuntimeManagementToken

Method IssueRuntimeManagementToken

admin/deployments.go:632–644  ·  view source on GitHub ↗
(aud string)

Source from the content-addressed store, hash-verified

630}
631
632func (s *Service) IssueRuntimeManagementToken(aud string) (string, error) {
633 jwt, err := s.issuer.NewToken(auth.TokenOptions{
634 AudienceURL: aud,
635 Subject: "admin-service",
636 TTL: time.Hour,
637 SystemPermissions: []runtime.Permission{runtime.ManageInstances, runtime.ReadInstance, runtime.ManageInstance, runtime.EditTrigger, runtime.ReadObjects},
638 })
639 if err != nil {
640 return "", err
641 }
642
643 return jwt, nil
644}
645
646func (s *Service) NewDeploymentAnnotations(org *database.Organization, proj *database.Project, environment string) DeploymentAnnotations {
647 var orgBillingPlanName string

Callers 2

OpenRuntimeClientMethod · 0.95

Calls 1

NewTokenMethod · 0.80

Tested by

no test coverage detected