Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • infrastructure infrastructure
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 113
    • Issues 113
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch Linux
  • infrastructureinfrastructure
  • Merge requests
  • !448

misc/get_key.py: load vault file without chdir'ing

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Evangelos Foutras requested to merge misc-get_key-drop-chdir into master Jul 07, 2021
  • Overview 1
  • Commits 1
  • Pipelines 2
  • Changes 5

Now that misc/get_key.py checks if the VAULT file passed to it exists, we cannot pass paths only resolvable from the root directory. Instead, use paths that make sense relative to the current directory and avoid calling chdir when loading the vault file.

Fixes: 77542146 ("Rewrite get_key.py to use click instead of typer")

Edited Jul 07, 2021 by Evangelos Foutras
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: misc-get_key-drop-chdir