Backup CodingChallenges Progess per Instance
J12934 opened this issue · 0 comments
J12934 commented
The new CodingChallenges (both "FindIt" and "Fixit" Challenges) work in the current MultiJuicer version work but are not backed up by the progress-watchdog like normal JuiceShop challenges.
Short recap the Challenge Progress is currently "backed up" to the Deployements annotations, short example (changed the continue code so that nobody steals it 🦹):
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
multi-juicer.iteratec.dev/challengesSolved: "66"
multi-juicer.iteratec.dev/continueCode: Q2HBuBhDtJcqIXToCnF8iPSjUKurhwt2IyTJszinfyHxuNhRTaCwFMi5fPSzUlH8Ru55hjRtVYcb4TgjF2ZiqjfVgUYWHjruv2cNYIrQTQoCzmsmqFgDSNjU4ZHo4HwmtQMczpTJvC8rslJi6KfQ3SMLUbmHOBhnnIoZsjE
multi-juicer.iteratec.dev/lastRequest: "1633681195273"
multi-juicer.iteratec.dev/lastRequestReadable: Fri Oct 08 2021 08:19:55 GMT+0000
(Coordinated Universal Time)
multi-juicer.iteratec.dev/passcode: $2a$12$XcQFCciAaJzLEXQH48qPxO3a8HMAXZ.a3iJ2mMeZ29mKI38CiGXoe
creationTimestamp: "2021-10-08T08:07:41Z"
generation: 1
labels:
app: juice-shop
deployment-context: mj
team: team42
name: t-team42-juiceshop
namespace: default
spec:
...
This mechanism should be extended to also back of the values used for the "continueCodeFindIt" and "continueCodeFixIt" cookies:
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
multi-juicer.iteratec.dev/challengesSolved: "66"
multi-juicer.iteratec.dev/continueCode: Q2HBuBhDtJcqIXToCnF8iPSjUKurhwt2IyTJszinfyHxuNhRTaCwFMi5fPSzUlH8Ru55hjRtVYcb4TgjF2ZiqjfVgUYWHjruv2cNYIrQTQoCzmsmqFgDSNjU4ZHo4HwmtQMczpTJvC8rslJi6KfQ3SMLUbmHOBhnnIoZsjE
multi-juicer.iteratec.dev/continueCodeFindIt: continueCodeFindItHere
multi-juicer.iteratec.dev/continueCodeFixIt: continueCodeFixItHere
multi-juicer.iteratec.dev/lastRequest: "1633681195273"
multi-juicer.iteratec.dev/lastRequestReadable: Fri Oct 08 2021 08:19:55 GMT+0000
(Coordinated Universal Time)
multi-juicer.iteratec.dev/passcode: $2a$12$XcQFCciAaJzLEXQH48qPxO3a8HMAXZ.a3iJ2mMeZ29mKI38CiGXoe
creationTimestamp: "2021-10-08T08:07:41Z"
generation: 1
labels:
app: juice-shop
deployment-context: mj
team: team42
name: t-team42-juiceshop
namespace: default
spec:
...