Coder Social home page Coder Social logo

isabella232 / sdc-smart-login Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tritondatacenter/sdc-smart-login

0.0 0.0 0.0 183 KB

SDC component that enable SSHd on VMs to resolve public keys

License: Mozilla Public License 2.0

Makefile 1.33% Shell 2.98% C 95.69%

sdc-smart-login's Introduction

sdc-smart-login

This repository is part of the Joyent SmartDataCenter project (SDC). For contribution guidelines, issues, and general documentation, visit the main SDC project page.

Overview

Smartlogin is the set of components that enable SSHd on customer zones to resolve public keys in CAPI.

The agent is installed along with other agents, the plugin is included as part of dataset packaging.

A few key tidbites:

  • The agent assumes the OS has libzdoor and libsmartsshd laid down
  • The SMF service makes zones a dependent of this package

Internals

The agent runs as a standalone daemon (note, it doesn't actually fork, it just lets SMF do all that), and is essentially a proxy over CAPI. It maintains a configurable in-memory O(1) LRU cache (cache is hand rolled) for CAPI calls, and has a "refresh" TTL (i.e., if an entry is expired we attempt to replace it, but we don't actually evict it). The only other interesting bit is the fact that we have to maintain our own zone_monitor to account for zones being provisioned/de-provisioned on the box (libzdoor monitors an existing zdoor for reboots, but doesn't take any action in new/destroyed zones).

The package gets built into the agents shar with everything else.

sdc-smart-login's People

Contributors

cburroughs avatar jclulow avatar johnsonnenschein avatar joshwilsdon avatar kusor avatar mcavage avatar orlandov avatar trentm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.