question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: ovewrite_permissions for conan server

See original GitHub issue

Hi,

I would like to describe a feature that would be really interesting for the company I am working at.

Scenario

In our company we do not allow anybody to write directly on the master branch of the main repository and everyone must work on branches and create Pull Request to merge things into master. We have a branch in which we are integrating conan into our project (C++ code) and infrastructure (Jenkins and nodes running in different platforms: Mac OSX, Linux and Windows). Most of the work is done in that branch, but now we are trying to see the different situations we could have and how to deal with them before merging that branch into master.

One of our main concerns is the stability of the conan-server we have configured in our local network. Since we should be able to compile the project in any moment of its history if somebody overwrite accidentally a recipe in the server we would need to manually clean-up the mess in the conan-server.

Example case

Let us imagine that the branch I mentioned before is already merged in master and we have in our project the dependency:

OpenMesh/4.1.1@piponazo/stable

Somebody decides to create a branch in which he/she will try to update that dependency. That person starts to make changes in the recipe but he/she forgets about updating the version number. Once he/she is confident about the changes and uploads the recipe to the server, the damage is done in the conan-server. The moment in which other compilations are triggered by the CI system on the master branch, it will take the new recipe uploaded by the person that is working on the feature-branch.

Possible solution

I have been discussing about this with some colleagues and we think that a nice feature to make more difficult to reach that situation would be to have a new option in the conan server for avoiding to overwrite recipes that are already in the server.

[overwrite_permissions]

I would like to know if somebody has already thought about this case or if there are other approaches for avoiding those situations. I know that this is a corner case in which we are assuming human failures, but sadly the experience says that human errors are frequent 😭.

If you consider that this feature would be interesting I would like to help to implement it 😉

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sourcedelicacommented, Nov 23, 2016

Thx. I will check it out.

Yes, the thing about SNAPSHOT is that it’s explicitly not a version.

On Wed, Nov 23, 2016 at 11:34 AM James notifications@github.com wrote:

Sure, the “snapshot” in maven is useful, that is part of the rationale we used for allow package overwriting, it is something needed often for development.

Yes, permissions are in the form of package recipe reference -> authorized users:

opencv/2.3.4@lasote/testing: default_user, default_user2

So not exactly a branch, but you should be able to allow certain users for certain user/channel

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/conan-io/conan/issues/679#issuecomment-262565468, or mute the thread https://github.com/notifications/unsubscribe-auth/AEBjBJFrjszbAmVyjQ92-AjgAxdhxKvxks5rBGsOgaJpZM4K3R1g .

Sent from Gmail Mobile

0reactions
lasotecommented, Jun 29, 2018

Now we have the Artifactory community edition for C/C++ totally free and it has fine control of the permissions. We are keeping the conan server as the open source MIT reference implementation of the conan server protocol, but we recommend to use Artifactory because it is much more advanced.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[feature request] Launcher save multiple mod preset
This is a feature request for the launcher. Please add the ability to save and name custom mod list configurations.
Read more >
Dedicated Servers - Conan Exiles
How to setup a dedicated server · 1. Install "Conan Exiles Dedicated Server" found in your steam library tools. · 2. Copy in...
Read more >
Running conan_server — conan 1.55.0 documentation
The conan_server is a free and open source server that implements Conan remote repositories. It is a very simple application, bundled with the...
Read more >
Conan Exiles Server Utility with Remote Restart - GitHub
Automate your Conan Server Management with this Utility! Written using AutoIT with full Source available. UPDATE CHECK REQUIRES THE SCRIPT CAN WRITE TO...
Read more >
How To Create A Custom Conan Exiles 3.0 Server On G-Portal
In this Conan Exiles 3.0 update video, we take a look at how you can create a custom server using G-Portal. This is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found