(aud string)
| 630 | } |
| 631 | |
| 632 | func (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 | |
| 646 | func (s *Service) NewDeploymentAnnotations(org *database.Organization, proj *database.Project, environment string) DeploymentAnnotations { |
| 647 | var orgBillingPlanName string |
no test coverage detected