SSO enforcement for Git and API access

Works by looking up browser sessions stored in Redis to see if the user
has any active SAML sessions for the group a resource belongs to.

When we are in a web request we use the current session.
Outside of web requests we check for background sessions.
127 jobs for jej/enforce-sso-background-session-for-git-and-api in 54 minutes and 25 seconds (queued for 2 minutes and 52 seconds)
latest
Status Job ID Name Coverage
  Build
manual #245139850
gitlab-org allowed to fail manual
review-docs-deploy-manual
 
  Prepare
passed #245139854
gitlab-org
compile-assets pull-cache

00:08:05

passed #245139856
gitlab-org
retrieve-tests-metadata

00:00:49

passed #245139855
gitlab-org
setup-test-env

00:07:24

 
  Test
passed #245139971
docker gitlab-org
build-qa-image

00:05:23

passed #245139869
allowed to fail
code_quality

00:11:02

passed #245139973
gitlab-org
danger-review

00:02:39

passed #245139944
gitlab-org
db:check-schema-pg

00:04:23

passed #245139943
gitlab-org
db:migrate:reset-pg

00:02:42

passed #245139946
gitlab-org
db:rollback-pg

00:03:01

passed #245139970
gitlab-org
db:rollback-pg-geo

00:03:38

passed #245139871
allowed to fail
dependency_scanning

00:09:56

passed #245139857
gitlab-org
docs lint

00:03:05

passed #245139942
gitlab-org
downtime_check

00:02:23

passed #245139975
gitlab-org
ee-files-location-check

00:03:39

passed #245139976
gitlab-org
ee-specific-lines-check

00:03:35

passed #245139858
gitlab-org docker
gitlab:assets:compile pull-cache

00:20:44

passed #245139947
gitlab-org
gitlab:setup-pg

00:06:27

failed #245139859
gitlab-org allowed to fail
gitlab:ui:visual

00:00:57

passed #245139974
gitlab-org
gitlab_git_test

00:01:36

passed #245139861
gitlab-org
jest

00:19:07

passed #245139860
gitlab-org
karma

00:15:13

69.62%
passed #245139977
gitlab-org
lint-ci-gitlab

00:00:52

passed #245139868
gitlab-org
memory-on-boot

00:05:07

passed #245139867
gitlab-org
memory-static

00:03:29

passed #245139945
gitlab-org
migration:path-pg

00:05:19

passed #245139969
gitlab-org
migration:upgrade-pg-ce-to-ee

00:05:32

passed #245139865
gitlab-org
qa-frontend-node:10

00:16:37

passed #245139864
gitlab-org
qa-frontend-node:8

00:18:37

passed #245139866
gitlab-org allowed to fail
qa-frontend-node:latest

00:19:54

passed #245139862
gitlab-org
qa:internal

00:03:12

passed #245139863
gitlab-org
qa:selectors

00:03:11

passed #245139972
allowed to fail manual
review-build-cng

00:25:47

passed #245139963
gitlab-org
rspec geo pg ee 1/3

00:08:32

passed #245139964
gitlab-org
rspec geo pg ee 2/3

00:10:14

passed #245139965
gitlab-org
rspec geo pg ee 3/3

00:07:24

passed #245139966
gitlab-org
rspec geo pg-10 ee 1/3

00:09:45

passed #245139967
gitlab-org
rspec geo pg-10 ee 2/3

00:09:49

passed #245139968
gitlab-org
rspec geo pg-10 ee 3/3

00:07:17

passed #245139898
gitlab-org
rspec integration pg 1/6

00:19:46

passed #245139899
gitlab-org
rspec integration pg 2/6

00:22:36

passed #245139900
gitlab-org
rspec integration pg 3/6

00:18:52

passed #245139901
gitlab-org
rspec integration pg 4/6

00:18:30

passed #245139902
gitlab-org
rspec integration pg 5/6

00:20:21

passed #245139903
gitlab-org
rspec integration pg 6/6

00:19:36

passed #245139955
gitlab-org
rspec integration pg ee 1/3

00:13:36

passed #245139956
gitlab-org
rspec integration pg ee 2/3

00:14:07

failed #245139957
gitlab-org
rspec integration pg ee 3/3

00:13:16

passed #245139904
gitlab-org
rspec system pg 1/24

00:11:21

passed #245139914
gitlab-org
rspec system pg 10/24

00:12:46

passed #245139915
gitlab-org
rspec system pg 11/24

00:13:22

passed #245139916
gitlab-org
rspec system pg 12/24

00:14:30

passed #245139917
gitlab-org
rspec system pg 13/24

00:10:26

passed #245139918
gitlab-org
rspec system pg 14/24

00:11:12

passed #245139919
gitlab-org
rspec system pg 15/24

00:15:51

passed #245139920
gitlab-org
rspec system pg 16/24

00:15:32

passed #245139921
gitlab-org
rspec system pg 17/24

00:15:00

passed #245139922
gitlab-org
rspec system pg 18/24

00:14:40

passed #245139923
gitlab-org
rspec system pg 19/24

00:14:09

passed #245139905
gitlab-org
rspec system pg 2/24

00:11:59

passed #245139924
gitlab-org
rspec system pg 20/24

00:12:50

passed #245139925
gitlab-org
rspec system pg 21/24

00:14:19

passed #245139926
gitlab-org
rspec system pg 22/24

00:13:51

passed #245139938
gitlab-org
rspec system pg 23/24

00:12:01

passed #245139939
gitlab-org
rspec system pg 24/24

00:12:31

passed #245139906
gitlab-org
rspec system pg 3/24

00:11:41

passed #245139907
gitlab-org
rspec system pg 4/24

00:11:17

passed #245139908
gitlab-org
rspec system pg 5/24

00:12:36

