stash icon indicating copy to clipboard operation
stash copied to clipboard

Backup in another namespace

Open fmonorchio opened this issue 5 years ago • 3 comments

Hi all,

I want to use Stask as my Backup/Recovery solution. There is the possibility to create the secret/repo/backupConfiguration resources in the stash namespace and use these for deployment in other namespaces? i don't want to sync the secret with s3 credentials in all the namespaces that I have.

Thanks

fmonorchio avatar Nov 11 '20 14:11 fmonorchio

No. We don't allow the backup job / sidecar to access any resources in other namespaces. This is for security purposes. Otherwise, a user will be able to violate cluster RBAC using such capabilities.

hossainemruz avatar Nov 11 '20 15:11 hossainemruz

I should be able to specify repository.namespace in order to avoid re-creating the repository in every namespace of interest. This is most probably the largest issue I've come across with Stash.

Rojikku avatar Jan 17 '22 02:01 Rojikku

This feature has been implemented already in master branch. It will be available in the next release.

Ref: https://github.com/stashed/apimachinery/pull/135

hossainemruz avatar Jan 17 '22 04:01 hossainemruz