App key Issuing server

Source: Internet
Author: User

The company's information security system requires strict issuance and management of the app for the production line, ensuring the security of the key and password.

The previous practice was to:

    1. Establishment of a separate issuing host;
    2. The key is placed on the issuing host, which is managed by the dedicated person;
    3. Build the system each build a production line app, must be manually copied to the host, the manual input password to sign, signed and then the app copied out

This approach is safer, but has obvious drawbacks:

    1. Inconvenient, build a system each build a line app, have to find someone to copy the app, enter the password, copy out the app, very troublesome;
    2. The disconnect from the continuous integration environment, before the development of maintenance code, build system download code, build system build app, publish to internal FTP, test personnel test is a continuous process, but now to build line app this step is disjointed;

To solve this problem, the department leader asked me to redesign a issuing server. After many years of collecting demand and doing a long time analysis, I gave the following scenario:

1. Demand Overview 1.1 Continuous Integration

CI on the APP BuildThe system is building the production lineAPP, you canautomatic connection to the issuing serverto issueso that the issuance process is added to theContinuous Integration Environment;

1.2 reduce manual intervention

the issuing server only needs to enter the password once during run time , can be issued at any time, continuous sign build System-Specified APP until the issuing server is heavily Kai only need to re-enter the issue password;

1.3 Safety Assurance

issuing a server to maximize security, issuing a key and password without landing, allowing the system to be built only system access;

2. Overview Design 2.1. issuing the server startup process



2.2. Issue procedure Workflow


2.2. Description 2.2.1 Implementation of continuous integration
  • The issuing program automatically reads encrypted keys and passwords from memory and does not require manual input to enable uninterrupted issuance ;

  • < Span lang= "zxx" >ci via parameter control build system build line version

    if ci requires the build system to build the production line version, then build the system automatic connection to the issuing server

  • the issuing server automatically from the FTP Server Downloads non-signed APP , upload a signed APP

2.2.2 The solution of the password problem
    • user initiates an encryption program that injects a key and password into memory , issue the app to issue the application automatically read the encrypted key and password from memory, instead of manual input;

    • The encrypted keys and passwords in memory are emptied after the server is restarted.

2.2.3 Safety Assurance
    • The issuing server only allows the build server access;

    • Issuing key and password encryption to inject memory, not landing;

With this package, the implementation is relatively simple. There must be a problem:

How is the key file and password injected into the memory?

In fact, I set up the Redis service on the issuing server, first forbid it to write to the local dump, so that it can only put the data in memory, and then through a variety of Redis interface, the data is encrypted and put in, and later removed is very convenient.

In addition, this scenario assumes that the app build server is secure and allows it to access the issuing server, so you must do the security of your app build server.

App key Issuing server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.