Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

VGS Custom MITM #1

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7c221d6
Initial commit
Feb 16, 2017
3685599
Commented release plugin
Feb 16, 2017
c496c65
New Development Environment and Support for AWS Environment Variables
mjallday Apr 8, 2017
3a6a83e
Certificate Cache Expiration Fix (#3)
viacheslav-fomin-main Jan 24, 2019
7199f1d
CircleCi 2.0 support (#4)
viacheslav-fomin-main Jan 25, 2019
3e1b11c
Fixed gitflow plugin
zdmytriv Jan 25, 2019
2c8b095
Tuned gitflow plugin
zdmytriv Jan 25, 2019
6c6a26d
updated ssh key fingerprint
zdmytriv Jan 25, 2019
c33a7b9
updated github ssh key fingerprint
zdmytriv Jan 25, 2019
e8d2c90
update versions for 1.0.2-VGS release
Jan 25, 2019
b3afdcf
update for next development version 1.0.3-VGS-SNAPSHOT
Jan 25, 2019
5ea3def
Expire cert in one hour (#5)
viacheslav-fomin-main Jan 25, 2019
10ef0ce
update versions for 1.0.3-VGS release
Jan 25, 2019
968d8f6
update for next development version 1.0.4-VGS-SNAPSHOT
Jan 25, 2019
92bf2d2
license report (#6)
k-sever Jun 11, 2019
a2449b4
Configurable key sizes for impersonating x509 (#7)
osklyarenko Mar 5, 2020
d29991f
Renamed builder params (#8)
osklyarenko Mar 5, 2020
b8d63da
Updated SSH fingerprint to use RW key (#9)
nestorsokil Mar 10, 2020
6852f4c
Fix wrong SANs return in case of SNI (#15)
kochniev Mar 16, 2022
5b197d5
update versions for 1.0.5-testrelease1 release
Mar 16, 2022
b464e94
update for next development version 1.0.6-testrelease1-SNAPSHOT
Mar 16, 2022
aa761e1
APPSEC-653, CSL3-1005 - Update fingerprint (#16)
kochniev Mar 16, 2022
bb9c6b9
update versions for 1.0.5-VGS release
Mar 16, 2022
ad0a1e3
update for next development version 1.0.6-VGS-SNAPSHOT
Mar 16, 2022
a69e5dd
update versions for 1.0.6-VGS release
Jun 8, 2023
691aedb
update for next development version 1.0.7-VGS-SNAPSHOT
Jun 8, 2023
0cbaf14
CSL3-1537 - Update libs (#20)
kochniev Jun 9, 2023
b63d320
update versions for 1.0.6-VGS release
Jun 9, 2023
d64ad9a
update for next development version 1.0.7-VGS-SNAPSHOT
Jun 9, 2023
3d8b2b4
update versions for 1.0.7-VGS release
Jun 21, 2023
3931b0a
update for next development version 1.0.8-VGS-SNAPSHOT
Jun 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 143 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
job-defaults: &job-defaults
working_directory: &working_directory
~/LittleProxy-mitm
test_results_directory: &test_results_directory
/tmp/test-results
environment:
- RELEASE_BRANCH: vgs-edition
- AWS_DEFAULT_REGION: us-west-2
- AWS_REGION: us-west-2
- AWS_PROFILE: vgs-dev

# Set up AWS environment
setup-env: &setup-env
run:
name: Setup Environment
command: ./scripts/env.sh

# Template to save Maven dependency cache to restore it in another jobs
save-maven-cache: &save-maven-cache
save_cache:
key: LittleProxy-mitm-{{ checksum "pom.xml" }}
paths:
- ~/.m2

restore-maven-cache: &restore-maven-cache
restore_cache:
key: LittleProxy-mitm-{{ checksum "pom.xml" }}

# Persists workspace so it can be attached in another jobs as soon as it was checked out and built
persist-workspace: &persist-workspace
persist_to_workspace:
root: .
paths: "*"

attach-workspace: &attach-workspace
attach_workspace:
at: *working_directory

# === JOBS ===
version: 2
jobs:
build:
<<: *job-defaults
machine:
enabled: true
steps:
- checkout
- <<: *setup-env
- <<: *restore-maven-cache
- run:
name: Maven Clean Package
command: |
unset AWS_ACCESS_KEY_ID; unset AWS_SECRET_ACCESS_KEY; mvn clean dependency:go-offline install -Dmaven.test.skip=true --threads 5 -B
- run:
name: Collect Licenses
command: unset AWS_ACCESS_KEY_ID; unset AWS_SECRET_ACCESS_KEY; mvn license:aggregate-third-party-report
- store_artifacts:
path: target/site/aggregate-third-party-report.html
- <<: *save-maven-cache
- <<: *persist-workspace
test:
<<: *job-defaults
machine:
enabled: true
steps:
- <<: *attach-workspace
- <<: *restore-maven-cache
- run:
name: Run test
command: |
unset AWS_ACCESS_KEY_ID; unset AWS_SECRET_ACCESS_KEY; ./scripts/run_circle_tests.sh
deployment:
<<: *job-defaults
machine:
enabled: true
steps:
- <<: *attach-workspace
- <<: *restore-maven-cache
- <<: *setup-env
- run:
name: Deploy
command: |
unset AWS_ACCESS_KEY_ID; unset AWS_SECRET_ACCESS_KEY; mvn deploy -DskipTests=true
release:
<<: *job-defaults
machine:
enabled: true
steps:
- <<: *attach-workspace
- <<: *restore-maven-cache
- <<: *setup-env
- add_ssh_keys:
fingerprints:
- "3b:ed:ab:df:96:fb:b2:6c:00:44:ac:3e:3d:ae:72:90"
- run:
name: Release
command: |
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
git config user.name "circleci"
git config user.email "circleci@vgs.com"
git fetch
git checkout $RELEASE_BRANCH
git pull origin $RELEASE_BRANCH
git reset --hard
git tag -d $CIRCLE_TAG
mvn -B -X -e gitflow:release-start -DreleaseVersion=$CIRCLE_TAG
mvn -B -X -e gitflow:release-finish -DreleaseVersion=$CIRCLE_TAG -DpostReleaseGoals='deploy -DskipTests'
git push origin $RELEASE_BRANCH

# === WORKFLOW ===
workflows:
version: 2
build_test_and_deploy:
jobs:
- build:
context: artifact-publisher
filters:
tags:
only: /.*/
- test:
context: artifact-publisher
requires:
- build
filters:
tags:
only: /.*/
- deployment:
context: artifact-publisher
requires:
- test
filters:
branches:
only: vgs-edition
- release:
context: artifact-publisher
requires:
- test
filters:
branches:
ignore: /.*/
tags:
only: /.*/
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
/*.log
/littleproxy_cert
/littleproxy_keystore.jks

### IntelliJ template
.idea/
*.iml
Loading