This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'prepare-release' into release
- Loading branch information
Showing
15 changed files
with
100 additions
and
592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Docs moved to Project "Piper" page | ||
|
||
Documentation has been moved to the [page of project "Piper"](https://sap.github.io/jenkins-library/). | ||
Please update any bookmarks you might have. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Unify the "build" and "unit-tests" stage | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
Our CI/CD Pipeline has a build stage, which builds the backend and if available the frontend of the application. | ||
Due to many projects which created their unit-tests next to their productive code, which is also a standard recommended by maven, the SAP Cloud SDK Pipeline should be able to execute the unit-tests and handle their result in the build stage. | ||
|
||
## Decision | ||
|
||
Both `build` (backend as well as frontend) and `unit-tests` are unified into one `build-and-test` stage. | ||
First the backend will be built and tested and in case a `package.json` and no `node_modules` exist the frontend will be built. | ||
The behaviour for projects using NPM as their primary build-tool is identical. | ||
|
||
## Consequences | ||
|
||
- The Unit-Tests-Stage is removed from the pipeline which will be executed at runtime. | ||
|
||
- Users cannot configure the dockerimage used for unit-tests anymore |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Docs moved to Project "Piper" page | ||
|
||
Documentation has been moved to the [page of project "Piper"](https://sap.github.io/jenkins-library/). | ||
Please update any bookmarks you might have. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1 @@ | ||
### TLS Support in `cx-server` | ||
|
||
The TLS protocols provide an encryption of a traffic exchange in the transport layer. The `cx-server` can be set up to use this encryption for additional security measures. | ||
In order to enable TLS in your cx-server, you need a certificate either self-signed or issued by a CA along with an RSA private key which was used to generate the certificate signing request. | ||
In the following guide, you will learn how to generate a self-signed certificate. | ||
|
||
##### Install OpenSSL | ||
OpenSSL is a general purpose cryptography library which we will use in the following steps to generate the self-signed certificate. | ||
Please download and install it from the [downloads](https://www.openssl.org/source/) page. For Windows binaries, please check this [wiki](https://wiki.openssl.org/index.php/Binaries) page. | ||
In order to ensure that OpenSSL is successfully installed, execute the below command and verify. | ||
``` | ||
$ openssl version | ||
OpenSSL 1.0.2g 1 Mar 2016 | ||
``` | ||
|
||
##### Generate private key | ||
The first step is to create your RSA private key. | ||
``` | ||
$ openssl genrsa -out jenkins.key 2048 | ||
Generating RSA private key, 2048 bit long modulus | ||
......................+++ | ||
..........................................+++ | ||
e is 65537 (0x10001) | ||
``` | ||
##### Generate Certificate Signing Request [(CSR)](https://en.wikipedia.org/wiki/Certificate_signing_request) | ||
Once you have the private key, the next step is to create the CSR. Enter the below command to generate a CSR. | ||
``` | ||
openssl req -new -key jenkins.key -out jenkins.csr | ||
``` | ||
You will be prompted to provide multiple pieces of information regarding the certificate that you will be creating. | ||
|
||
``` | ||
You are about to be asked to enter information that will be incorporated | ||
into your certificate request. | ||
What you are about to enter is what is called a Distinguished Name or a DN. | ||
There are quite a few fields but you can leave some blank | ||
For some fields there will be a default value, | ||
If you enter '.', the field will be left blank. | ||
----- | ||
Country Name (2 letter code) [AU]:DE | ||
State or Province Name (full name) [Some-State]:Berlin | ||
Locality Name (eg, city) []:Berlin | ||
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Example pvt ltd | ||
Organizational Unit Name (eg, section) []:myUnit | ||
Common Name (e.g. server FQDN or YOUR name) []:jenkins.example.com | ||
Email Address []:my.email@example.com | ||
Please enter the following 'extra' attributes | ||
to be sent with your certificate request | ||
A challenge password []:. | ||
An optional company name []: | ||
``` | ||
Once you enter all the details, a `jenkins.csr` file will be created. | ||
|
||
##### Generating a Self-Signed Certificate | ||
You can now create a self-signed certificate using the CSR. Run the command given below. This will generate a certificate `jenkins.crt` with a validity of 1 year. | ||
|
||
``` | ||
$ openssl x509 -req -days 365 -in jenkins.csr -signkey jenkins.key -out jenkins.crt | ||
Signature ok | ||
subject=/C=DE/ST=Berlin/L=Berlin/O=Example pvt Ltd/OU=myOrgUnit/CN=jenkins.example.com/emailAddress=my_email@example.com | ||
Getting Private key | ||
``` | ||
This document was moved to [the CX Server GitHub repository](https://github.com/SAP/devops-docker-cx-server/blob/master/docs/operations/self-signed-tls.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Docs moved to Project "Piper" page | ||
|
||
Documentation has been moved to the [page of project "Piper"](https://sap.github.io/jenkins-library/). | ||
Please update any bookmarks you might have. |
Oops, something went wrong.