Authentication on Smart mirroring

hjoonkim January 16, 2018

According to the documentation, it seems like the mirror automatically delegates authentication to the primary. What would happen if the primary goes down for some reason and can't be reached?

We're considering setting up a mirror for our repos to improve its availability for building/deployment. However, smart mirroring wouldn't be a right solution if the mirror is not usable when authentication fails in the primary.

1 answer

1 accepted

2 votes
Answer accepted
Michael Heemskerk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 16, 2018

Smart mirrors delegate authentication and authorisation to the primary, but also maintain a 'credentials cache' and a 'permissions cache'. Side note: this cache does not contain your passwords or SSH keys. Instead it stores a cryptographic hash of your password, which can be used to validate provided credentials.

When the primary is (temporarily) unavailable, the mirror will fall back to authenticating locally using it's credentials cache. Users that have accesses a repository from the mirror will have their credentials and permissions cached and be able to access that repository from the mirror even if the primary is unavailable.

The authentication and permission caches are cleared on restart.

Hope that clears things up a bit!

DJM October 5, 2018

Hi,

 

can we get the details where the credentials cache and a permissions cache details we will get on mirror.

we are seeing one issues user is able to clone from primary server but when trying to clone this from Mirror he is getting error as remote host identification has been change which means private and public key on the mirror is change or something is change because of which user is getting this error.as per your note it is primary server which will do authentication so why then this error

Thanks

DJM

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events