diff options
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/config.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testdata/config.go b/testdata/config.go new file mode 100644 index 0000000..ef5fdac --- /dev/null +++ b/testdata/config.go @@ -0,0 +1,33 @@ +package testdata + +var ServerConfig = []byte(`{ +"server": { + "use_tls": true, + "tls_key": "server.key", + "tls_cert": "server.crt", + "port": 443, + "cookie_secret": "supersecret" + } +}`) + +var AuthConfig = []byte(`{ + "auth": { + "provider": "google", + "oauth_client_id": "client_id", + "oauth_client_secret": "secret", + "oauth_callback_url": "https://sshca.example.com/auth/callback", + "provider_opts": { + "domain": "example.com" + }, + "jwt_signing_key": "supersecret" + } +}`) + +var SSHConfig = []byte(`{ + "ssh": { + "signing_key": "signing_key", + "additional_principals": ["ec2-user", "ubuntu"], + "max_age": "720h", + "permissions": ["permit-pty", "permit-X11-forwarding", "permit-port-forwarding", "permit-user-rc"] + } +}`) |