Skip to content

grain['id'] can change without need to reaccept minion public key on master #52163

Closed as not planned

Description

@ihakh

Description of Issue/Question

according to this page:
https://docs.saltstack.com/en/latest/faq.html#is-targeting-using-grain-data-secure
the grains id can not be changed without re-accepting the minion public key from master
but i can change it on minion with the following command:

salt-call --local grains.setval id NEWID

by refreshing the grains on master:

salt '*' saltutil.refresh_grains

we can see NEWID by:

salt '*' grains.item id

Versions Report

debian /srv/pillar # salt --versions-report
Salt Version:
Salt: 2019.2.0

Dependency Versions:
cffi: 0.8.6
cherrypy: Not Installed
dateutil: 2.2
docker-py: Not Installed
gitdb: 2.0.0
gitpython: 2.1.1
ioflo: Not Installed
Jinja2: 2.9.4
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.24.0
Mako: 1.0.0
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: 1.2.3
pycparser: 2.17
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.9 (default, Sep 25 2018, 20:42:16)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 14.4.0
RAET: Not Installed
smmap: 2.0.1
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5

System Versions:
dist: debian 8.11
locale: UTF-8
machine: x86_64
release: 4.9.0-0.bpo.8-amd64
system: Linux
version: debian 8.11

Activity

  1. Ch3LL commented on Mar 14, 2019

    @Ch3LL
    Contributor

    it looks like we need to update the docs as it is not very clear. as you can see here: #12128

    the matching on grains['id'] only applies to pillar. I also looked and it seems {{ opts.id }} is also another reliable way to grab the minion id.

  2. added
    documentation
    bug
    severity-medium
    P2
    on Mar 14, 2019
  3. self-assigned this
    on Mar 14, 2019
  4. added this to the Approved milestone on Mar 14, 2019
  5. removed
    P2
    on Jun 3, 2020
  6. dwoz commented on Oct 15, 2026

    @dwoz
    Contributor

    Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.

    Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.

    If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.

  7. dwoz commented on Oct 17, 2026

    @dwoz
    Contributor

    Reopening — there is an open PR tracking a fix for this: #69554.

  8. reopened this on Oct 17, 2026
  9. dwoz commented on Oct 24, 2026

    @dwoz
    Contributor

    Closing as part of a backlog cleanup — this bug was reported against a version that is no longer supported (pre-3005). The underlying code has moved through several major releases since, and in many cases been rewritten or extracted into a saltext extension.

    If you can still reproduce this on 3006.x LTS or 3008.x LTS, please comment with:

    • A fresh reproduction
    • The output of salt --versions-report

    and a maintainer will reopen. The original reporter can also reopen directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentationseverity-mediumtime-estimate-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions