Code Monkey home page Code Monkey logo

ops.aiakos's Introduction

FIWARE Aiakos

Build Status Coverage Status

Server with public API to manage ssh/gpg public keys for the support user of each FIWARE Lab node.

This project is part of FIWARE.

Any feedback on this documentation is highly welcome, including bugs, typos or things you think should be included but are not. You can use github issues to provide feedback.

Top

Aiakos is a service developed to store the public keys corresponding to each FIWARE Lab node in order to secure the access to the virtual machines instantiated in the FIWARE Lab. The description of all this process and why we need to do it can be found in the Generating support keys.

Top

To upload new/modified a gpg key to the server. You should send a POST like this:

curl --request POST \
    --url http://aiakoshost/v1/support \
    --header 'accept: text/plain' \
    --header 'content-type: text/plain' \
    --header 'x-auth-token: 201dd9a13de844db905cb4f617cbc17d' \
    --data '-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1\n\nmQENBFWnVCYBCADPeDMbTOkCM4MPbUMvtbAtGbUDnH3AHyZCEZZuyjeExATfT0Au\n-----END PGP PUBLIC KEY BLOCK-----'

The result of this operation is a text/plain response with the generated key:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mQENBFWnVCYBCADPeDMbTOkCM4MPbUMvtbAtGbUDnH3AHyZCEZZuyjeExATfT0Au
-----END PGP PUBLIC KEY BLOCK-----

Please have a look at the API Reference Documentation section below for more description and operations.

Top

Refer to the documentation of your Linux distribution to set up the URL of the repository where FIWARE packages are available (and update cache, if needed). Currently, http://repositories.lab.fiware.org/repo/rpm/x86_64

Then, use the package tool to install fiware-aiakos:

$ sudo yum install fiware-aiakos

Although some options can be specified from the command line, as a general rule the use of a configuration file is preferable:

  • /etc/sysconfig/aiakos.yml (when running system service)
  • {installation_path}/config/aiakos.yml (when running manually)

Such configuration file is self-documented, so you will find a description of every configuration option there.

After installing and configuring the service, you can execute the service with the following command:

$ sudo service fiware-aiakos start

And to stop the service, run:

$ sudo service fiware-aiakos stop

In order to test the service is running, run:

$ curl http://localhost:3000/v1/support/example/sshkey

Top

The key files for aiakos are stored in the folder /opt/fiware-aiakos/lib/public/keys. The naming must be <region_name>.sshkey and <region_name>.gpgkey (lowercase is mandatory)

Top

The test target is used for running the unit tests in the component:

$ cd fiware-aiakos
$ grunt test

Top

Use the script provided for generate the package for the OS used:

$ tools/build/package.sh

Top

You can use this Dockerfile to launch/execute the Docker image and container:

$ docker build -t fiwareaiakos .
$ docker run -p 3000:3000 -d fiwareaiakos

Top

(c) 2015 Telefónica I+D, Apache License 2.0

Top

ops.aiakos's People

Contributors

jesuspg avatar jframos avatar hmunfru avatar chemaper avatar

Watchers

James Cloos avatar ragitam_6706144126 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.