Skip to content

Document necessary grants #112

@vwkd

Description

@vwkd

It would be great if there could be more documentation how to configure Tailscale access controls for tsidp.

Let's say we have tsidp with tag tag:idp and a server with tag tag:foobar. What are the minimal access controls necessary for admins to be able to configure tsidp and for users of the server to use it to log into the server?

These grants are what I currently have.

// Admins can configure IDP
{
  "src": ["autogroup:admin"],
  "dst": ["tag:idp"],
  "ip":  ["443"],
  "app": {
    "tailscale.com/cap/tsidp": [
      {
        "allow_admin_ui": true,
      },
    ],
  },
},
// Admins and shared users can use IDP
{
  "src": ["autogroup:admin", "autogroup:shared"],
  "dst": ["tag:idp"],
  "ip":  ["443"],
  "app": {
    "tailscale.com/cap/tsidp": [
      {
        "allow_dcr": true,
        "users":     ["*"],
        "resources": ["*"],
      },
    ],
  },
},
// Server can access port 443 of IDP
{
	"src": ["tag:foobar"],
	"dst": ["tag:idp"],
	"ip":  ["443"],
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions