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.

Hide or mask password (or other sensitive content) fields on "Review" step in Scaffolder plugin

See original GitHub issue

Feature Suggestion

Hide or mask password (or other sensitive content) fields on “Review” step in Scaffolder plugin

Possible Implementation

Change the file plugins/scaffolder/src/components/MultistepJsonForm/MultistepJsonForm.tsx to hide or transform data passed to StructuredMetadataTable trough metadata argument. All data in password field would be masked or hidden.

Context

I work for a big company in Brazil and we are starting to adopt Backstage as our portal, since we have more than 400 people in our IT team, with thousands of solutions, and we are planning to give full access to backstage, meaning for developer or not. We are already using Microsoft B2C service to log in all that users.

Nowadays we are implementing some templates aiming to use scaffolder plugin, but we really dont want not developers to create new repos from backstage willing that some magic ready to go service could be generated by that. So we want to use our github permissions to block users that dont have permissions to create a new repo.

I already implement two things: 1 - a custom field to start the github authentication flow and set the GH token as a parameter to scaffolder 2 - an action, based on the builtin initAndPush, to use this token to perform actions on github via API.

The problem is that the token is showed in the “Review” step, and this isnt a good approach for me and submitting a PR is fine for me to have this feature.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
chicoribascommented, Jul 12, 2021

Hi @andreafalzetti

Thank’s for your review…

I have an custom action at my project, but maybe it could be a great idea change que builtin action to receive que token and use that to work with GH Api… I think this is an other issue to work on.

What do you think?

1reaction
OrkoHuntercommented, Jul 8, 2021

Awesome! Assigned it to you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Writing Templates · Backstage Software Catalog and ...
Sometimes, specially in custom fields, you collect some data on Create form that must not be shown to the user on Review step....
Read more >
How to hide password fields from Grails scaffolding views?
One way to solve this is by using customized field rendering via the fields plugin: Create a folder grails-app\views\_fields\user\password ...
Read more >
zsI - River Thames Conditions - Environment Agency - GOV.UK
Animal crossing new leaf review polygon, Chinska zupa, Verbatim 97993, Ilmu hipnotis ... Booker woodfox wiki, Rza sunshower album, Create a layer mask, ......
Read more >
Groovy Language Documentation
One instance of where this is handy is for returning a 'sensible default' value if an expression resolves to false -ish (as in...
Read more >
Thematic Analysis: Striving to Meet the Trustworthiness Criteria
As qualitative research becomes increasingly recognized and valued, it is imperative that it is conducted in a rigorous and methodical manner to yield ......
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