vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.41k stars 1.37k forks source link

Velero Syncs to Buckets in Regions not specified #5040

Open kdnash82 opened 2 years ago

kdnash82 commented 2 years ago

What steps did you take and what happened: Velero is being used to backup multiple clusters. Cyber reports that they noticed traffic coming from a few of those clusters with a destination to a s3 bucket in other countries. Team member reports that the traffic is coming from velero.

Command Used to Identify network traffic conntrack -E | grep dst=<IP_REPORTED_BY_CYBER>

The output showed syn-ack messages being transmitted between one of the internal cluster IPs and IPs in the /16 CIDR range. Internal Cluster IP was mapped to the Velero pod by running kubectl get pods --all-namespaces --output wide in the cluster.

What did you expect to happen: Expectation was that velero would only backup to the S3 bucket within the region identified in the config. BackupStorageLocation

spec:
  default: true
  objectStorage:
    bucket: <bucket-name>
    prefix: ""
  provider: aws

VolumeSnapshotLocation

spec:
  provider: aws
  config:
    region: us-gov-west-1

The following information will help us better understand what's going on:

Anything else you would like to add: We have multiple clusters with velero, but only certain clusters have this behavior. All are using the same configs with the exception of the bucket name.

Environment:

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.

kdnash82 commented 2 years ago

bundle-2022-06-21-15-21-56.tar.gz

qiuming-best commented 2 years ago

@kdnash82 traffic coming from a few of those clusters with a destination to a s3 bucket in other countries

basically, velero will backup files or snapshot volumes and store them in the region configured in BSL / VSL.

do you mean for some specific cluster, the velero stored backups that are not in the region configured in BSL / VSL?

kdnash82 commented 2 years ago

@kdnash82 traffic coming from a few of those clusters with a destination to a s3 bucket in other countries

basically, velero will backup files or snapshot volumes and store them in the region configured in BSL / VSL.

do you mean for some specific cluster, the velero stored backups that are not in the region configured in BSL / VSL?

That is correct... We have specified us-gov-west-1 for all Velero backups, but are receiving reports that certain clusters are backing up to that region as well as regions in other countries. This seems to only apply to certain clusters. Not all clusters are behaving this way.