Reading data from private repository - r

I have a group with two different private repositories and I want to read a file .Rdata from one of the repos.
I tried this. But is not working
library(repmis)
source_data("https://github.com/opetchey/RREEBES/raw/Beninca_development/Beninca_etal_2008_Nature/data/GLE_estimate.Rdata?raw=True")
//The url of the code above is an example, I put the url of my private repo.

If the repository is private, you will need some kind of authentication to access it.
Accessing the https url would probably require using a cookie, or some additional header. Look at the docs for your git library for http/https authentication.
You can also try to access it through ssh, which will most probably go through your system ssh settings, and for example use a configured ssh key for authentication.
Here are the github help pages for setting up ssh for github :
Connecting to Github with SSH

Related

What gets exposed when checking "Allow Anonymous Downloads"

I'm setting up a private Cargo repository using Artifactory. Publishing works fine with all credentials set up, but installing another crate that depends on a crate published to Artifactory fails with authentication issues (401). Based on the documentation, I enabled "Allow Anonymous Downloads" and it worked. But I want to careful with what I expose. The documentation says:
Authentication: Allow Anonymous Downloads
The Cargo client does not send any authentication header when running
install and search commands. Select the "Allow anonymous download and
search" to block anonymous requests but still allow anonymous Cargo
client downloads and performing search, to grant anonymous access
specifically to those endpoints for the specific repository.
Quoted from: https://www.jfrog.com/confluence/display/JFROG/Cargo+Package+Registry
The way it's worded appears a bit ambiguous as to what exactly is allowed. It still blocks anonymous requests, but allows anonymous Cargo clients? What exactly is the distinction here? I tried to download packages using a Cargo client without credentials, and it was blocked from installing packages (as I would like it to be).
So this leaves me a bit concerned. The naming seems to suggest people may download packages from my Artifactory repository without authentication, which I don't want. Cursory testing suggests they can't, but I'm not fully convinced as what is being blocked and what isn't. I would appreciate if somebody could clarify this.

How to pass credentials of git to bitnami airflow helm

I am using bitnami/airflow helm chart for my kubernetes environment. I would like to pull in the dag and plugin folders from my bitbucket git repository. How can I pass cert or credentials for my git to the image
https://hub.kubeapps.com/charts/bitnami/airflow
Without passing any credentials it gives my cannot read password error
I use this to set my git repo
airflow.clonePluginsFromGit.repository
They mention the following in their github repo
If you use a private repository from GitHub, a possible option to
clone the files is using a Personal Access Token and using it as part
of the URL:
https://USERNAME:PERSONAL_ACCESS_TOKEN#github.com/USERNAME/REPOSITORY
This should work for bitbucket too, just replace personal_access_token with one acquired from bitbucket. It might also be called an app_password depending on if you're using bitbucket cloud.
You can configure the following parameters:
airflow.auth.forcePassword to force users to specify a password
airflow.auth.username is the username to access web UI
airflow.auth.password is the password to access web UI
airflow.auth.fernetKey to set the fernet key to secure connection
airflow.auth.existingSecret is the name of an existing secret containing airflow password and fernet key

Given HTTPs URL of git repository, is it possible to retrieve the SSH url?

In a Git Repo, if i have the information of the HTTPs protocol saved, is it possible to retrieve the SSH url of it without having to manually login and copy ?
In the general case, no, this is not possible. Git does not require that a repository be accessible by multiple methods and does not provide a way to automatically discover all URLs for a repository, even if a repository is accessible by multiple methods. The user must intrinsically know this, and can map from one to the other by using config options of the form url.*.insteadOf if a particular protocol is unsuitable (see git-config(1)).
For GitHub specifically, yes, it is. A repository that has the HTTPS URL of https://github.com/foo/bar.git will also be accessible at git#github.com:foo/bar.git or ssh://git#github.com/foo/bar.git (among others). This is not necessarily true for GitHub Enterprise Server instances because administrators may restrict the protocols that are used. It is also not true for Subversion access, which is only over HTTPS.

Having a Linux server with key pair and ssh private key. Ppk in Windows desktop application for server login

I have a Windows desktop application from where I need to login Linux server for accessing a configuration file from server. Hardcoding the Linux username and password in my code will not be a gud idea. So having a private key in my local and adding the same key to Linux server authorised keys and providing read access only to the specific config File for one user. (no access to other files in Linux server for that particular user) would this be a right idea with respect security purposes??.. Or any idea how to login Linux server from windows application securely.
scp is built to do this already as part of ssh.
Winscp is a well known free scp client for windows that already has features to script and automate transfers.
See https://winscp.net/eng/docs/guide_automation
So yes, create a user that has access to the config file.
Create a key pair and add the pub key to an .ssh directory you create in the user's home directory. Perms for the directory and file need to be owner only.
As you mentioned pub key needs to be renamed to authorized_keys.
Make sure you convert the key appropriately for the os.
Openssh and putty keys are in different formats but there are tools for each that will let you convert one format to another.
On your windows machine you need the private key, not the public.
You can track your login security constantly with Data Leak Detection tools. I use Hivecode for this purpose. It helps to know for sure if anybody else has access to your server and to your digital assets. I was already notified once and I've got all the information about the theft of my source code.

Softlayer: Providing PEM file for accessing servers

Is it possible to create a common pem file in softlayer to access all the machines in on VLAN from UI itself.
I have looked in all the configuration panels but wasnt able to find this setting.
I wanted to check with other users who might have created pem file to keep a common access credential login in all the machines.
I did not have the experience of working with this, but I can suggest to send an email to PortalFeedBack#softlayer.com, in order that they can provide more information about it or if it can be consider to implement.

Resources