Code Monkey home page Code Monkey logo

Comments (7)

ixs avatar ixs commented on May 30, 2024 1

Aditionally to the situation of the master being on 3007 and the minion on 3005, the opposite is also a problem:

I have a master being on 3005.5 with the minion being upgraded to 3007.0. The same problem is occuring that the key is not recognized anymore, and the recommended solution of deleting it and restarting the minion does not help either.
Error is consistently Unable to sign_in to master: Invalid master key.

Having a closer look at the data passing through the function, it seems that the cleaned key for the master has an extra \n linebreak added to the end which gets removed by the clean function. At this point, the comparision fails.
The minion key however does not have an added newline at the end of the file and does not suffer from this error.

Again, making the clean_key() function a noop by returning the passsed key variable unchanged resolves this problem but is only a workaround.

from salt.

welcome avatar welcome commented on May 30, 2024

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

from salt.

whytewolf avatar whytewolf commented on May 30, 2024

this looks related to #66126

from salt.

rjel2159 avatar rjel2159 commented on May 30, 2024

Thanks @whytewolf for the reply. This fix to 3007.x seems promising https://github.com/saltstack/salt/pull/66161/files - I'll test it shortly.

from salt.

rjel2159 avatar rjel2159 commented on May 30, 2024

Unfortunately, the above fix (#66161) won't address our case where the clean_key() on the master "messes up" the master's signature verification on older minions which don't have this function in their code base. As far as I can see, the only way to move forward is either to upgrade all the minions to the version that introduced this new code at the same time as upgrading the master(s) (which is not easily feasible for saltenv's with 100k+ nodes), or apply the patch suggested in the description of this bug case.

from salt.

rjel2159 avatar rjel2159 commented on May 30, 2024

Aditionally to the situation of the master being on 3007 and the minion on 3005, the opposite is also a problem:

I have a master being on 3005.5 with the minion being upgraded to 3007.0. The same problem is occuring that the key is not recognized anymore, and the recommended solution of deleting it and restarting the minion does not help either. Error is consistently Unable to sign_in to master: Invalid master key.

Having a closer look at the data passing through the function, it seems that the cleaned key for the master has an extra \n linebreak added to the end which gets removed by the clean function. At this point, the comparision fails. The minion key however does not have an added newline at the end of the file and does not suffer from this error.

Again, making the clean_key() function a noop by returning the passsed key variable unchanged resolves this problem but is only a workaround.

Yes, that's exactly what I have found as well. We have no need for use of the clean_key() function in our environment, it only "breaks" the signature validation.

from salt.

whytewolf avatar whytewolf commented on May 30, 2024

Aditionally to the situation of the master being on 3007 and the minion on 3005, the opposite is also a problem:

I have a master being on 3005.5 with the minion being upgraded to 3007.0. The same problem is occuring that the key is not recognized anymore, and the recommended solution of deleting it and restarting the minion does not help either. Error is consistently Unable to sign_in to master: Invalid master key.

Having a closer look at the data passing through the function, it seems that the cleaned key for the master has an extra \n linebreak added to the end which gets removed by the clean function. At this point, the comparision fails. The minion key however does not have an added newline at the end of the file and does not suffer from this error.

Again, making the clean_key() function a noop by returning the passsed key variable unchanged resolves this problem but is only a workaround.

the master being a lower version then the minion has never and will never be a supported setup.

see the first paragraph of https://docs.saltproject.io/salt/install-guide/en/latest/topics/upgrade.html

so while we are working on the fix for this in cases where the master is higher version. we will not do so for in cases where the minion is higher version. if the fix ends up working in such cases. great, but it is not a goal.

from salt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.