Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #668 from smallstep/herman/allow-deny
Add commands for managing policies
- Loading branch information
Showing
41 changed files
with
2,377 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package acme | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/urfave/cli" | ||
|
||
"github.com/smallstep/cli/command/ca/policy/actions" | ||
"github.com/smallstep/cli/command/ca/policy/policycontext" | ||
"github.com/smallstep/cli/command/ca/policy/x509" | ||
) | ||
|
||
// Command returns the ACME account policy subcommand. | ||
func Command(ctx context.Context) cli.Command { | ||
ctx = policycontext.WithACMEPolicyLevel(ctx) | ||
return cli.Command{ | ||
Name: "acme", | ||
Usage: "manage certificate issuance policies for ACME accounts.", | ||
UsageText: "**step ca policy acme** <subcommand> [arguments] [global-flags] [subcommand-flags]", | ||
Description: `**step ca policy acme** command group provides facilities for managing certificate issuance policies for ACME accounts.`, | ||
Subcommands: cli.Commands{ | ||
actions.ViewCommand(ctx), | ||
actions.RemoveCommand(ctx), | ||
x509.Command(ctx), | ||
}, | ||
} | ||
} |
Oops, something went wrong.