Disable Direct Publishing

I'm currently configuring our new RStudio Connect instances.

I work in a regulated environment and I'd like to force users to publish via git.

Is there any way to disable direct publishing?

Hello @slodge! Thanks so much for your comment here! Unfortunately, there is not a way to do this in the product today. I will definitely pass along this desire to the product team, as I can see the value such a restriction would provide!

A few thoughts on ways to approach this today:

  • Building a report on the types of content deployed on the server and proactively notify an administrator if content is published by some mechanism other than git. This functionality is not publicly documented in the RStudio Connect Server API today, but there is an experimental R package that provides some of this functionality

i.e.

library(connectapi)
client <- connect()
all_content <- get_content(client, limit = Inf)
  • Do not allow publishers to publish themselves and require that administrators do the publishing, and then potentially add the publishers as collaborators on the report. One potential downside of this approach is that then the administrator will get any notifications about content failures.

There may be other approaches as well, however, they will mostly be workarounds for now, unfortunately.

Thanks @cole for the answer

We are going the "administrator" route to stop people publishing to production (but allowing them to publish to staging) - so following your advice.

But it would definitely be useful for us to be able to refuse direct publishing too though so please do add it to the product request list.

Another thing in a similar vein would be having some ,gcfg way to configure the header and site title.

Currently I've got some hacking going using:

LoggedInWarning = "This is the UAT RStudio Connect Instance <style type='text/css'> #rStudioHeader .band { background-color: pink; } #rStudioHeader .productLogo:before { content: 'UAT'; } #rStudioHeader .productLogo { text-align: right; font-size: smaller;  } </style>"

But this only works on the main landing page and isn't particularly pretty...
image

Really I would like some way to customise the header and title universally and with slightly less obscure css :slight_smile:

2 Likes

Good to hear! I have definitely passed that feedback along, and I will pass this feedback along as well. Is the goal here just to quickly / visually differentiate between environments with the header and site title customizations?

I have to say, that is a remarkably creative solution to the problem :rofl: One of the most creative I have seen!

Thanks :slight_smile:

The main goal is to differentiate between different environments - it's important that our users know when they are and are not working in the Production systems.

It would also be good to be able to customise the page logo and title on every page. Currently I'm looking at lots of indistinguishable tabs like:

The pages do show a tab title when opened in Solo mode.... so perhaps it might be nice if there were some way to open in solo mode from the content listing page?

Thanks for listening... and for the product!

1 Like

That makes a lot of sense! Thanks so much for the clarification and example! This is very useful feedback :smile:

It is definitely our pleasure, and great feedback like this helps us continue working to make the product better!