Giter Site home page Giter Site logo

Comments (5)

noahtalerman avatar noahtalerman commented on July 4, 2024 1
  1. The API (fleetctl) allows to create an enroll secret that is <32 characters in length
  1. gitops users cannot GET/view enroll secrets

Hey @RachelElysia, thanks for erring towards bugs!

For (1), if I'm understanding correctly, the UI rejects secrets < 32 characters while the API/GitOps doesn't.

I think we should make this consistent w/ Fleet's way of doing validation: at the API level.

I think up to @rachaelshaw (API design DRI) if this is a bug or feature request. Rachael, I'm assigning you this bug to make the call.

from fleet.

noahtalerman avatar noahtalerman commented on July 4, 2024 1

For (2) I think this is the expected behavior but I can't find it on the manage access doc page.

@getvictor when you get the chance, can you please confirm that this is the expected behavior and open a PR to the manage access docs page? Thanks!

Why I think it's the expected behavior: GitOps users don't have read access to most items because they're used for the best practice GitOps workflow which only needs write access. As a IT admin using the GitOps workflow, I'll have another account to log into the Fleet UI to read items.

from fleet.

rachaelshaw avatar rachaelshaw commented on July 4, 2024 1

@noahtalerman @RachelElysia I'll add this to Feature Fest; I'd consider this a feature request since there are other places we have guardrails in the UI that aren't present in the API, and I think this is worth more consideration re: @getvictor's point about it potentially being a breaking change.

Basically, where I stand with adding API validations in minor versions is: if something would be broken in Fleet anyway without those validations, then they're worth adding to existing endpoints even if it could potentially break some API workflows (because it just makes an existing problem clearer earlier on.) If it's a validation that's potentially a breaking change and things still work without it, it should probably wait until a major version bump unless there's a really good reason.

I think if we only validate >= 32 characters when the secrets are created it shouldn't break things for the way we'd expect most people to use this API, but also we never know exactly how these endpoints are being used, so probably falls into the second category. Just realized both the API endpoints for adding secrets replace the entire list, so adding validation would be breaking for anyone that currently has a too-short enroll secret in use.

from fleet.

RachelElysia avatar RachelElysia commented on July 4, 2024

@getvictor saw these bugs with me so I'm removing the :reproduce label

Added :product to help confirm intended gitops behavior for both these bugs and decide if these are actually bugs

from fleet.

getvictor avatar getvictor commented on July 4, 2024

@noahtalerman
For (1), adding validation may break existing users. We would need to communicate the change.

For (2), gitops can view the team secrets (because they are part of the team config), but not the global secrets. Should we just let gitops view both types of secrets for consistency?

I don't think this issue is a bug. It should be prioritized along with other stories.

from fleet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.