acl

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 19 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package acl implements 'alpacon acl', which manages the command pre-approval ledger held by the command signer.

Index

Constants

This section is empty.

Variables

View Source
var AclCmd = &cobra.Command{
	Use:   "acl",
	Short: "Manage pre-approved commands",
	Long: `Manage the command pre-approval ledger: the pre-approved commands a service
token may run without each run being judged again, and the Command ACL admins
who may change them. The web console shows the same entries under
Pre-approved commands on a service token's page. A personal API token has no
command list on the ledger.

The ledger is kept by the command signer rather than the workspace, so the
first acl command asks you to authorize it in the browser, the same way
'alpacon login' does. That authorization is not renewed in the background:
when it expires, the next acl command asks for it again.

Only a Command ACL admin of the workspace may read or change the ledger, and
only with their own sign-in—an API token cannot. Workspaces that do not use the
ledger keep managing command ACLs with 'alpacon token acl command'.

Set ALPACON_AI_URL to reach a self-hosted command signer; Alpacon Cloud
workspaces need no configuration.`,
	RunE: func(cmd *cobra.Command, args []string) error {
		return utils.RequireSubcommand(cmd)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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