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

feat: Expose SSH configuration for GitStateStore #88

Open
aclevername opened this issue Feb 22, 2024 · 0 comments
Open

feat: Expose SSH configuration for GitStateStore #88

aclevername opened this issue Feb 22, 2024 · 0 comments

Comments

@aclevername
Copy link
Member

When using AWS CodeCommit as my git repository for my statestore I can only use the HTTPS basic auth method currently. To use SSH I need to be able to make the following changes to the SSH config:
Screenshot 2024-02-22 at 10 27 46

Ideally Kratix would expose setting this sort of configuration through either the GitStateStore kind or in the Secret that gets referenced. E.g.:

apiVersion: platform.kratix.io/v1alpha1
kind: GitStateStore
metadata:
  name: default
spec:
  authMethod: basicAuth
  branch: main
  secretRef:
    name: aws-git
    namespace: default
  url: https://git-codecommit.eu-west-2.amazonaws.com/v1/repos/kratix-jake
  sshConfig: |
     Host git-codecommit.*.amazonaws.com
       User USER_ID
       IdentityFile ~/.ssh/codecommit_rsa

or

apiVersion: v1
kind: Secret
metadata:
  name: aws-git
  namespace: default
data:
  password: .....
  username: .....
  sshConfig: |
   Host git-codecommit.*.amazonaws.com
     User USER_ID
     IdentityFile ~/.ssh/codecommit_rsa

Docs: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ssh-unixes.html?icmpid=docs_acc_console_connect_np

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant