How to Audit for Empty Roles in FIAT using Redis/MySQL


Administrators may be interested in the information in FIAT for some auditing of the roles that have been defined.  This process can sometimes help Administrators when they would like to do a quick check to ensure that roles are defined according to their policy and identify Empty Roles that may be in FIAT.

The process is much more streamlined when using MySQL, but administrators can use the default Redis storage and perform a search.


Authentication and Authorization should be set up in the Spinnaker environment:

Access to the MySQL Database to make queries. (Optional)

Access to the Redis Database to make queries.

Armory CDSH 2.27.2+


Administrators should consider configuring MySQL as a backend for FIAT for better performance than alternatives and provides ease of search.

MySQL Process | Redis Process

MySQL Process

Setting Up FIAT MySQL Backend

Administrators can set the following for the FIAT profile in their SpinnakerConfig:

            enabled: false
            enabled: true
          enabled: true
              # additional connection pool parameters are available here,
              # for more detail and to view defaults, see:
              default: true
              jdbcUrl: jdbc:mysql://<URL>
              user: <username>
              password: <password>
            jdbcUrl: jdbc:mysql://<URL>
            user: <username>
            password: <password>
            enabled: false


The fiat_user and fiat_permission tables will then show up in the MySQL DB under the table fiat, along with several other tables.


Querying for Empty Roles in MySQL

  1. Administrators can then log in to the database and run select * from fiat.fiat_user where id not in (select fiat_user_id from fiat.fiat_permission);
  2. Once queried, customers can make changes to the users so that roles are assigned to the flagged users.
  3. It is then recommended that Administrators run the check in the database again. 

Redis Process

Querying for Empty Roles in Redis

Looking at entries for Empty Roles in Redis can be a little more complicated, but there is a reduction in setup time

  1. Locate the Redis key with the user list, with <redislocation> being the URL (e.g.,
    and <portnumber>
    redis-cli -h <redislocation> -p <portnumber> smembers "spinnaker:fiat:users"
  2. Locate the Redis role keys as well, with <redislocation> being the URL (e.g.,
    and <portnumber>
    redis-cli -h <redislocation> -p <portnumber> keys spinnaker:fiat:permissions*:*:roles

    Note that we used a wildcard to cover the instance where v1 and v2 permissions exist, such as:

  3.  Truncate, unique, sort, and diff the list to find a list of users and roles.  For example
  4. Use that list to add appropriate roles to the users/service accounts.  It is possible to check the accounts lists to see if they are being used in any pipelines or the environment
    1. Administrators can find if one of the service accounts is being used by curling the background and comparing the returned list with the information gathered from the Redis queries above
      curl -X GET -k |jq
    2. Administrators can also query their Front50 to see if any pipelines are using the flagged users.  It is recommended for large-scale and production environments that administrators use Front50 with MySQL for persistent storage.  The query customers can run is:
      select id, name, json_extract(json_extract(body, '$.triggers[0]'), '$.runAsUser') from pipelines;
  5. Once the changes have been made, it is recommended to re-verify that all the spinnaker:fiat:permissions*:*:roles keys are not empty

As Tested On Version

2.27.x, 2.28.x