switch to apikey instead of plain username and password
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13m31s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13m31s
This commit is contained in:
@@ -23,16 +23,16 @@ spec:
|
|||||||
- "-c"
|
- "-c"
|
||||||
- "/config/export_bitwarden.sh"
|
- "/config/export_bitwarden.sh"
|
||||||
env:
|
env:
|
||||||
- name: BITWARDEN_USERNAME
|
- name: BW_CLIENTID
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: bitwarden-credentials
|
name: bitwarden-credentials
|
||||||
key: BITWARDEN_USERNAME
|
key: BW_CLIENTID
|
||||||
- name: BITWARDEN_PASSWORD
|
- name: BW_CLIENTSECRET
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: bitwarden-credentials
|
name: bitwarden-credentials
|
||||||
key: BITWARDEN_PASSWORD
|
key: BW_CLIENTSECRET
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: scripts
|
- name: scripts
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
data:
|
data:
|
||||||
BITWARDEN_PASSWORD: SW1wcmV6YTU1NQ==
|
BW_CLIENTID: dXNlci43MGVmNGYxNi1kM2MwLTRmYWItYWI3OC1hZjg5MDEwNmE2ZDk=
|
||||||
BITWARDEN_USERNAME: dmFsdmFua2FydEBvcmFuZ2UuZnI=
|
BW_CLIENTSECRET: UlJZVGd3R0pUSjlHVDQwc3dZTklobzlrNUVYYTJv
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: bitwarden-credentials
|
name: bitwarden-credentials
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ data:
|
|||||||
export_bitwarden.sh: |
|
export_bitwarden.sh: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
bw config server https://bitwarden.tryton.geeraert.eu/
|
bw config server https://bitwarden.tryton.geeraert.eu/
|
||||||
export BW_key=$(bw login $BITWARDEN_USERNAME $BITWARDEN_PASSWORD --raw)
|
bw login --apikey
|
||||||
bw list items --session $BW_key >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
|
bw list items >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
|
|||||||
Reference in New Issue
Block a user