Skip to content
Snippets Groups Projects
  1. Nov 07, 2021
    • Max Jonas Werner's avatar
      feat: prompt for access tokens in 'bootstrap' command · ffcd7d80
      Max Jonas Werner authored
      
      This change adds functionality to both, `bootstrap github` and
      `bootstrap gitlab` to prompt the user for the personal access tokens
      if those can't be derived from the shell environment. Echoing is
      turned off for better privacy.
      
      Instead of having to interactively type the token or manually paste it
      from the clipboard, users can also pipe it to Flux which comes in
      handy e.g. when executing Flux remotely over an SSH connection:
      
      ```
      $ echo 'asdf' | flux bootstrap github
      ```
      
      Otherwise, Flux will prompt the user:
      
      ```
      $ flux bootstrap github
      Please type your GitHub personal access token:
      ```
      
      closes #2011
      
      Signed-off-by: default avatarMax Jonas Werner <mail@makk.es>
      ffcd7d80
  2. Sep 27, 2021
  3. Jul 30, 2021
  4. May 06, 2021
  5. Apr 13, 2021
    • Hidde Beydals's avatar
      Put potentially destructive reconcile behind flag · b6d349da
      Hidde Beydals authored
      
      The behavior introduced during the introduction of go-git-providers
      was more strict, and has proven pretty quickly to not be useful to
      all users. Therefore, the reconciliation behavior for repository
      configuration has been put behind an opt-in flag, so that it does
      not overwrite people their configs by accident.
      
      Signed-off-by: default avatarHidde Beydals <hello@hidde.co>
      b6d349da
  6. Apr 12, 2021
    • Hidde Beydals's avatar
      Change private flag description · f123b9d3
      Hidde Beydals authored
      
      To highlight the fact that it configures the repository as defined,
      which was not _really_ clear to some users and has resulted in public
      repositories accidentally being changed to private (losing important
      goodies like stars and linked forks).
      
      Discussion on this is ongoing and there will likely be other
      improvements in the near future to protect users against this.
      
      Signed-off-by: default avatarHidde Beydals <hello@hidde.co>
      f123b9d3
  7. Apr 09, 2021
  8. Apr 07, 2021
  9. Mar 26, 2021
  10. Mar 16, 2021
  11. Mar 15, 2021
  12. Feb 26, 2021
  13. Feb 12, 2021
  14. Jan 22, 2021
  15. Jan 13, 2021
  16. Jan 07, 2021
  17. Dec 14, 2020
    • Hidde Beydals's avatar
      Add safe guards for relative paths · 5ea4e814
      Hidde Beydals authored
      
      This commit adds multiple safe guards for relative paths, ensuring they
      never traverse outside the working directory.
      
      The `SafeRelativePath` flag calculates the safe relative path based on a
      relative base dir, which results in a flattened path.
      
      The write methods of `manifestgen` make use of the `SecureJoin` as well,
      to ensure writes are never outside of the given directory when used as
      a lib outside of the CLI.
      
      Signed-off-by: default avatarHidde Beydals <hello@hidde.co>
      5ea4e814
  18. Dec 11, 2020
    • Michael Bridgen's avatar
      Give flux bootstrap the extra components flag · 4abe69f9
      Michael Bridgen authored
      
      This commit adds a flag for supplying extra components to bootstrap
      (and its subcommands), to match the one for `flux install`.
      
      Since the bootstrapComponents global is used in a few places, I made
      it a func and renamed the variable. For consistency, I also renamed
      the var used in install.go.
      
      Lastly, so that the flag sorts next to `--components`, I changed it to
      `--components-extra` in both commands.
      
      Signed-off-by: default avatarMichael Bridgen <michael@weave.works>
      4abe69f9
  19. Nov 12, 2020
  20. Nov 11, 2020
  21. Nov 02, 2020
  22. Oct 29, 2020
  23. Oct 27, 2020
  24. Oct 17, 2020
  25. Sep 30, 2020
  26. Sep 22, 2020
  27. Sep 14, 2020
  28. Sep 09, 2020
  29. Sep 04, 2020
  30. Sep 01, 2020
  31. Jul 21, 2020
  32. Jul 14, 2020
    • stefanprodan's avatar
      Refactor defaults · e1806110
      stefanprodan authored
      - add dedicated components flag for bootstrap/install/check
      - extract defaults to vars
      - update CLI docs
      e1806110
Loading