Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a firestore key migration to Teleport 17 #46472

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Sep 11, 2024

  1. Add a firestore key migration to Teleport 17

    Throughout the lifespan of the Firestore backend, the type of the key parameter has evolved from `string`, to `[]byte`, to `backend.Key`, and eventually back to `[]byte`. With each new type, documents were added without migrating the existing ones. As a result, every time a new key type was introduced, an additional step was required during key iteration because Firestore maps each of these key types to a distinct database type.
    
    - `backend.Key` is mapped to an Array in Firestore.
    - `[]byte` is mapped to Bytes in Firestore.
    - `string` is mapped to a String in Firestore.
    
    When searching for a specific key, the Go type is converted into a proto type and encoded in a particular way. During the database's range query, all keys with a different type than the requested one are ignored. This allows us to retrieve only the relevant keys and convert them to `[]byte` by updating the database.
    
    Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
    tigrato committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    030072c View commit details
    Browse the repository at this point in the history
  2. force key to be array

    tigrato committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    a4e45a9 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. add rate limited bucket

    tigrato committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    ac792a4 View commit details
    Browse the repository at this point in the history
  2. reduce limit

    tigrato committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    29d14b7 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    c2f93ec View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. add deprecation release

    tigrato committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    f74a94d View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Configuration menu
    Copy the full SHA
    3fadc99 View commit details
    Browse the repository at this point in the history