Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deprecate password files in favor of secrets #152

Merged
merged 37 commits into from
Dec 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
e1179b7
refactor(jans-pycloudlib): rewrite password file handler
iromli Dec 7, 2021
963f016
chore: change warning message about password file
iromli Dec 8, 2021
7ef3db1
refactor(jans-pycloudlib): simplify password file check
iromli Dec 8, 2021
e92c7b1
feat(configurator): ensure persistence password saved on first init
iromli Dec 8, 2021
481a938
docs(configurator): add missing initialization attributes
iromli Dec 8, 2021
a988e90
ci: update pycloud dev build
moabu Dec 9, 2021
95a75f6
ci: use base ref as base
moabu Dec 9, 2021
bf83ac6
ci: simplify janspycloud image build
moabu Dec 9, 2021
470d605
Merge branch 'master' into secure-passwd
moabu Dec 9, 2021
2878750
ci: fix branch name reference
moabu Dec 9, 2021
aafd9f4
ci: update pycloud workflow
moabu Dec 9, 2021
0b53404
ci: fix syntax
moabu Dec 9, 2021
2ec447c
ci: fix image build
moabu Dec 9, 2021
a1b854f
ci: pull
moabu Dec 9, 2021
4ea440a
ci: pull
moabu Dec 9, 2021
a8de96d
ci: try force
moabu Dec 9, 2021
3e226fe
Merge a8de96d7205c26fb076fe63009c9624fe691679b into bf4cc3799eca1515f…
iromli Dec 9, 2021
a2d3a16
chore(jans-pycloudlib): updated build
mo-auto Dec 9, 2021
7738312
Merge a2d3a167a731d1c43cc888ac816291f43a04b726 into bf4cc3799eca1515f…
iromli Dec 9, 2021
77a301f
chore(jans-pycloudlib): updated build
mo-auto Dec 9, 2021
16e91c2
test(jans-pycloudlib): testcases for passwords
iromli Dec 9, 2021
5c79c83
ci: pass token for user to make authenticated call
moabu Dec 10, 2021
69f40e8
ci: remove force pushing
moabu Dec 10, 2021
e4ef5b4
ci: change workflow name
moabu Dec 10, 2021
aa17365
ci: passing a token for authentication
moabu Dec 10, 2021
d6d752f
ci: add remote url
moabu Dec 10, 2021
3fdf83a
ci: fix syntax
moabu Dec 10, 2021
3bf34ce
ci: action push
moabu Dec 10, 2021
24c9132
ci: adjust workflows for creating dev images
moabu Dec 10, 2021
fda1a5e
ci: enable auto merge
moabu Dec 10, 2021
ed1c41b
chore(jans-pycloudlib): updated build (#156)
mo-auto Dec 10, 2021
78807aa
ci: don't trigger updates on bot pushes
moabu Dec 10, 2021
d026821
ci: fix syntax
moabu Dec 10, 2021
a35a27f
ci: fix syntax
moabu Dec 10, 2021
0546c8e
chore(jans-pycloudlib): updated build (#158)
mo-auto Dec 10, 2021
cf7266b
ci: update build dates in prep for next release
moabu Dec 23, 2021
f1768d7
chore(jans-pycloudlib): updated build (#163)
mo-auto Dec 23, 2021
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
Prev Previous commit
Next Next commit
ci: simplify janspycloud image build
  • Loading branch information
moabu committed Dec 9, 2021
commit bf83ac6c77a25636fe77e0fa19f87b8c9cfd1f1a
2 changes: 2 additions & 0 deletions .github/workflows/docker_build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
branches:
# below branch is triggered by jenkins which triggers dev image
- update-source-build-date
# below protected branche prefix only allows internal teams to push to it
- cn-*
paths:
- "docker-jans-**/**"
- "!**.md"
Expand Down
48 changes: 2 additions & 46 deletions .github/workflows/jans_pycloud_build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
docker:
runs-on: ubuntu-latest
env:
PR_DOCKER_DEV_BRANCH_NAME: update-dev-jans-pycloudlib
PR_DOCKER_STABLE_BRANCH_NAME: update-stable-jans-pycloudlib
PR_DOCKER_STABLE_BRANCH_NAME: update-jans-pycloudlib
GITHUB_TOKEN: ${{ secrets.MOWORKFLOWTOKEN }}
steps:
- name: Checkout
Expand All @@ -39,27 +38,7 @@ jobs:
git_user_signingkey: true
git_commit_gpgsign: true

- name: Update dev requriments in docker images
if: github.event_name == 'pull_request'
id: build_dev_reqs
run: |
dockerimages="auth-server certmanager client-api config-api configurator fido2 persistence-loader scim"
for image in $dockerimages; do
sed -i '/git+https/c\git+https://github.com/${{ github.repository }}@${{ env.PR_DOCKER_DEV_BRANCH_NAME }}#egg=jans-pycloudlib&subdirectory=jans-pycloudlib' ./docker-jans-$image/requirements.txt
done

- name: Configure Git and open dev PR
if: github.event_name == 'pull_request'
run: |
git config user.name "mo-auto"
git config user.email "54212639+mo-auto@users.noreply.github.com"
git config --global user.signingkey "${{ steps.import_gpg.outputs.keyid }}"
git add -A
git commit -S -s -m "chore(jans-pycloudlib): updated dev build"


- name: Update stable requriments in docker images
if: github.event_name != 'pull_request'
id: build_stable_reqs
run: |
dockerimages="auth-server certmanager client-api config-api configurator fido2 persistence-loader scim"
Expand All @@ -68,40 +47,17 @@ jobs:
done

- name: Configure Git and open stable PR
if: github.event_name != 'pull_request'
run: |
git config user.name "mo-auto"
git config user.email "54212639+mo-auto@users.noreply.github.com"
git config --global user.signingkey "${{ steps.import_gpg.outputs.keyid }}"
git add -A
git commit -S -s -m "chore(jans-pycloudlib): updated stable build"
git commit -S -s -m "chore(jans-pycloudlib): updated build"

# Buggy behaviour with gh pr command. Will use the following action until bugs have been fixed.
#PR=$(gh pr create --head $PR_DOCKER_DEV_BRANCH_NAME --assignee "moabu" --base "master" --body "Updated build date. Auto-generated." --label "enhancement,bot" --reviewer "moabu" --title "chore(Dockerfile): updated build dates" || echo "PR Branch is already open")
- name: Open PR
if: github.event_name != 'pull_request'
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.MOWORKFLOWTOKEN }}
committer: mo-auto <54212639+mo-auto@users.noreply.github.com>
author: mo-auto <54212639+mo-auto@users.noreply.github.com>
branch: ${{ env.PR_DOCKER_STABLE_BRANCH_NAME }}
title: 'chore(Dockerfiles): updated janspycloud build'
body: |
- Merge PR. Do not leave open
- Updated stable build
- Auto-generated.
labels: |
enhancement
bot
assignees: moabu
reviewers: moabu
delete-branch: true

# Buggy behaviour with gh pr command. Will use the following action until bugs have been fixed.
#PR=$(gh pr create --head $PR_DOCKER_DEV_BRANCH_NAME --assignee "moabu" --base "master" --body "Updated build date. Auto-generated." --label "enhancement,bot" --reviewer "moabu" --title "chore(Dockerfile): updated build dates" || echo "PR Branch is already open")
- name: Open PR
if: github.event_name == 'pull_request'
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.MOWORKFLOWTOKEN }}
Expand Down