Skip to content

How to correctly access private policy repo? #139

Answered by asafc
hongbo-miao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hongbo-miao,

TL;DR

You accidentally used a repo url that uses the https protocol:

OPAL_POLICY_REPO_URL=https://github.com/Hongbo-Miao/test-opa-policy

The https:// prefix can only be used with public repos.

For private repo you must use the ssh git protocol.

I am guessing for your repo, the ssh url is something like:

OPAL_POLICY_REPO_URL=git@github.com/Hongbo-Miao/test-opa-policy.git

The complete doc about this is found here.


Here is a complete guide how to work with private repos.

Step 1: generate a private-public key pair

Run this command

ssh-keygen -t ed25519 -C "me@example.com"

I actually recommend to select a custom filename, so you will not override other keys by mistake.
I p…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by hongbo-miao
Comment options

You must be logged in to vote
4 replies
@orweis
Comment options

@avinashs433
Comment options

@avinashs433
Comment options

@orweis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants