Comments (7)
We're trying to rotate all our secrets per the recent security incident, and lacking this capability is bringing us down a lot.
from api-preview-docs.
if it helps
$ curl --location --request GET 'https://circleci.com/api/v2/insights/gh/$ORG_SLUG/summary' --header 'Circle-Token: $CIRCLE_TOKEN'
it has a key in response all_projects
with list of project slugs
from api-preview-docs.
This endpoint seems to be limited in the amount of projects it returns
from api-preview-docs.
Yes, doesn't list all my projects. :(
from api-preview-docs.
We're trying to rotate all our secrets per the recent security incident, and lacking this capability is bringing us down a lot.
I was looking for this functionality as well and not having it is definitely slowing us down. While there is a tool that was posted to track down secrets it does not provide the ability to list all projects with SSH keys.
from api-preview-docs.
We ended up going the other way, using the Github API to list all projects with a token called "CircleCi", then used those slugs to first delete, then add them again with the CircleCI API. Also deleting the deploy key on circleCI does not propagate and delete it on Github, you have to also take care of that. It does however require a personal-token that has access to all those organizations.
You can use the same "trick" to pull env-variables as you now have the project slugs needed to look them up one by one.
from api-preview-docs.
Update: our SecOps team were able to obtain a list of all our configured projects by contacting CircleCI directly.
Nicolai's approach wouldn't have worked well for us, as we also had some obsolete projects that had secrets configured as env vars but didn't have tokens configured in GitHub any more.
from api-preview-docs.
Related Issues (20)
- Question: Filtering scheduled pipelines by branch name HOT 3
- Conditions should allow operators HOT 1
- Retrying workflows
- Triggering a pipeline by tag doesn't trigger any workflows HOT 2
- List projects by organisation HOT 5
- Body parser is not tolerant of whitespace?? HOT 3
- Pipeline Parameters Ignored with API HOT 2
- Trigger workflow in different repo with same user HOT 1
- POST /pipeline Returns 201 When No Actual Workflow Is Triggered HOT 5
- Unable to access v2 APIs with project-specific API tokens HOT 3
- Cannot access job output HOT 2
- Unable to trigger pipeline to build forked Pull Request via V2 API, error message: *Branch not found*
- Add v1 deprecation to v1 docs
- Pipeline updated_at field not actually updating
- How to pass executor parameters
- Workflow jobs and Workflow runs documentation HOT 3
- curl command in README is incorrect HOT 1
- Typo in CircleCI API v2 Docs HOT 2
- typo in orb reference in docs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-preview-docs.