Skip to content

Commit

Permalink
Revert "Allow source address to be specified when issuing ssh cert (#62
Browse files Browse the repository at this point in the history
…)"

This reverts commit 0dea48b.
  • Loading branch information
davissp14 committed May 23, 2024
1 parent 0dea48b commit a5a1290
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions resource_ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ query($slug: String!) {
return data.Organization.LoggedCertificates.Nodes, nil
}

func (c *Client) IssueSSHCertificate(ctx context.Context, org OrganizationImpl, principals []string, appNames []string, valid_hours *int, publicKey ed25519.PublicKey, sourceAddress string) (*IssuedCertificate, error) {
func (c *Client) IssueSSHCertificate(ctx context.Context, org OrganizationImpl, principals []string, appNames []string, valid_hours *int, publicKey ed25519.PublicKey) (*IssuedCertificate, error) {
req := c.NewRequest(`
mutation($input: IssueCertificateInput!) {
issueCertificate(input: $input) {
Expand All @@ -57,10 +57,6 @@ mutation($input: IssueCertificateInput!) {
"publicKey": pubStr,
}

if sourceAddress != "" {
inputs["sourceAddress"] = sourceAddress
}

if valid_hours != nil {
inputs["validHours"] = *valid_hours
}
Expand Down

0 comments on commit a5a1290

Please sign in to comment.