Download the PHP package nawasara/teleport without Composer

On this page you can find all versions of the php package nawasara/teleport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package teleport

Nawasara Teleport

Teleport SSH SSO admin dashboard for the Nawasara superapp framework — list nodes/users/roles, launch browser-based SSH terminals with auto-login impersonation from Keycloak, and audit every access for forensic accountability.

Features

Architecture

This package is the Laravel half of a two-tier system. The other half is nawasara/teleport-bridge — a Go sidecar that wraps the Teleport API and bridges WebSocket ↔ SSH session.

Installation

The package is auto-discovered by Laravel.

Sidecar setup

This package will not function without the Go sidecar reachable. Set up the sidecar first:

  1. Clone nawasara/teleport-bridge and follow its setup guide
  2. The sidecar needs:
    • BRIDGE_SECRET — shared HMAC secret (also stored in Vault on the Laravel side)
    • TELEPORT_PROXY — your Teleport proxy hostname:port (e.g. teleport.example.com:443)
    • identity.pem — Teleport identity file generated via tsh login for a dedicated bot user
  3. Verify the sidecar is reachable: curl http://127.0.0.1:9181/api/health should return 200 with cluster_name

Storing credentials in Vault

  1. Open Nawasara → /nawasara-vault
  2. Choose the Teleport group
  3. Fill in:
    • Bridge URL — sidecar HTTP endpoint, e.g. http://127.0.0.1:9181
    • Bridge Secret — same HMAC secret set in BRIDGE_SECRET on the sidecar
    • Proxy Address — Teleport proxy hostname:port, used for display only
  4. Save and click Test Connection — should return Connected to cluster: <cluster_name>

The package picks up credentials from Vault automatically.

Verification

Open Teleport → Nodes in the sidebar. Your registered SSH nodes should appear with their online status. Click [Connect] on any node to launch a browser SSH terminal.

If something fails:

Permissions

Permission Description
teleport.node.view List Teleport nodes
teleport.user.view List Teleport users
teleport.role.view List Teleport roles
teleport.ssh.connect Launch browser SSH terminal (impersonate as Keycloak username)
teleport.session.view View SSH session audit log (read-only — meant for compliance reviewers)

All permissions auto-assigned to the developer role by the seeder.

teleport.session.view is intentionally separate from teleport.ssh.connect — auditors can read who accessed what without gaining the capability to launch new SSH sessions.

Routes

Method URL Permission Purpose
GET /nawasara-teleport/nodes teleport.node.view Node inventory + Connect launcher
GET /nawasara-teleport/users teleport.user.view Teleport user listing
GET /nawasara-teleport/roles teleport.role.view Teleport role listing
GET /nawasara-teleport/sessions teleport.session.view SSH session audit log
GET /nawasara-teleport/terminal/{ticket} teleport.ssh.connect Fullscreen terminal page (xterm.js + ws)
POST /nawasara-teleport/terminal/{ticket}/reissue teleport.ssh.connect Mint fresh ticket for in-place reconnect
POST /api/internal/teleport/session-closed HMAC bearer (sidecar only) Webhook receiver for ws-close enrichment (duration_seconds)

How auto-login works

  1. Admin logs in to Nawasara via Keycloak SSO (handled by nawasara/core)
  2. Admin clicks [Connect] on a node — Livewire opens a confirmation modal asking for an access reason
  3. On submit, Laravel calls the sidecar /api/connect with the admin's Keycloak username + target node + OS login
  4. Sidecar mints an ed25519 ephemeral keypair, signs an SSH cert via Teleport GenerateUserCerts API with the username field set to the Keycloak identity, issues a single-use UUID v7 ticket
  5. Browser opens a new tab with the ticket in the URL; backend serves a standalone xterm.js page; JS opens a WebSocket to the sidecar
  6. Sidecar dials Teleport proxy via TLS routing (ALPN protocol teleport-proxy-ssh), runs the proxy:host:0@cluster subsystem, stacks a second SSH client over the pipe, and bridges bytes between WS and the SSH session

The audit row is written before the cert is minted (so failed launches still appear), and updated on ws.onclose with duration_seconds and ended_reason via a webhook from sidecar to Laravel.

Author

Pringgo J. Saputro <[email protected]>

License

MIT


All versions of teleport with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^12.0
spatie/laravel-permission Version ^6.0
nawasara/ui Version *
nawasara/vault Version *
livewire/livewire Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nawasara/teleport contains the following files

Loading the files please wait ...