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"
|
||||
- "/config/export_bitwarden.sh"
|
||||
env:
|
||||
- name: BITWARDEN_USERNAME
|
||||
- name: BW_CLIENTID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: bitwarden-credentials
|
||||
key: BITWARDEN_USERNAME
|
||||
- name: BITWARDEN_PASSWORD
|
||||
key: BW_CLIENTID
|
||||
- name: BW_CLIENTSECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: bitwarden-credentials
|
||||
key: BITWARDEN_PASSWORD
|
||||
key: BW_CLIENTSECRET
|
||||
volumeMounts:
|
||||
- name: scripts
|
||||
mountPath: /config
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
data:
|
||||
BITWARDEN_PASSWORD: SW1wcmV6YTU1NQ==
|
||||
BITWARDEN_USERNAME: dmFsdmFua2FydEBvcmFuZ2UuZnI=
|
||||
BW_CLIENTID: dXNlci43MGVmNGYxNi1kM2MwLTRmYWItYWI3OC1hZjg5MDEwNmE2ZDk=
|
||||
BW_CLIENTSECRET: UlJZVGd3R0pUSjlHVDQwc3dZTklobzlrNUVYYTJv
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: bitwarden-credentials
|
||||
|
||||
@@ -3,8 +3,8 @@ data:
|
||||
export_bitwarden.sh: |
|
||||
#!/usr/bin/env bash
|
||||
bw config server https://bitwarden.tryton.geeraert.eu/
|
||||
export BW_key=$(bw login $BITWARDEN_USERNAME $BITWARDEN_PASSWORD --raw)
|
||||
bw list items --session $BW_key >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
|
||||
bw login --apikey
|
||||
bw list items >> /backup/backup_$(date "+%Y-%m-%d_%Hh-%m").json
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
|
||||
Reference in New Issue
Block a user