passed #245139909
gitlab-org
rspec system pg 6/24

00:13:46

passed #245139910
gitlab-org
rspec system pg 7/24

00:11:37

passed #245139911
gitlab-org
rspec system pg 8/24

00:13:47

passed #245139913
gitlab-org
rspec system pg 9/24

00:13:42

passed #245139958
gitlab-org
rspec system pg ee 1/5

00:14:05

passed #245139959
gitlab-org
rspec system pg ee 2/5

00:14:56

passed #245139960
gitlab-org
rspec system pg ee 3/5

00:14:14

passed #245139961
gitlab-org
rspec system pg ee 4/5

00:14:42

passed #245139962
gitlab-org
rspec system pg ee 5/5

00:16:33

passed #245139873
gitlab-org
rspec unit pg 1/25

00:12:55

passed #245139882
gitlab-org
rspec unit pg 10/25

00:13:33

passed #245139883
gitlab-org
rspec unit pg 11/25

00:14:24

passed #245139884
gitlab-org
rspec unit pg 12/25

00:13:21

passed #245139885
gitlab-org
rspec unit pg 13/25

00:16:39

passed #245139886
gitlab-org
rspec unit pg 14/25

00:14:06

passed #245139887
gitlab-org
rspec unit pg 15/25

00:12:52

passed #245139888
gitlab-org
rspec unit pg 16/25

00:13:41

passed #245139889
gitlab-org
rspec unit pg 17/25

00:13:25

passed #245139890
gitlab-org
rspec unit pg 18/25

00:13:59

passed #245139891
gitlab-org
rspec unit pg 19/25

00:14:57

passed #245139874
gitlab-org
rspec unit pg 2/25

00:11:53

passed #245139892
gitlab-org
rspec unit pg 20/25

00:13:56

passed #245139893
gitlab-org
rspec unit pg 21/25

00:16:53

passed #245139894
gitlab-org
rspec unit pg 22/25

00:14:19

passed #245139895
gitlab-org
rspec unit pg 23/25

00:13:16

passed #245139896
gitlab-org
rspec unit pg 24/25

00:16:32

passed #245139897
gitlab-org
rspec unit pg 25/25

00:13:37

passed #245139875
gitlab-org
rspec unit pg 3/25

00:12:29

passed #245139876
gitlab-org
rspec unit pg 4/25

00:11:41

passed #245139877
gitlab-org
rspec unit pg 5/25

00:12:34

passed #245139878
gitlab-org
rspec unit pg 6/25

00:13:30

passed #245139879
gitlab-org
rspec unit pg 7/25

00:12:45

passed #245139880
gitlab-org
rspec unit pg 8/25

00:13:26

passed #245139881
gitlab-org
rspec unit pg 9/25

00:12:47

passed #245139948
gitlab-org
rspec unit pg ee 1/7

00:07:28

passed #245139949
gitlab-org
rspec unit pg ee 2/7

00:12:58

passed #245139950
gitlab-org
rspec unit pg ee 3/7

00:14:54

passed #245139951
gitlab-org
rspec unit pg ee 4/7

00:13:44

passed #245139952
gitlab-org
rspec unit pg ee 5/7

00:11:34

passed #245139953
gitlab-org
rspec unit pg ee 6/7

00:13:21

passed #245139954
gitlab-org
rspec unit pg ee 7/7

00:15:07

passed #245139940
gitlab-org
rspec-fast-spec-helper

00:03:04

passed #245139870
allowed to fail
sast

00:09:20

passed #245139941
gitlab-org
static-analysis

00:12:55

 
  Review
skipped #245139978
allowed to fail manual
package-and-qa
skipped #245139979
gitlab-org allowed to fail
review-deploy
skipped #245139980
gitlab-org allowed to fail manual
review-stop
 
  Qa
skipped #245139992
docker gitlab-org allowed to fail
review-performance
skipped #245139982
docker gitlab-org allowed to fail manual
review-qa-all 1/5
skipped #245139983
docker gitlab-org allowed to fail manual
review-qa-all 2/5
skipped #245139986
docker gitlab-org allowed to fail manual
review-qa-all 3/5
skipped #245139987
docker gitlab-org allowed to fail manual
review-qa-all 4/5
skipped #245139991
docker gitlab-org allowed to fail manual
review-qa-all 5/5
skipped #245139981
docker gitlab-org allowed to fail
review-qa-smoke
 
  Post Test
skipped #245139995
gitlab-org
coverage
skipped #245139996
gitlab-org allowed to fail
flaky-examples-check
skipped #245139994
gitlab-org
jsdoc
skipped #245139993
gitlab-org
lint:javascript:report
 
  Post Cleanup
skipped #245139998
gitlab-org allowed to fail manual
review-docs-cleanup
 
Name Stage Failure
failed
rspec integration pg ee 3/3 Test
Thu Jul  4 03:26:19 UTC 2019
Uploading artifacts...
coverage/: found 4 matching files
knapsack/: found 5 matching files

rspec_flaky/: found 2 matching files

rspec_profiling/: found 1 matching files

WARNING: tmp/capybara/: no matching files
Uploading artifacts to coordinator... ok
id=245139957 responseStatus=201 Created token=hK5tSk3v
ERROR: Job failed: exit code 1
failed
gitlab:ui:visual Test
$ cp public/assets/application-*.css gitlab-ui/styles/application.css
cp: cannot create regular file 'gitlab-ui/styles/application.css': No such file or directory
Running after script...
$ date
Thu Jul 4 03:13:48 UTC 2019
Uploading artifacts...
gitlab-ui/tests/__image_snapshots__/: found 112 matching files
Uploading artifacts to coordinator... ok
id=245139859 responseStatus=201 Created token=syw4y7HT
ERROR: Job failed: exit code 1