How can I see IBM Bluemix object storage credentials? - ibm-cloud

For one process I need this credentials that be in Object Storage in IBM Bluemix, so, How can I get this credentials? Where can I see that?
Thank you very much!
credentials_1 = {
'auth_url':'',
'project':'',
'project_id':'',
'region':'',
'user_id':'',
'domain_id':'',
'domain_name':'',
'username':'',
'password':"",
'container':'',
'filename':''
}

There are a few different Object Storage services on the IBM Cloud. Here is a comparison.
Below is a project with Object Storage. The credentials can be found in the Credentials section and/or Service Credentials of the service instance.
You can create a project with the Object Storage service using the App Service console: https://console.bluemix.net/developer/appservice/create-project?services=Object-Storage
You could also use the cf CLI and run the command cf service-key serviceInstanceName serviceKeyName to get the credentials. You would have to run cf service-keys serviceInstanceName to get a list of the service keys beforehand.

Related

How to use service account to authenticate Cloud Run to Firestore

I'm looking for a way to connect Cloud Run to Firestore without using a service account access key. I have a key set up for my local dev environment to access Firestore. I know you can access Firestore from the account running Cloud Run containers, but haven't been able to find any documentation on how to do this.
The most I could find is using a Workforce Identity Federation but that seems to be focused on connecting external services which isn't my goal.
Edit, forgot to mention I'm using nodejs and am not using firebase, just firestore
Every service in Cloud Run has a service account assigned (default Compute Engine service account), but you can create you own service account and assign it (Recommended), you don't need to download a key.
Cloud Run console
In the IAM section look for datastore permissions instead of Firestore permissions, because Firestore is the 'evolution' of datastore.
Follows the doc for more info: https://cloud.google.com/run/docs/configuring/service-accounts

how external app can access ibm cloud object storage

I have IBM COS service and able to use Curl command via cli to retrieve objects. I used IAM tokens to retrieve. But how do I let an external web app ex., node access this service?
what value should be there in authorization for external app access?
External apps will come in the form of something like the AWS CLI or any other app that uses either an HTTP library coupled with IBM Cloud Object Storage API or even an SDK for languages like Python, Java or Node.Js
All of the above will ask you for access key and secret key.
You can get both of them from the IBM Cloud console by generating new HMAC Credentials [1]:
Navigate to your Cloud Object storage account
Click on right under Service credentials
Click New credentials button on right
For the "Add Inline Configuration Parameters (Optional)" text box enter the following JSON:
{"HMAC":true}
[1] https://console.bluemix.net/docs/services/cloud-object-storage/iam/service-credentials.html#service-credentials
We'll you could use the ibm-cos-sdk Node library https://www.npmjs.com/package/ibm-cos-sdk. You'll need to use your HMAC credentials.
var config = {
endpoint: '<endpoint>',
ibmAuthEndpoint: 'https://iam.ng.bluemix.net/oidc/token',
serviceInstanceId: '<resource-instance-id>',
accessKeyId: '<HMAC access_key>',
secretAccessKey: '<HMAC secret access key>'
};

Connecting to Object Storage on Node-Red

I am trying to retrieve an image from my Object Storage service using Node-Red.
I imported the Object Storage nodes in my Node-Red instance running on IBM Bluemix and I am trying to use the "get" node but I cannot figure out how to correctly connect it to the Object Storage service.
I set the option to get the configuration details from the Bluemix Service, but when deploying I would always get an error saying "Object Storage Put (err): No object storage configuration found!".
If instead I use the option for API based configuration information, I need to fill out fields which I cannot find on my VCAP_SERVICES or the Object Storage service credentials. The fields that need to be filled in are shown
but my service credentials only include:
"apikey"
"endpoints"
"iam_apikey_description"
"iam_apikey_name"
"iam_role_crn"
"iam_serviceid_crn"
"resource_instance_id"
Can anyone point me in the right direction?
The node-red object storage contribution available in this link:
https://flows.nodered.org/node/node-red-contrib-objectstore
was designed to be integrated with the Swift Object Storage in Bluemix (IBM Cloud Platform).
If you go the Catalog link below:
https://console.bluemix.net/catalog/infrastructure/object-storage-group
there are 4 options, the one you previously selected and is trying to connect is probably the first on the left side and will not integrate with node-red-contrib-objectstorage. T
To integrate with node-red you need to create an instance of the Object Storage service on the far right: Object Storage OpenStack Swift for Bluemix

Having issue determining credentials used when connecting to SoftLayer ObjectStorage using SFTP

I'm having trouble connecting to the Bluemix Object Store using the instructions presented by this link: https://knowledgelayer.softlayer.com/procedure/connect-object-storage-using-sftp
It's unclear to me what the username and account ID are so I would appreciate it if someone can clarify
The instructions are valid
Where I can find the values for SLOS/IBMOS etc?
I do not have access to the Softlayer customer portal as this service as created in Bluemix.
I can confirm that an sftp server is listening at the appropriate region endpoint.
Brien, it is not possible to use SFTP to access the Bluemix Object Storage if you create it from the Services catalog area of the Bluemix UI:
https://console.ng.bluemix.net/catalog/services/object-storage
This one can be accessed via swift cli or REST API.
To use SFTP to access your Object Storage you need to create it from the Infrastructure are of the Bluemix UI - that is the legacy Softayer that is now integrated with Bluemix.
https://console.ng.bluemix.net/catalog/infrastructure/object_storage/
Also, to create the Object Storage from the Infrastructure catalog you need to first link your Bluemix and Softlayer accounts:
https://console.ng.bluemix.net/docs/admin/softlayerlink.html

How to connect dashDB (on Bluemix) with Object Storage (on Bluemix)?

I am using Public Bluemix. I have provisioned a dashDB service instance using my IBM ID in Bluemix. I have also provisioned a Object Storage service. I would like to load files from Object Storage into dashDB.
When I try to define a load job in dashDB to get a file from Object Storage, I face a problem.
dashDB allows me to choose either Amazon S3 or Swift Object Store as the data source. I chose "Swift" and then provided the following Bluemix Object Store service credentials.
Public authentication endpoint : https://identity.open.softlayer.com
User name: as found in my my Bluemix Object Store credentials 'username'
API access key: as found in my my Bluemix Object Store credentials 'password'
Then, I clicked "Browse swift files", expecting to see the files which exist in my Bluemix Object Store's container. But, it shows me just a blank folder and no files.
I need to understand the method to connect Bluemix dashDB to Bluemix Object Store. Please help.
I'm having trouble getting this to work too.
At first, I found an answer on dWAnswers that said this may not be supported.
https://developer.ibm.com/answers/questions/166630/dataworks-integration-between-object-storage-and-d.html
Edit:
The Bluemix support team got back to me with the following message:
For loading from Swift, Bluemix Object Storage is not supported
and only object storage on SoftLayer is supported at this time.
Thanks.